diff options
Diffstat (limited to 'lib/libalias/alias_proxy.c')
-rw-r--r-- | lib/libalias/alias_proxy.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libalias/alias_proxy.c b/lib/libalias/alias_proxy.c index 3bd007c..6c95ea9 100644 --- a/lib/libalias/alias_proxy.c +++ b/lib/libalias/alias_proxy.c @@ -39,7 +39,7 @@ __FBSDID("$FreeBSD$"); presently supported: addition of a [DEST addr port] string at the beginning a of tcp stream, or inclusion of an optional field in the IP header. - + There is one public API function: PacketAliasProxyRule() -- Adds and deletes proxy @@ -301,7 +301,7 @@ ProxyEncodeTcpStream(struct alias_link *link, /* Translate destination address and port to string form */ snprintf(buffer, sizeof(buffer) - 2, "[DEST %s %d]", inet_ntoa(GetProxyAddress (link)), (u_int) ntohs(GetProxyPort (link))); - + /* Pad string out to a multiple of two in length */ slen = strlen(buffer); switch (slen % 2) @@ -663,7 +663,7 @@ PacketAliasProxyRule(const char *cmd) else { *p = ' '; - + n = sscanf(token, "%s %s", s, str_server_port); if (n != 2) return -1; @@ -753,7 +753,7 @@ PacketAliasProxyRule(const char *cmd) src_addr = addr; src_mask = mask; } - else + else { dst_addr = addr; dst_mask = mask; @@ -799,7 +799,7 @@ PacketAliasProxyRule(const char *cmd) } if (strlen(str_server_port) != 0) - { + { int err; err = IpPort(str_server_port, proto, &server_port); |