X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fofproto.h;h=d9e71d762e43f17f4577f7eb24545704d9a1631f;hb=f0c689263a0424c83663b8466a64a051a012c757;hp=a94c8b59b303dc2214c9823beb0a80c67b9f4159;hpb=a4af00400a835eb87569ba40e21874c05e872c0f;p=openvswitch diff --git a/ofproto/ofproto.h b/ofproto/ofproto.h index a94c8b59..d9e71d76 100644 --- a/ofproto/ofproto.h +++ b/ofproto/ofproto.h @@ -24,6 +24,10 @@ #include "netflow.h" #include "tag.h" +#ifdef __cplusplus +extern "C" { +#endif + struct odp_actions; struct ofhooks; struct ofproto; @@ -51,6 +55,12 @@ struct ofproto_sflow_options { char *control_ip; }; +#define DEFAULT_MFR_DESC "Nicira Networks, Inc." +#define DEFAULT_HW_DESC "Open vSwitch" +#define DEFAULT_SW_DESC VERSION BUILDNR +#define DEFAULT_SERIAL_DESC "None" +#define DEFAULT_DP_DESC "None" + int ofproto_create(const char *datapath, const char *datapath_type, const struct ofhooks *, void *aux, struct ofproto **ofprotop); @@ -66,8 +76,9 @@ void ofproto_set_datapath_id(struct ofproto *, uint64_t datapath_id); void ofproto_set_probe_interval(struct ofproto *, int probe_interval); void ofproto_set_max_backoff(struct ofproto *, int max_backoff); void ofproto_set_desc(struct ofproto *, - const char *manufacturer, const char *hardware, - const char *software, const char *serial); + const char *mfr_desc, const char *hw_desc, + const char *sw_desc, const char *serial_desc, + const char *dp_desc); int ofproto_set_in_band(struct ofproto *, bool in_band); int ofproto_set_discovery(struct ofproto *, bool discovery, const char *accept_controller_re, @@ -120,4 +131,8 @@ struct ofhooks { void ofproto_revalidate(struct ofproto *, tag_type); struct tag_set *ofproto_get_revalidate_set(struct ofproto *); +#ifdef __cplusplus +} +#endif + #endif /* ofproto.h */