From: Guy Harris Date: Thu, 5 Mar 2009 09:42:33 +0000 (-0800) Subject: The checksum is optional in UDP-over-IPv4, so go back to the earlier X-Git-Tag: tcpdump-4.1.0~133 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/f7232ea6197e1158b134a636237cb05fe73f2851?ds=inline The checksum is optional in UDP-over-IPv4, so go back to the earlier behavior where it's checked only with -vv and higher. --- diff --git a/print-udp.c b/print-udp.c index f4517fee..5e564cde 100644 --- a/print-udp.c +++ b/print-udp.c @@ -568,7 +568,7 @@ udp_print(register const u_char *bp, u_int length, } udpipaddr_print(ip, sport, dport); - if (IP_V(ip) == 4 && vflag && !Kflag && !fragmented) { + if (IP_V(ip) == 4 && (vflag > 1) && !Kflag && !fragmented) { int sum = up->uh_sum; if (sum == 0) { (void)printf("[no cksum] ");