X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ofproto%2Fofproto.h;fp=ofproto%2Fofproto.h;h=3f3557cf6b14499cd74609e5336d92760bed6a90;hb=6b83a3c5c37a07118681a3738ec776a7d8485a3f;hp=309511ca800d7d72f6c04073a2ea735e046bc8fd;hpb=cb25142c50cd3a92e779ca1ce6f61380ffc75927;p=sliver-openvswitch.git diff --git a/ofproto/ofproto.h b/ofproto/ofproto.h index 309511ca8..3f3557cf6 100644 --- a/ofproto/ofproto.h +++ b/ofproto/ofproto.h @@ -436,8 +436,24 @@ int ofproto_port_set_realdev(struct ofproto *, ofp_port_t vlandev_ofp_port, /* Table configuration */ -enum ofp_table_config table_get_config(const struct ofproto *, - uint8_t table_id); +enum ofproto_table_config { + /* Send to controller. */ + OFPROTO_TABLE_MISS_CONTROLLER = OFPTC11_TABLE_MISS_CONTROLLER, + + /* Continue to the next table in the pipeline (OpenFlow 1.0 behavior). */ + OFPROTO_TABLE_MISS_CONTINUE = OFPTC11_TABLE_MISS_CONTINUE, + + /* Drop the packet. */ + OFPROTO_TABLE_MISS_DROP = OFPTC11_TABLE_MISS_DROP, + + /* The default miss behaviour for the OpenFlow version of the controller a + * packet_in message would be sent to.. For pre-OF1.3 controllers, send + * packet_in to controller. For OF1.3+ controllers, drop. */ + OFPROTO_TABLE_MISS_DEFAULT = 3, +}; + +enum ofproto_table_config ofproto_table_get_config(const struct ofproto *, + uint8_t table_id); #ifdef __cplusplus }