From e5bbe3bcc8dfc7fca38f5bbbdd881fff16095d84 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 20 May 2008 16:46:57 -0700 Subject: [PATCH] Print actions in ofp_flow_mod messages. --- lib/ofp-print.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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' -- 2.30.2