patch-2.1.25 linux/net/ipv4/udp.c
Next file: linux/net/ipv6/af_inet6.c
Previous file: linux/net/ipv4/tcp_ipv4.c
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Sun Feb 2 15:18:49 1997
- Orig file:
v2.1.24/linux/net/ipv4/udp.c
- Orig date:
Tue Jan 28 18:50:58 1997
diff -u --recursive --new-file v2.1.24/linux/net/ipv4/udp.c linux/net/ipv4/udp.c
@@ -778,8 +778,8 @@
/* <mea@utu.fi> wants to know, who sent it, to
go and stomp on the garbage sender... */
- /* RFC1122: OK. Discards the bad packet silently (as far as */
- /* the network is concerned, anyway) as per 4.1.3.4 (MUST). */
+ /* RFC1122: OK. Discards the bad packet silently (as far as */
+ /* the network is concerned, anyway) as per 4.1.3.4 (MUST). */
NETDEBUG(printk("UDP: bad checksum. From %08lX:%d to %08lX:%d ulen %d\n",
ntohl(saddr),ntohs(uh->source),
@@ -793,11 +793,17 @@
len = ulen;
- /* Wrong! --ANK */
+ /*
+ * FIXME:
+ * Trimming things wrongly. We must adjust the base/end to allow
+ * for the headers we keep!
+ * --ANK
+ */
skb_trim(skb,len);
- if (rt->rt_flags&(RTF_BROADCAST|RTF_MULTICAST)) {
+ if (rt->rt_flags&(RTF_BROADCAST|RTF_MULTICAST))
+ {
/*
* Multicasts and broadcasts go to each listener.
*/
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov