diff options
author | 2006-05-31 01:49:17 +0000 | |
---|---|---|
committer | 2006-05-31 01:49:17 +0000 | |
commit | c4e0945d3831b7142fd101b0ae2f3965c5f534bf (patch) | |
tree | 35986e82c238b26fa4e0058a7eb89a7ad662cf97 /usr.sbin/tcpdump/print-udp.c | |
parent | Enable wdt(4) by default. ok deraadt (diff) | |
download | wireguard-openbsd-c4e0945d3831b7142fd101b0ae2f3965c5f534bf.tar.xz wireguard-openbsd-c4e0945d3831b7142fd101b0ae2f3965c5f534bf.zip |
remove extra space in output; ok markus@ moritz@
Diffstat (limited to 'usr.sbin/tcpdump/print-udp.c')
-rw-r--r-- | usr.sbin/tcpdump/print-udp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/tcpdump/print-udp.c b/usr.sbin/tcpdump/print-udp.c index f49b63c7e7e..f0868e3dc62 100644 --- a/usr.sbin/tcpdump/print-udp.c +++ b/usr.sbin/tcpdump/print-udp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-udp.c,v 1.27 2006/05/23 14:20:19 stevesk Exp $ */ +/* $OpenBSD: print-udp.c,v 1.28 2006/05/31 01:49:17 stevesk Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996 @@ -23,7 +23,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/print-udp.c,v 1.27 2006/05/23 14:20:19 stevesk Exp $ (LBL)"; + "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/print-udp.c,v 1.28 2006/05/31 01:49:17 stevesk Exp $ (LBL)"; #endif #include <sys/param.h> @@ -528,7 +528,7 @@ udp_print(register const u_char *bp, u_int length, register const u_char *bp2) #ifdef INET6 if (ip6) { if (ip6->ip6_nxt == IPPROTO_UDP) { - (void)printf("%s.%s > %s.%s: ", + (void)printf("%s.%s > %s.%s:", ip6addr_string(&ip6->ip6_src), udpport_string(sport), ip6addr_string(&ip6->ip6_dst), @@ -541,13 +541,13 @@ udp_print(register const u_char *bp, u_int length, register const u_char *bp2) #endif /*INET6*/ { if (ip->ip_p == IPPROTO_UDP) { - (void)printf("%s.%s > %s.%s: ", + (void)printf("%s.%s > %s.%s:", ipaddr_string(&ip->ip_src), udpport_string(sport), ipaddr_string(&ip->ip_dst), udpport_string(dport)); } else { - (void)printf("%s > %s: ", + (void)printf("%s > %s:", udpport_string(sport), udpport_string(dport)); } } |