Merge branch 'master' of git.sv.gnu.org:/srv/git/lwip/lwip-contrib

This commit is contained in:
Simon Goldschmidt 2011-08-24 22:53:49 +02:00
commit bce6087f47
1 changed files with 6 additions and 6 deletions

View File

@ -81,9 +81,9 @@ tcpdump(struct pbuf *p)
tcphdr = (struct tcp_hdr *)((char *)iphdr + IP_HLEN);
pbuf_header(p, -IP_HLEN);
if (inet_chksum_pseudo(p, (ip_addr_t *)&(iphdr->src),
(ip_addr_t *)&(iphdr->dest),
IP_PROTO_TCP, p->tot_len) != 0) {
if (inet_chksum_pseudo(p, IP_PROTO_TCP, p->tot_len,
(ip_addr_t *)&(iphdr->src),
(ip_addr_t *)&(iphdr->dest)) != 0) {
LWIP_DEBUGF(TCPDUMP_DEBUG, ("tcpdump: IP checksum failed!\n"));
/* fprintf(file, "chksum 0x%lx ", tcphdr->chksum);
tcphdr->chksum = 0;
@ -152,9 +152,9 @@ tcpdump(struct pbuf *p)
udphdr = (struct udp_hdr *)((char *)iphdr + IP_HLEN);
pbuf_header(p, -IP_HLEN);
if (inet_chksum_pseudo(p, (ip_addr_t *)&(iphdr->src),
(ip_addr_t *)&(iphdr->dest),
IP_PROTO_UDP, p->tot_len) != 0) {
if (inet_chksum_pseudo(p, IP_PROTO_UDP, p->tot_len,
(ip_addr_t *)&(iphdr->src),
(ip_addr_t *)&(iphdr->dest)) != 0) {
LWIP_DEBUGF(TCPDUMP_DEBUG, ("tcpdump: IP checksum failed!\n"));
/* fprintf(file, "chksum 0x%lx ", tcphdr->chksum);
tcphdr->chksum = 0;