summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2016-11-18 17:39:40 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2016-11-18 17:39:40 +0000
commit04d0ea17492c519b76177afeb5225a8b332c6727 (patch)
tree0320f48a57a48db6fe37189f7831b2fb08b2f426
parent8ed45f4e906485871116996d5a06a534ecd4a407 (diff)
miss_send_len can also be a CONTROLLER_MAXLEN string not just a number.
Requested by rzalamena@
-rw-r--r--usr.sbin/tcpdump/print-ofp.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/print-ofp.c b/usr.sbin/tcpdump/print-ofp.c
index 724f35767c2..3d725b9dcd6 100644
--- a/usr.sbin/tcpdump/print-ofp.c
+++ b/usr.sbin/tcpdump/print-ofp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-ofp.c,v 1.4 2016/11/18 17:37:03 reyk Exp $ */
+/* $OpenBSD: print-ofp.c,v 1.5 2016/11/18 17:39:39 reyk Exp $ */
/*
* Copyright (c) 2016 Rafael Zalamena <rzalamena@openbsd.org>
@@ -223,8 +223,10 @@ ofp_print_setconfig(const u_char *bp, u_int length)
}
cfg = (struct ofp_switch_config *)bp;
- printf(" <flags %#04x miss_send_len %d>",
- ntohs(cfg->cfg_flags), ntohs(cfg->cfg_miss_send_len));
+ printf(" <flags %#04x miss_send_len %s>",
+ ntohs(cfg->cfg_flags),
+ print_map(ntohs(cfg->cfg_miss_send_len),
+ ofp_controller_maxlen_map));
}
void