diff options
Diffstat (limited to 'ui/cli')
-rw-r--r-- | ui/cli/tap-comparestat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/cli/tap-comparestat.c b/ui/cli/tap-comparestat.c index 3d3fbdee82..83f192cc5b 100644 --- a/ui/cli/tap-comparestat.c +++ b/ui/cli/tap-comparestat.c @@ -49,7 +49,7 @@ /* For checksum */ -#define BYTES 8 +#define BYTES 12 #define WRONG_CHKSUM 0 #define MERGED_FILES 2 @@ -124,7 +124,7 @@ comparestat_packet(void *arg, packet_info *pinfo, epan_dissect_t *edt _U_, const } /* Set up the fields of the pseudo-header and create checksum */ - cksum_vec[0].ptr = &ci->ip_v_hl; + cksum_vec[0].ptr = (const guint8 *)&ci; cksum_vec[0].len = BYTES; /* skip TTL */ cksum_vec[1].ptr = &ci->ip_nxt; |