X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/24342857b7a1e6ab11edb6db027a7046cc4c9d40..e45e68586d8ea982f95285884ecca4ea8e8a0182:/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 3724f6c61f..a2f703a9b5 100644 --- a/usr/src/sys/netinet/tcp_debug.c +++ b/usr/src/sys/netinet/tcp_debug.c @@ -1,4 +1,4 @@ -/* tcp_debug.c 4.1 81/12/22 */ +/* tcp_debug.c 4.3 82/03/29 */ #include "../h/param.h" #include "../h/systm.h" @@ -8,6 +8,7 @@ #define PRUREQUESTS #include "../h/protosw.h" #include "../net/in.h" +#include "../net/route.h" #include "../net/in_pcb.h" #include "../net/in_systm.h" #include "../net/if.h" @@ -37,7 +38,6 @@ tcp_trace(act, ostate, tp, ti, req) { tcp_seq seq, ack; int len, flags; - char *cp; struct tcp_debug *td = &tcp_debug[tcp_debx++]; if (tcp_debx == TCP_NDEBUG) @@ -73,7 +73,7 @@ tcp_trace(act, ostate, tp, ti, req) if (act == TA_OUTPUT) { seq = ntohl(seq); ack = ntohl(ack); - len = ntohs(len); + len = ntohs((u_short)len); } #endif if (act == TA_OUTPUT) @@ -85,9 +85,11 @@ tcp_trace(act, ostate, tp, ti, req) printf("@%x", ack); flags = ti->ti_flags; if (flags) { +#ifndef lint char *cp = "<"; #define pf(f) { if (ti->ti_flags&TH_/**/f) { printf("%s%s", cp, "f"); cp = ","; } } pf(SYN); pf(ACK); pf(FIN); pf(RST); +#endif printf(">"); } break;