Date: Thu, 6 Dec 2001 12:28:55 -0600 (CST) From: mark tinguely <tinguely@web.cs.ndsu.nodak.edu> To: freebsd@hoolan.org, tinguely@web.cs.ndsu.nodak.edu, tinguely@web.cs.ndsu.nodak.edu, tlambert2@mindspring.com Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: UDP checksum error after encapsulating multicast packet Message-ID: <200112061828.fB6IStX89640@web.cs.ndsu.nodak.edu> In-Reply-To: <200112061610.fB6GApo88433@web.cs.ndsu.nodak.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
the len and offset have been put in net order, but the len is then
assumed to be in host order:
in sys/netinet:
--- ip_mroute.c.orig Thu Jul 19 01:37:26 2001
+++ ip_mroute.c Thu Dec 6 12:26:25 2001
@@ -1595,6 +1595,7 @@
*/
ip = (struct ip *)((caddr_t)ip_copy + sizeof(multicast_encap_iphdr));
--ip->ip_ttl;
+ len = ip->ip_len;
HTONS(ip->ip_len);
HTONS(ip->ip_off);
ip->ip_sum = 0;
@@ -1605,7 +1606,7 @@
if (vifp->v_rate_limit == 0)
tbf_send_packet(vifp, mb_copy);
else
- tbf_control(vifp, mb_copy, ip, ip_copy->ip_len);
+ tbf_control(vifp, mb_copy, ip, len);
}
/*
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112061828.fB6IStX89640>
