diff options
| author | Brian Somers <brian@FreeBSD.org> | 2002-07-01 11:19:40 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 2002-07-01 11:19:40 +0000 |
| commit | 27cc91fbf84cc6c1cef81df859125f42292a2b69 (patch) | |
| tree | 7ac18556721e3d172be5151edc94d09c3b206d75 /lib/libalias/alias_proxy.c | |
| parent | 5346934fe7577876dc77535e40153c1275a2b252 (diff) | |
Notes
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 3bd007c08538..6c95ea93073a 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); |
