X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fopenflow%2Fopenflow-common.h;h=462b2fcfd3b22ffd997a112bb4a4d8d902d36fb4;hb=de6c85b0a2e61105d288c23b718f6599761c2a2e;hp=0bca0d26ba9cf3333c956a608fe8f40d0d98428e;hpb=7a25bd99246a548891427d62ccefb65f765bbc48;p=openvswitch diff --git a/include/openflow/openflow-common.h b/include/openflow/openflow-common.h index 0bca0d26..462b2fcf 100644 --- a/include/openflow/openflow-common.h +++ b/include/openflow/openflow-common.h @@ -334,4 +334,15 @@ enum ofp_group { OFPG_ANY = 0xffffffff /* Wildcard, for flow stats requests. */ }; +enum ofp_hello_elem_type { + OFPHET_VERSIONBITMAP = 1, /* Bitmap of version supported. */ +}; + +/* Common header for all Hello Elements */ +struct ofp_hello_elem_header { + ovs_be16 type; /* One of OFPHET_*. */ + ovs_be16 length; /* Length in bytes of this element. */ +}; +OFP_ASSERT(sizeof(struct ofp_hello_elem_header) == 4); + #endif /* openflow/openflow-common.h */