[ovs-dev] in-band controll doesn't work in next branch
Tetsuo NAKAGAWA
nakagawa at mxc.nes.nec.co.jp
Mon Mar 15 12:22:32 UTC 2010
Hi.
I'm using Open vSwitch with next branch.
In next branch, tcp_open() use new_tcp_stream() instead
of new_tcp_vconn(). In effect, following member of
struct vconn isn't set.
remote_ip
remote_port
local_ip
local_port
Therefore the in-band controll doesn't work properly. And
ovs-vswitchd can't establish SecureChannel between
OpenFlow-Controller.
I think following patch is need.
diff -ru ./openvswitch-next-20100311.org/lib/vconn-stream.c ./openvswitch-next-20100311/lib/vconn-stream.c
--- ./openvswitch-next-20100311.org/lib/vconn-stream.c 2010-03-11 10:15:25.000000000 +0900
+++ ./openvswitch-next-20100311/lib/vconn-stream.c 2010-03-15 19:50:24.000000000 +0900
@@ -64,6 +64,10 @@
s->stream = stream;
s->txbuf = NULL;
s->rxbuf = NULL;
+ s->vconn.remote_ip = stream_get_remote_ip(stream);
+ s->vconn.remote_port = stream_get_remote_port(stream);
+ s->vconn.local_ip = stream_get_local_ip(stream);
+ s->vconn.local_port = stream_get_local_port(stream);
return &s->vconn;
}
Best regards,
--- Tetsuo NAKAGAWA
More information about the dev
mailing list