Commit ff00642d authored by Ben Pfaff's avatar Ben Pfaff

stream-ssl: Fix misleading bound address format.

When the SSL code presents the name of the address to which it is bound,
it should include an "ssl:" or "pssl:" prefix instead of "tcp:" or "ptcp:".
Reported-by: default avatarmeishengxin <>
Fixes: e731d71b ("Add IPv6 support for OpenFlow, OVSDB, NetFlow, and sFlow.")
Signed-off-by: default avatarBen Pfaff <>
Acked-by: default avatarRussell Bryant <>
parent 442baef5
......@@ -379,6 +379,7 @@ ankur dwivedi
chen zhang
kk yap
neeraj mehta
rahim entezari
......@@ -806,7 +806,7 @@ pssl_open(const char *name OVS_UNUSED, char *suffix, struct pstream **pstreamp,
port = ss_get_port(&ss);
snprintf(bound_name, sizeof bound_name, "ptcp:%"PRIu16":%s",
snprintf(bound_name, sizeof bound_name, "pssl:%"PRIu16":%s",
port, ss_format_address(&ss, addrbuf, sizeof addrbuf));
pssl = xmalloc(sizeof *pssl);
......@@ -856,7 +856,7 @@ pssl_accept(struct pstream *pstream, struct stream **new_streamp)
return error;
snprintf(name, sizeof name, "tcp:%s:%"PRIu16,
snprintf(name, sizeof name, "ssl:%s:%"PRIu16,
ss_format_address(&ss, addrbuf, sizeof addrbuf),
return new_ssl_stream(name, new_fd, SERVER, STATE_SSL_CONNECTING,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment