X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fofproto.h;h=c3d71e8d1bd7a0566ef573b21e043a526396d577;hb=eb15cdbbea5d8193af63bd2de948b99af30e648f;hp=29f9ee929b3bc459e5181e713c85f7385e86bc7f;hpb=79c9f2ee7883b52860c76c3730725f5731402874;p=openvswitch diff --git a/ofproto/ofproto.h b/ofproto/ofproto.h index 29f9ee92..c3d71e8d 100644 --- a/ofproto/ofproto.h +++ b/ofproto/ofproto.h @@ -17,6 +17,8 @@ #ifndef OFPROTO_H #define OFPROTO_H 1 +#include +#include #include #include #include @@ -100,8 +102,10 @@ bool ofproto_is_alive(const struct ofproto *); /* Configuration. */ void ofproto_set_datapath_id(struct ofproto *, uint64_t datapath_id); -void ofproto_set_controller(struct ofproto *, - const struct ofproto_controller *); +void ofproto_set_controllers(struct ofproto *, + const struct ofproto_controller *, size_t n); +void ofproto_set_extra_in_band_remotes(struct ofproto *, + const struct sockaddr_in *, size_t n); void ofproto_set_desc(struct ofproto *, const char *mfr_desc, const char *hw_desc, const char *sw_desc, const char *serial_desc, @@ -115,8 +119,7 @@ int ofproto_set_stp(struct ofproto *, bool enable_stp); /* Configuration querying. */ uint64_t ofproto_get_datapath_id(const struct ofproto *); -void ofproto_get_controller(const struct ofproto *, - struct ofproto_controller *); +bool ofproto_has_controller(const struct ofproto *); void ofproto_get_listeners(const struct ofproto *, struct svec *); void ofproto_get_snoops(const struct ofproto *, struct svec *); void ofproto_get_all_flows(struct ofproto *p, struct ds *);