From: Ben Pfaff Date: Tue, 20 May 2008 23:46:57 +0000 (-0700) Subject: Print actions in ofp_flow_mod messages. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5bbe3bcc8dfc7fca38f5bbbdd881fff16095d84;p=openvswitch Print actions in ofp_flow_mod messages. --- diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 9509ff6a..e2b9f6d7 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -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'