patch-2.4.25 linux-2.4.25/net/netlink/af_netlink.c
Next file: linux-2.4.25/net/sched/Config.in
Previous file: linux-2.4.25/net/ipv6/udp.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
2004-02-18 05:36:32.000000000 -0800
- Orig file:
linux-2.4.24/net/netlink/af_netlink.c
- Orig date:
2003-11-28 10:26:21.000000000 -0800
diff -urN linux-2.4.24/net/netlink/af_netlink.c linux-2.4.25/net/netlink/af_netlink.c
@@ -385,6 +385,7 @@
struct sockaddr_nl *nladdr=(struct sockaddr_nl *)addr;
nladdr->nl_family = AF_NETLINK;
+ nladdr->nl_pad = 0;
*addr_len = sizeof(*nladdr);
if (peer) {
@@ -675,6 +676,7 @@
if (msg->msg_name) {
struct sockaddr_nl *addr = (struct sockaddr_nl*)msg->msg_name;
addr->nl_family = AF_NETLINK;
+ addr->nl_pad = 0;
addr->nl_pid = NETLINK_CB(skb).pid;
addr->nl_groups = NETLINK_CB(skb).dst_groups;
msg->msg_namelen = sizeof(*addr);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)