Fixed compiling tcpdump.c after removing the macro TCPH_OFFSET() (patch by Erik Ekman)

This commit is contained in:
Simon Goldschmidt 2012-09-26 21:33:25 +02:00
parent f9147eb997
commit e7723b295d
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ tcpdump(struct pbuf *p)
(int)(ntohl(iphdr->dest.addr) >> 8) & 0xff,
(int)(ntohl(iphdr->dest.addr) >> 0) & 0xff,
ntohs(tcphdr->dest));
offset = TCPH_OFFSET(tcphdr) >> 4;
offset = TCPH_HDRLEN(tcphdr);
len = ntohs(IPH_LEN(iphdr)) - offset * 4 - IP_HLEN;
if (len != 0 || flags[0] != '.') {