projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix ip packet forwarding to not stomp on headers when fragmented;
[unix-history]
/
usr
/
src
/
sys
/
netinet
/
tcp_debug.c
diff --git
a/usr/src/sys/netinet/tcp_debug.c
b/usr/src/sys/netinet/tcp_debug.c
index
b323f34
..
e6491b4
100644
(file)
--- a/
usr/src/sys/netinet/tcp_debug.c
+++ b/
usr/src/sys/netinet/tcp_debug.c
@@
-1,4
+1,4
@@
-/* tcp_debug.c 4.
5 82/10/09
*/
+/* tcp_debug.c 4.
9 83/02/10
*/
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
@@
-7,11
+7,14
@@
#include "../h/socketvar.h"
#define PRUREQUESTS
#include "../h/protosw.h"
#include "../h/socketvar.h"
#define PRUREQUESTS
#include "../h/protosw.h"
-#include "../netinet/in.h"
+#include "../h/errno.h"
+
#include "../net/route.h"
#include "../net/route.h"
+#include "../net/if.h"
+
+#include "../netinet/in.h"
#include "../netinet/in_pcb.h"
#include "../netinet/in_systm.h"
#include "../netinet/in_pcb.h"
#include "../netinet/in_systm.h"
-#include "../net/if.h"
#include "../netinet/ip.h"
#include "../netinet/ip_var.h"
#include "../netinet/tcp.h"
#include "../netinet/ip.h"
#include "../netinet/ip_var.h"
#include "../netinet/tcp.h"
@@
-24,7
+27,6
@@
#include "../netinet/tcpip.h"
#define TANAMES
#include "../netinet/tcp_debug.h"
#include "../netinet/tcpip.h"
#define TANAMES
#include "../netinet/tcp_debug.h"
-#include <errno.h>
int tcpconsdebug = 0;
/*
int tcpconsdebug = 0;
/*
@@
-69,13
+71,11
@@
tcp_trace(act, ostate, tp, ti, req)
seq = ti->ti_seq;
ack = ti->ti_ack;
len = ti->ti_len;
seq = ti->ti_seq;
ack = ti->ti_ack;
len = ti->ti_len;
-#if vax
if (act == TA_OUTPUT) {
seq = ntohl(seq);
ack = ntohl(ack);
len = ntohs((u_short)len);
}
if (act == TA_OUTPUT) {
seq = ntohl(seq);
ack = ntohl(ack);
len = ntohs((u_short)len);
}
-#endif
if (act == TA_OUTPUT)
len -= sizeof (struct tcphdr);
if (len)
if (act == TA_OUTPUT)
len -= sizeof (struct tcphdr);
if (len)