From: Simon Horman Date: Thu, 9 Aug 2012 08:49:25 +0000 (+0900) Subject: ofp-util: Allow decoding of Open Flow 1.2 Port Mod Message X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb2bc3c1a6b49794af17cc162e2c36b4adee73a3;p=openvswitch ofp-util: Allow decoding of Open Flow 1.2 Port Mod Message Signed-off-by: Simon Horman Signed-off-by: Ben Pfaff --- diff --git a/lib/ofp-msgs.h b/lib/ofp-msgs.h index 05ef3341..0683bc5e 100644 --- a/lib/ofp-msgs.h +++ b/lib/ofp-msgs.h @@ -158,7 +158,7 @@ enum ofpraw { /* OFPT 1.0 (15): struct ofp10_port_mod. */ OFPRAW_OFPT10_PORT_MOD, - /* OFPT 1.1 (16): struct ofp11_port_mod. */ + /* OFPT 1.1+ (16): struct ofp11_port_mod. */ OFPRAW_OFPT11_PORT_MOD, /* OFPT 1.0 (18): void. */ diff --git a/tests/ofp-print.at b/tests/ofp-print.at index 5be2ca1a..1c15ad31 100644 --- a/tests/ofp-print.at +++ b/tests/ofp-print.at @@ -544,6 +544,20 @@ OFPT_PORT_MOD (OF1.1) (xid=0x3):port: 3: addr:50:54:00:00:00:01 ]) AT_CLEANUP +AT_SETUP([OFPT_PORT_MOD - OF1.2]) +AT_KEYWORDS([ofp-print]) +AT_CHECK([ovs-ofctl ofp-print "\ +03 10 00 28 00 00 00 03 00 00 00 03 00 00 00 00 \ +50 54 00 00 00 01 00 00 00 00 00 01 00 00 00 01 \ +00 00 00 00 00 00 00 00 \ +" 3], [0], [dnl +OFPT_PORT_MOD (OF1.2) (xid=0x3):port: 3: addr:50:54:00:00:00:01 + config: PORT_DOWN + mask: PORT_DOWN + advertise: UNCHANGED +]) +AT_CLEANUP + AT_SETUP([OFPST_DESC request]) AT_KEYWORDS([ofp-print OFPT_STATS_REQUEST]) AT_CHECK([ovs-ofctl ofp-print "0110000c0000000100000000"], [0], [dnl