aboutsummaryrefslogtreecommitdiff
path: root/lib/stream.h
diff options
context:
space:
mode:
authorAnsis Atteka <aatteka@nicira.com>2011-12-19 12:43:34 -0800
committerAnsis Atteka <aatteka@nicira.com>2011-12-19 17:54:13 -0800
commitac4c900d4b88848cd350fc82665de51ac1497668 (patch)
treebc9eb202194440252807805b074954a735181259 /lib/stream.h
parent080c686589466b5c802d8fdef7f724cd821c98f3 (diff)
vswitchd: In-band rules for Controller are missing after executing force-reload-kmod command
In current implementation vswitchd adds Controller in-band rules only if there is a route in kernel routing table that might route traffic to the Controller. But, when executing force-reload-kmod command, network configuration (e.g. assigned IP addresses, routes) are flushed away, hence Controller in-band rules are not added. This commit fixes this limitation and allows vswitchd to add Controller in-band rules even if there are no routes in the kernel routing table. Issue: #8625 Signed-off-by: Ansis Atteka <aatteka@nicira.com>
Diffstat (limited to 'lib/stream.h')
-rw-r--r--lib/stream.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/stream.h b/lib/stream.h
index 51a76566..5c111f99 100644
--- a/lib/stream.h
+++ b/lib/stream.h
@@ -23,6 +23,7 @@
#include <sys/types.h>
#include "openvswitch/types.h"
#include "vlog.h"
+#include "socket-util.h"
struct pstream;
struct stream;
@@ -75,7 +76,11 @@ int pstream_open_with_default_ports(const char *name,
uint16_t default_ptcp_port,
uint16_t default_pssl_port,
struct pstream **);
-
+bool stream_parse_target_with_default_ports(const char *target,
+ uint16_t default_tcp_port,
+ uint16_t default_ssl_port,
+ struct sockaddr_in *sin);
+
/* Error reporting. */
enum stream_content_type {