From a11713da52b0a72a1cb17f00fc339d332866e9ca Mon Sep 17 00:00:00 2001 From: fenner Date: Fri, 15 Jun 2001 22:17:31 +0000 Subject: Remove #if 0 sections Finish converting over to having the caller print the IP address (except for UDP, TCP and SCTP). This consists mostly of removing places where the IP address is printed, both in the big "case" in ip_print() and in the individual printers. Also fix a couple of spacing bugs. --- print-udp.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'print-udp.c') diff --git a/print-udp.c b/print-udp.c index c9bb189b..0d397d62 100644 --- a/print-udp.c +++ b/print-udp.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-udp.c,v 1.93 2001-03-17 04:41:51 itojun Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-udp.c,v 1.94 2001-06-15 22:17:34 fenner Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -570,11 +570,6 @@ udp_print(register const u_char *bp, u_int length, return; } } -#if 0 - (void)printf("%s.%s > %s.%s:", - ipaddr_string(&ip->ip_src), udpport_string(sport), - ipaddr_string(&ip->ip_dst), udpport_string(dport)); -#else #ifdef INET6 if (ip6) { if (ip6->ip6_nxt == IPPROTO_UDP) { @@ -601,7 +596,6 @@ udp_print(register const u_char *bp, u_int length, udpport_string(sport), udpport_string(dport)); } } -#endif if (IP_V(ip) == 4 && vflag && !fragmented) { int sum = up->uh_sum; -- cgit v1.2.1