aboutsummaryrefslogtreecommitdiffstats
path: root/net/scotty3
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1997-03-03 19:46:46 +0800
committerphk <phk@FreeBSD.org>1997-03-03 19:46:46 +0800
commit420d4cfb3f6263b8ea69eb4a3d2ad9fbf6e2dc97 (patch)
tree2d62e250e7cd5e1b7c7e010794818782d5280db3 /net/scotty3
parent59c900eb64d9bbd386df917cb87d4578aba739d7 (diff)
downloadfreebsd-ports-gnome-420d4cfb3f6263b8ea69eb4a3d2ad9fbf6e2dc97.tar.gz
freebsd-ports-gnome-420d4cfb3f6263b8ea69eb4a3d2ad9fbf6e2dc97.tar.zst
freebsd-ports-gnome-420d4cfb3f6263b8ea69eb4a3d2ad9fbf6e2dc97.zip
A better attempt to correct the host/net byteorder problems.
Diffstat (limited to 'net/scotty3')
-rw-r--r--net/scotty3/files/patch-ab36
1 files changed, 20 insertions, 16 deletions
diff --git a/net/scotty3/files/patch-ab b/net/scotty3/files/patch-ab
index 5117a58b2f53..e82ab476e3aa 100644
--- a/net/scotty3/files/patch-ab
+++ b/net/scotty3/files/patch-ab
@@ -1,20 +1,24 @@
-diff -u -r tnm/generic/tnmUtil.c tnm/generic/tnmUtil.c
+--- ../tnm/generic/tnmNetdb.c Wed Aug 7 07:13:18 1996
++++ ../tnm/generic/tnmNetdb.c Mon Mar 3 11:46:16 1997
+@@ -218,6 +218,9 @@
+ if (TnmSetIPAddress(interp, name, &addr) != TCL_OK) {
+ return TCL_ERROR;
+ }
++
++ addr.sin_addr.s_addr = ntohl(addr.sin_addr.s_addr);
++
+ sprintf(interp->result, "%lu.%lu.%lu.%lu",
+ (addr.sin_addr.s_addr >> 24) & 0xff,
+ (addr.sin_addr.s_addr >> 16) & 0xff,
+diff -u -r work.ref/scotty-2.1.3/tnm/generic/tnmUtil.c work/scotty-2.1.3/tnm/generic/tnmUtil.c
--- ../tnm/generic/tnmUtil.c Tue Aug 6 17:20:38 1996
-+++ ../tnm/generic/tnmUtil.c Sat Mar 1 20:45:12 1997
-@@ -400,7 +400,7 @@
- if (hostEntry) {
- struct sockaddr_in *caddr;
- caddr = (struct sockaddr_in *) Tcl_GetHashValue(hostEntry);
-- addr->sin_addr.s_addr = caddr->sin_addr.s_addr;
-+ addr->sin_addr.s_addr = ntohl(caddr->sin_addr.s_addr);
- return TCL_OK;
++++ ../tnm/generic/tnmUtil.c Mon Mar 3 11:41:33 1997
+@@ -478,6 +478,8 @@
+ return name;
}
-
-@@ -425,6 +425,7 @@
- memcpy((char *) &addr->sin_addr, (char *) &hostaddr, 4);
- }
+ addr->sin_addr.s_addr = ntohl(addr->sin_addr.s_addr);
- return TCL_OK;
- }
-
++
+ if (interp) {
+ char buffer[20];
+ sprintf(buffer, "%lu.%lu.%lu.%lu",