mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-06-02 10:41:29 +00:00
Fixed compiling tcpdump.c after removing the macro TCPH_OFFSET() (patch by Erik Ekman)
This commit is contained in:
parent
f9147eb997
commit
e7723b295d
|
@ -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] != '.') {
|
||||
|
|
Loading…
Reference in New Issue
Block a user