X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fstream.c;h=0442d84e018da2533a9cee1247567ff3ad220c71;hb=afc9f54778901086a9565c14e1ce16c3c7aca514;hp=5bf42ce8798b489f9ca30ceb1257a2a0f8bb47f4;hpb=ca843648e3b4181a52a398b902e5e69221976476;p=sliver-openvswitch.git diff --git a/lib/stream.c b/lib/stream.c index 5bf42ce87..0442d84e0 100644 --- a/lib/stream.c +++ b/lib/stream.c @@ -26,6 +26,7 @@ #include "dynamic-string.h" #include "fatal-signal.h" #include "flow.h" +#include "jsonrpc.h" #include "ofp-print.h" #include "ofpbuf.h" #include "openflow/nicira-ext.h" @@ -34,6 +35,9 @@ #include "poll-loop.h" #include "random.h" #include "util.h" +#include "vlog.h" + +VLOG_DEFINE_THIS_MODULE(stream); COVERAGE_DEFINE(pstream_open); COVERAGE_DEFINE(stream_open); @@ -727,6 +731,15 @@ stream_open_with_default_port(const char *name_, if ((!strncmp(name_, "tcp:", 4) || !strncmp(name_, "ssl:", 4)) && count_fields(name_) < 3) { + if (default_port == OFP_OLD_PORT) { + VLOG_WARN_ONCE("The default OpenFlow port number will change " + "from %d to %d in a future release", + OFP_OLD_PORT, OFP_PORT); + } else if (default_port == OVSDB_OLD_PORT) { + VLOG_WARN_ONCE("The default OVSDB port number will change " + "from %d to %d in a future release", + OVSDB_OLD_PORT, OVSDB_PORT); + } name = xasprintf("%s:%d", name_, default_port); } else { name = xstrdup(name_);