diff options
author | brian <brian@FreeBSD.org> | 1997-12-06 12:00:32 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-12-06 12:00:32 +0000 |
commit | 5bdfd4647651209e0cb83448fabf713a337acb1b (patch) | |
tree | dbde21598eff965dfb838196b7fe46d78d66aab3 /sbin | |
parent | 1a4a2c1dd5e2c7ba97a31d9225a7c24275650402 (diff) | |
download | FreeBSD-src-5bdfd4647651209e0cb83448fabf713a337acb1b.zip FreeBSD-src-5bdfd4647651209e0cb83448fabf713a337acb1b.tar.gz |
Reverse my previous change and use htons() on an int
instead of htonl() !
This results in the int a,b,c,d changing to b,a,c,d,
but as it's subsequently coerced to a u_short, the
ultimate answer is correct.
If this isn't fixed properly soon (by the author) I'll
have a look at it again.
Noted by: eivind & ari@suutari.iki.fi
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/natd/natd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/natd/natd.c b/sbin/natd/natd.c index ceb198a..fb80d1d 100644 --- a/sbin/natd/natd.c +++ b/sbin/natd/natd.c @@ -1332,7 +1332,7 @@ int StrToPort (char* str, char* proto) port = strtol (str, &end, 10); if (end != str) - return htonl (port); + return htons (port); sp = getservbyname (str, proto); if (!sp) |