summaryrefslogtreecommitdiff
path: root/net/tcpview/files/patch-detail-tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/tcpview/files/patch-detail-tcp.c')
-rw-r--r--net/tcpview/files/patch-detail-tcp.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/net/tcpview/files/patch-detail-tcp.c b/net/tcpview/files/patch-detail-tcp.c
new file mode 100644
index 000000000000..205e0ee32a51
--- /dev/null
+++ b/net/tcpview/files/patch-detail-tcp.c
@@ -0,0 +1,28 @@
+--- detail-tcp.c.orig 1993-04-22 20:39:55 UTC
++++ detail-tcp.c
+@@ -37,6 +37,7 @@ static char rcsid[] =
+ #endif
+
+ #include <sys/types.h>
++#include <sys/param.h>
+ #include <netinet/in.h>
+ #include <netinet/in_systm.h>
+ #include <netinet/ip.h>
+@@ -82,7 +83,7 @@ u_short length;
+ hex( 2, 3 );
+
+ bcopy(&tp->th_seq,&seq,4);
+- NTOHL(seq);
++ ntohl(seq);
+ printf("Sequence number = %lu\n",seq);
+ hex( 4, 7 );
+
+@@ -90,7 +91,7 @@ u_short length;
+
+ if( flags & TH_ACK ) {
+ bcopy(&tp->th_ack,&ack,4);
+- NTOHL(ack);
++ ntohl(ack);
+ printf("Acknowledgement number = %lu\n",ack);
+ hex( 8, 11);
+ }