git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add IPv6 support for OpenFlow, OVSDB, NetFlow, and sFlow.
[sliver-openvswitch.git]
/
lib
/
stream.c
diff --git
a/lib/stream.c
b/lib/stream.c
index
3542455
..
b69f03c
100644
(file)
--- a/
lib/stream.c
+++ b/
lib/stream.c
@@
-720,18
+720,18
@@
pstream_open_with_default_port(const char *name_,
/*
* This function extracts IP address and port from the target string.
*
/*
* This function extracts IP address and port from the target string.
*
- * - On success, function returns true and fills *s
in
structure with port
+ * - On success, function returns true and fills *s
s
structure with port
* and IP address. If port was absent in target string then it will use
* corresponding default port value.
* and IP address. If port was absent in target string then it will use
* corresponding default port value.
- * - On error, function returns false and *s
in
contains garbage.
+ * - On error, function returns false and *s
s
contains garbage.
*/
bool
stream_parse_target_with_default_port(const char *target,
uint16_t default_port,
*/
bool
stream_parse_target_with_default_port(const char *target,
uint16_t default_port,
- struct sockaddr_
in *sin
)
+ struct sockaddr_
storage *ss
)
{
return ((!strncmp(target, "tcp:", 4) || !strncmp(target, "ssl:", 4))
{
return ((!strncmp(target, "tcp:", 4) || !strncmp(target, "ssl:", 4))
-
&& inet_parse_active(target + 4, default_port, sin
));
+
&& inet_parse_active(target + 4, default_port, ss
));
}
/* Attempts to guess the content type of a stream whose first few bytes were
}
/* Attempts to guess the content type of a stream whose first few bytes were