patch-2.1.22 linux/net/ipv6/udp.c
Next file: linux/net/ipx/af_ipx.c
Previous file: linux/net/ipv6/sit.c
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Sun Jan 19 15:47:28 1997
- Orig file:
v2.1.21/linux/net/ipv6/udp.c
- Orig date:
Wed Jan 15 19:45:47 1997
diff -u --recursive --new-file v2.1.21/linux/net/ipv6/udp.c linux/net/ipv6/udp.c
@@ -231,17 +231,8 @@
memcpy(&sin6->sin6_addr, &skb->nh.ipv6h->saddr,
sizeof(struct in6_addr));
- if (msg->msg_control)
- {
- int err;
-
- err = datagram_recv_ctl(sk, msg, skb);
-
- if (err < 0)
- {
- copied = err;
- }
- }
+ if (msg->msg_controllen)
+ datagram_recv_ctl(sk, msg, skb);
}
}
@@ -556,7 +547,7 @@
udh.daddr = NULL;
- if (msg->msg_control)
+ if (msg->msg_controllen)
{
opt = &opt_space;
memset(opt, 0, sizeof(struct ipv6_options));
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov