IP_ARGS takes address of nw_addr
authorNatasha Gude <natasha@nicira.com>
Wed, 30 Jul 2008 21:41:47 +0000 (14:41 -0700)
committerNatasha Gude <natasha@nicira.com>
Wed, 30 Jul 2008 21:41:47 +0000 (14:41 -0700)
lib/ofp-print.c

index 2af4553f491885c0d7bb17f916fb67d7d16a0b23..4790589f0ffe35eba07f6482bf4a5fbe0e3e2330 100644 (file)
@@ -257,11 +257,11 @@ ofp_print_action(struct ds *string, const struct ofp_action *a)
         break;
 
     case OFPAT_SET_NW_SRC:
-        ds_put_format(string, "mod_nw_src:"IP_FMT, IP_ARGS(a->arg.nw_addr));
+        ds_put_format(string, "mod_nw_src:"IP_FMT, IP_ARGS(&a->arg.nw_addr));
         break;
 
     case OFPAT_SET_NW_DST:
-        ds_put_format(string, "mod_nw_dst:"IP_FMT, IP_ARGS(a->arg.nw_addr));
+        ds_put_format(string, "mod_nw_dst:"IP_FMT, IP_ARGS(&a->arg.nw_addr));
         break;
 
     case OFPAT_SET_TP_SRC: