X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fofproto.h;h=6377e51e218baa89c45f15972688d3159f477e4d;hb=35f7605b3f40ebe49e4a1ad2555ef89ba48433b5;hp=50dd5d5b47dcecaf92f8500ac39de30357a8e5fd;hpb=d65349ea28bb67a0062a9b4b60ff97538206373b;p=openvswitch diff --git a/ofproto/ofproto.h b/ofproto/ofproto.h index 50dd5d5b..6377e51e 100644 --- a/ofproto/ofproto.h +++ b/ofproto/ofproto.h @@ -29,6 +29,11 @@ struct ofhooks; struct ofproto; struct svec; +enum { + DP_GROUP_FLOOD = 0, + DP_GROUP_ALL = 1 +}; + struct ofexpired { flow_t flow; uint64_t packet_count; /* Packets from subrules. */ @@ -36,6 +41,16 @@ struct ofexpired { long long int used; /* Last-used time (0 if never used). */ }; +struct ofproto_sflow_options { + struct svec targets; + uint32_t sampling_rate; + uint32_t polling_interval; + uint32_t header_len; + uint32_t sub_id; + char *agent_device; + char *control_ip; +}; + int ofproto_create(const char *datapath, const struct ofhooks *, void *aux, struct ofproto **ofprotop); void ofproto_destroy(struct ofproto *); @@ -62,6 +77,7 @@ int ofproto_set_listeners(struct ofproto *, const struct svec *listeners); int ofproto_set_snoops(struct ofproto *, const struct svec *snoops); int ofproto_set_netflow(struct ofproto *, const struct netflow_options *nf_options); +void ofproto_set_sflow(struct ofproto *, const struct ofproto_sflow_options *); void ofproto_set_failure(struct ofproto *, bool fail_open); void ofproto_set_rate_limit(struct ofproto *, int rate_limit, int burst_limit); int ofproto_set_stp(struct ofproto *, bool enable_stp);