diff options
author | Ben Pfaff <blp@nicira.com> | 2009-06-12 17:05:51 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2009-06-12 17:05:51 -0700 |
commit | 78ff02708b11df94ac2cdf6fe82dc922758c7e30 (patch) | |
tree | 8127ee7758709c22f77e7722f6d36ca9985d27b0 /lib/vconn.c | |
parent | 5fe577ebbec3cbcc6f77d966ed04f099b40a0d0b (diff) |
vconn: Factor out common code from TCP and SSL vconns.
The TCP and SSL vconn implementations had a lot of common code to make
and accept TCP connections, which this commit factors out into common
functions in socket-util.c.
Also adds the ability to bind ptcp and pssl vconns to a particular IP
address instead of the wildcard address.
Diffstat (limited to 'lib/vconn.c')
-rw-r--r-- | lib/vconn.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/vconn.c b/lib/vconn.c index b4840512..2075300f 100644 --- a/lib/vconn.c +++ b/lib/vconn.c @@ -139,12 +139,12 @@ vconn_usage(bool active, bool passive, bool bootstrap UNUSED) if (passive) { printf("Passive OpenFlow connection methods:\n"); - printf(" ptcp:[PORT] " - "listen to TCP PORT (default: %d)\n", + printf(" ptcp:[PORT][:IP] " + "listen to TCP PORT (default: %d) on IP\n", OFP_TCP_PORT); #ifdef HAVE_OPENSSL - printf(" pssl:[PORT] " - "listen for SSL on PORT (default: %d)\n", + printf(" pssl:[PORT][:IP] " + "listen for SSL on PORT (default: %d) on IP\n", OFP_SSL_PORT); #endif printf(" punix:FILE " |