aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2006-11-27 12:25:58 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-03 00:30:43 -0500
commit4e9b82693542003b028c8494e9e3c49615b91ce7 (patch)
tree955620d0b859b3e5817faafcbe7de6b355bb7d05 /net
parentd61c167dd0797a16584f7a922dd5d50efad1d28a (diff)
[NETLINK]: Remove unused dst_pid field in netlink_skb_parms
The destination PID is passed directly to netlink_unicast() respectively netlink_multicast(). Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/decnet/dn_route.c2
-rw-r--r--net/ipv4/fib_frontend.c1
-rw-r--r--net/ipv4/netfilter/ip_conntrack_netlink.c4
-rw-r--r--net/netfilter/nf_conntrack_netlink.c4
-rw-r--r--net/netlink/af_netlink.c1
-rw-r--r--net/xfrm/xfrm_user.c2
6 files changed, 2 insertions, 12 deletions
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c
index f759d6f422ea..4eb985236aee 100644
--- a/net/decnet/dn_route.c
+++ b/net/decnet/dn_route.c
@@ -1592,8 +1592,6 @@ int dn_cache_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh, void *arg)
1592 if (rtm->rtm_flags & RTM_F_NOTIFY) 1592 if (rtm->rtm_flags & RTM_F_NOTIFY)
1593 rt->rt_flags |= RTCF_NOTIFY; 1593 rt->rt_flags |= RTCF_NOTIFY;
1594 1594
1595 NETLINK_CB(skb).dst_pid = NETLINK_CB(in_skb).pid;
1596
1597 err = dn_rt_fill_info(skb, NETLINK_CB(in_skb).pid, nlh->nlmsg_seq, RTM_NEWROUTE, 0, 0); 1595 err = dn_rt_fill_info(skb, NETLINK_CB(in_skb).pid, nlh->nlmsg_seq, RTM_NEWROUTE, 0, 0);
1598 1596
1599 if (err == 0) 1597 if (err == 0)
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c
index 14025345cc56..d47b72af89ed 100644
--- a/net/ipv4/fib_frontend.c
+++ b/net/ipv4/fib_frontend.c
@@ -811,7 +811,6 @@ static void nl_fib_input(struct sock *sk, int len)
811 811
812 pid = nlh->nlmsg_pid; /*pid of sending process */ 812 pid = nlh->nlmsg_pid; /*pid of sending process */
813 NETLINK_CB(skb).pid = 0; /* from kernel */ 813 NETLINK_CB(skb).pid = 0; /* from kernel */
814 NETLINK_CB(skb).dst_pid = pid;
815 NETLINK_CB(skb).dst_group = 0; /* unicast */ 814 NETLINK_CB(skb).dst_group = 0; /* unicast */
816 netlink_unicast(sk, skb, pid, MSG_DONTWAIT); 815 netlink_unicast(sk, skb, pid, MSG_DONTWAIT);
817} 816}
diff --git a/net/ipv4/netfilter/ip_conntrack_netlink.c b/net/ipv4/netfilter/ip_conntrack_netlink.c
index 55f0ae641081..1bb8ed33c5bc 100644
--- a/net/ipv4/netfilter/ip_conntrack_netlink.c
+++ b/net/ipv4/netfilter/ip_conntrack_netlink.c
@@ -743,7 +743,6 @@ ctnetlink_get_conntrack(struct sock *ctnl, struct sk_buff *skb,
743 ip_conntrack_put(ct); 743 ip_conntrack_put(ct);
744 return -ENOMEM; 744 return -ENOMEM;
745 } 745 }
746 NETLINK_CB(skb2).dst_pid = NETLINK_CB(skb).pid;
747 746
748 err = ctnetlink_fill_info(skb2, NETLINK_CB(skb).pid, nlh->nlmsg_seq, 747 err = ctnetlink_fill_info(skb2, NETLINK_CB(skb).pid, nlh->nlmsg_seq,
749 IPCTNL_MSG_CT_NEW, 1, ct); 748 IPCTNL_MSG_CT_NEW, 1, ct);
@@ -1273,8 +1272,7 @@ ctnetlink_get_expect(struct sock *ctnl, struct sk_buff *skb,
1273 skb2 = alloc_skb(NLMSG_GOODSIZE, GFP_KERNEL); 1272 skb2 = alloc_skb(NLMSG_GOODSIZE, GFP_KERNEL);
1274 if (!skb2) 1273 if (!skb2)
1275 goto out; 1274 goto out;
1276 NETLINK_CB(skb2).dst_pid = NETLINK_CB(skb).pid; 1275
1277
1278 err = ctnetlink_exp_fill_info(skb2, NETLINK_CB(skb).pid, 1276 err = ctnetlink_exp_fill_info(skb2, NETLINK_CB(skb).pid,
1279 nlh->nlmsg_seq, IPCTNL_MSG_EXP_NEW, 1277 nlh->nlmsg_seq, IPCTNL_MSG_EXP_NEW,
1280 1, exp); 1278 1, exp);
diff --git a/net/netfilter/nf_conntrack_netlink.c b/net/netfilter/nf_conntrack_netlink.c
index ab67c2be2b5d..cfb35fd8d9b9 100644
--- a/net/netfilter/nf_conntrack_netlink.c
+++ b/net/netfilter/nf_conntrack_netlink.c
@@ -752,7 +752,6 @@ ctnetlink_get_conntrack(struct sock *ctnl, struct sk_buff *skb,
752 nf_ct_put(ct); 752 nf_ct_put(ct);
753 return -ENOMEM; 753 return -ENOMEM;
754 } 754 }
755 NETLINK_CB(skb2).dst_pid = NETLINK_CB(skb).pid;
756 755
757 err = ctnetlink_fill_info(skb2, NETLINK_CB(skb).pid, nlh->nlmsg_seq, 756 err = ctnetlink_fill_info(skb2, NETLINK_CB(skb).pid, nlh->nlmsg_seq,
758 IPCTNL_MSG_CT_NEW, 1, ct); 757 IPCTNL_MSG_CT_NEW, 1, ct);
@@ -1300,8 +1299,7 @@ ctnetlink_get_expect(struct sock *ctnl, struct sk_buff *skb,
1300 skb2 = alloc_skb(NLMSG_GOODSIZE, GFP_KERNEL); 1299 skb2 = alloc_skb(NLMSG_GOODSIZE, GFP_KERNEL);
1301 if (!skb2) 1300 if (!skb2)
1302 goto out; 1301 goto out;
1303 NETLINK_CB(skb2).dst_pid = NETLINK_CB(skb).pid; 1302
1304
1305 err = ctnetlink_exp_fill_info(skb2, NETLINK_CB(skb).pid, 1303 err = ctnetlink_exp_fill_info(skb2, NETLINK_CB(skb).pid,
1306 nlh->nlmsg_seq, IPCTNL_MSG_EXP_NEW, 1304 nlh->nlmsg_seq, IPCTNL_MSG_EXP_NEW,
1307 1, exp); 1305 1, exp);
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index f61d81b3c61c..3baafb10f8f3 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -1153,7 +1153,6 @@ static int netlink_sendmsg(struct kiocb *kiocb, struct socket *sock,
1153 goto out; 1153 goto out;
1154 1154
1155 NETLINK_CB(skb).pid = nlk->pid; 1155 NETLINK_CB(skb).pid = nlk->pid;
1156 NETLINK_CB(skb).dst_pid = dst_pid;
1157 NETLINK_CB(skb).dst_group = dst_group; 1156 NETLINK_CB(skb).dst_group = dst_group;
1158 NETLINK_CB(skb).loginuid = audit_get_loginuid(current->audit_context); 1157 NETLINK_CB(skb).loginuid = audit_get_loginuid(current->audit_context);
1159 selinux_get_task_sid(current, &(NETLINK_CB(skb).sid)); 1158 selinux_get_task_sid(current, &(NETLINK_CB(skb).sid));
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c
index 6c4d2f49d9e5..8dbb38b91de2 100644
--- a/net/xfrm/xfrm_user.c
+++ b/net/xfrm/xfrm_user.c
@@ -650,7 +650,6 @@ static struct sk_buff *xfrm_state_netlink(struct sk_buff *in_skb,
650 if (!skb) 650 if (!skb)
651 return ERR_PTR(-ENOMEM); 651 return ERR_PTR(-ENOMEM);
652 652
653 NETLINK_CB(skb).dst_pid = NETLINK_CB(in_skb).pid;
654 info.in_skb = in_skb; 653 info.in_skb = in_skb;
655 info.out_skb = skb; 654 info.out_skb = skb;
656 info.nlmsg_seq = seq; 655 info.nlmsg_seq = seq;
@@ -1168,7 +1167,6 @@ static struct sk_buff *xfrm_policy_netlink(struct sk_buff *in_skb,
1168 if (!skb) 1167 if (!skb)
1169 return ERR_PTR(-ENOMEM); 1168 return ERR_PTR(-ENOMEM);
1170 1169
1171 NETLINK_CB(skb).dst_pid = NETLINK_CB(in_skb).pid;
1172 info.in_skb = in_skb; 1170 info.in_skb = in_skb;
1173 info.out_skb = skb; 1171 info.out_skb = skb;
1174 info.nlmsg_seq = seq; 1172 info.nlmsg_seq = seq;