projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ovsdb-server: Obtain SSL configuration from database.
[openvswitch]
/
ofproto
/
ofproto.h
diff --git
a/ofproto/ofproto.h
b/ofproto/ofproto.h
index 668cdffb6edf8c2f059f85f5184d75e03c67079b..d9e71d762e43f17f4577f7eb24545704d9a1631f 100644
(file)
--- a/
ofproto/ofproto.h
+++ b/
ofproto/ofproto.h
@@
-24,6
+24,10
@@
#include "netflow.h"
#include "tag.h"
#include "netflow.h"
#include "tag.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct odp_actions;
struct ofhooks;
struct ofproto;
struct odp_actions;
struct ofhooks;
struct ofproto;
@@
-51,6
+55,12
@@
struct ofproto_sflow_options {
char *control_ip;
};
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);
int ofproto_create(const char *datapath, const char *datapath_type,
const struct ofhooks *, void *aux,
struct ofproto **ofprotop);
@@
-66,8
+76,8
@@
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 *,
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 *m
anufacturer, const char *hardware
,
- const char *s
oftware, const char *serial
,
+ const char *m
fr_desc, const char *hw_desc
,
+ const char *s
w_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 *dp_desc);
int ofproto_set_in_band(struct ofproto *, bool in_band);
int ofproto_set_discovery(struct ofproto *, bool discovery,
@@
-121,4
+131,8
@@
struct ofhooks {
void ofproto_revalidate(struct ofproto *, tag_type);
struct tag_set *ofproto_get_revalidate_set(struct ofproto *);
void ofproto_revalidate(struct ofproto *, tag_type);
struct tag_set *ofproto_get_revalidate_set(struct ofproto *);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* ofproto.h */
#endif /* ofproto.h */