From: Guy Harris Date: Tue, 22 Dec 2015 19:45:52 +0000 (-0800) Subject: Consistently use 4, rather than a sizeof, as the size of an IPv4 address. X-Git-Tag: tcpdump-4.9.0-bp~57 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/5f1caad63354a9066285cdc7be37eaa003c86cf4 Consistently use 4, rather than a sizeof, as the size of an IPv4 address. --- diff --git a/print-gre.c b/print-gre.c index d739e038..4b83ca25 100644 --- a/print-gre.c +++ b/print-gre.c @@ -369,7 +369,7 @@ gre_sre_ip_print(netdissect_options *ndo, uint8_t sreoff, uint8_t srelen, } while (srelen != 0) { - if (!ND_TTEST2(*bp, sizeof(struct in_addr))) + if (!ND_TTEST2(*bp, 4)) return (0); if (len < 4) return (0);