X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fvconn.c;h=4e92834edfc92100048b696b0345097e16307a3d;hb=edd70aa7715800f4b109f879e448c8efa40dadd5;hp=6c77d060c7589bc01c38340e07b0b46cdb9c0dc6;hpb=de6c85b0a2e61105d288c23b718f6599761c2a2e;p=sliver-openvswitch.git diff --git a/lib/vconn.c b/lib/vconn.c index 6c77d060c..4e92834ed 100644 --- a/lib/vconn.c +++ b/lib/vconn.c @@ -343,6 +343,14 @@ vconn_get_allowed_versions(const struct vconn *vconn) 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