projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ofproto-dpif: Remove datapath flows of deleted ports.
[openvswitch]
/
lib
/
vconn.c
diff --git
a/lib/vconn.c
b/lib/vconn.c
index 6c77d060c7589bc01c38340e07b0b46cdb9c0dc6..4e92834edfc92100048b696b0345097e16307a3d 100644
(file)
--- a/
lib/vconn.c
+++ b/
lib/vconn.c
@@
-343,6
+343,14
@@
vconn_get_allowed_versions(const struct vconn *vconn)
return vconn->allowed_versions;
}
return vconn->allowed_versions;
}
+/* Sets the allowed_versions of 'vconn', overriding
+ * the allowed_versions passed to vconn_open(). */
+void
+vconn_set_allowed_versions(struct vconn *vconn, uint32_t allowed_versions)
+{
+ vconn->allowed_versions = allowed_versions;
+}
+
/* Returns the IP address of the peer, or 0 if the peer is not connected over
* an IP-based protocol or if its IP address is not yet known. */
ovs_be32
/* Returns the IP address of the peer, or 0 if the peer is not connected over
* an IP-based protocol or if its IP address is not yet known. */
ovs_be32