From 5bdfd4647651209e0cb83448fabf713a337acb1b Mon Sep 17 00:00:00 2001 From: brian Date: Sat, 6 Dec 1997 12:00:32 +0000 Subject: 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 --- sbin/natd/natd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sbin/natd') 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) -- cgit v1.1