Print actions in ofp_flow_mod messages.
authorBen Pfaff <blp@nicira.com>
Tue, 20 May 2008 23:46:57 +0000 (16:46 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 28 May 2008 17:46:54 +0000 (10:46 -0700)
lib/ofp-print.c

index 9509ff6a1abc2cb40324907dd22cf2747d75c7f2..e2b9f6d7398badba4acf6a04f49448578eb2d684 100644 (file)
@@ -415,10 +415,13 @@ ofp_print_flow_mod(struct ds *string, const void *oh, size_t len,
     const struct ofp_flow_mod *ofm = oh;
 
     ofp_print_match(string, &ofm->match);
-    ds_put_format(string, " cmd:%d idle:%d pri:%d buf:%#x\n", 
+    ds_put_format(string, " cmd:%d idle:%d pri:%d buf:%#x", 
             ntohs(ofm->command), ntohs(ofm->max_idle), 
             ofm->match.wildcards ? ntohs(ofm->priority) : (uint16_t)-1,
             ntohl(ofm->buffer_id));
+    ofp_print_actions(string, ofm->actions,
+                      len - offsetof(struct ofp_flow_mod, actions));
+    ds_put_char(string, '\n');
 }
 
 /* Pretty-print the OFPT_FLOW_EXPIRED packet of 'len' bytes at 'oh' to 'string'