uint16_t flags;
flags = ntohs(osc->flags);
+
+ ds_put_cstr(string, " frags=");
+ switch (flags & OFPC_FRAG_MASK) {
+ case OFPC_FRAG_NORMAL:
+ ds_put_cstr(string, "normal");
+ flags &= ~OFPC_FRAG_MASK;
+ break;
+ case OFPC_FRAG_DROP:
+ ds_put_cstr(string, "drop");
+ flags &= ~OFPC_FRAG_MASK;
+ break;
+ case OFPC_FRAG_REASM:
+ ds_put_cstr(string, "reassemble");
+ flags &= ~OFPC_FRAG_MASK;
+ break;
+ }
if (flags) {
ds_put_format(string, " ***unknown flags 0x%04"PRIx16"***", flags);
}
n_tables:2, n_buffers:256
features: capabilities:0x87, actions:0xfff
LOCAL(br0): addr:aa:55:aa:55:00:00, config: 0x1, state:0x1
-OFPT_GET_CONFIG_REPLY: miss_send_len=0
+OFPT_GET_CONFIG_REPLY: frags=normal miss_send_len=0
])
OFPROTO_STOP
AT_CLEANUP
n_tables:2, n_buffers:256
features: capabilities:0x87, actions:0xfff
LOCAL(br0): addr:aa:55:aa:55:00:00, config: $config, state:$state
-OFPT_GET_CONFIG_REPLY: miss_send_len=0
+OFPT_GET_CONFIG_REPLY: frags=normal miss_send_len=0
])
done
OFPROTO_STOP