: Remove unused dst_pid field in netlink_skb_parms
Subsystems (5)
The destination PID is passed directly to netlink_unicast() respectively netlink_multicast().
Signed-off-by Thomas Graf <[email protected]>
include/linux/netlink.h +0 -1
@@ -141,7 +141,6 @@ {struct ucred creds;/* Skb credentials */ __u32 pid; -__u32 dst_pid;__u32 dst_group;kernel_cap_t eff_cap;__u32 loginuid;/* Login (audit) uid */
net/decnet/dn_route.c +0 -2
@@ -1592,8 +1592,6 @@if (rtm->rtm_flags &RTM_F_NOTIFY ) rt->rt_flags |=RTCF_NOTIFY ; -NETLINK_CB (skb).dst_pid =NETLINK_CB (in_skb).pid; - err =dn_rt_fill_info (skb,NETLINK_CB (in_skb).pid, nlh->nlmsg_seq,RTM_NEWROUTE ,0 ,0 );if (err ==0 )
net/ipv4/fib_frontend.c +0 -1
@@ -811,7 +811,6 @@ pid = nlh->nlmsg_pid;/*pid of sending process */ NETLINK_CB (skb).pid =0 ;/* from kernel */ -NETLINK_CB (skb).dst_pid = pid;NETLINK_CB (skb).dst_group =0 ;/* unicast */ netlink_unicast (sk, skb, pid,MSG_DONTWAIT ); }
net/netfilter/nf_conntrack_netlink.c +1 -3
@@ -751,7 +751,6 @@nf_ct_put (ct);return -ENOMEM ; } -NETLINK_CB (skb2).dst_pid =NETLINK_CB (skb).pid; err =ctnetlink_fill_info (skb2,NETLINK_CB (skb).pid, nlh->nlmsg_seq,IPCTNL_MSG_CT_NEW ,1 , ct);
@@ -1291,8 +1290,7 @@ skb2 =alloc_skb (NLMSG_GOODSIZE ,GFP_KERNEL );if (!skb2) goto out; -NETLINK_CB (skb2).dst_pid =NETLINK_CB (skb).pid; - + err =ctnetlink_exp_fill_info (skb2,NETLINK_CB (skb).pid, nlh->nlmsg_seq,IPCTNL_MSG_EXP_NEW ,1 , exp);
net/ipv4/netfilter/ip_conntrack_netlink.c +1 -3
@@ -742,7 +742,6 @@ip_conntrack_put (ct);return -ENOMEM ; } -NETLINK_CB (skb2).dst_pid =NETLINK_CB (skb).pid; err =ctnetlink_fill_info (skb2,NETLINK_CB (skb).pid, nlh->nlmsg_seq,IPCTNL_MSG_CT_NEW ,1 , ct);
@@ -1272,8 +1271,7 @@ skb2 =alloc_skb (NLMSG_GOODSIZE ,GFP_KERNEL );if (!skb2) goto out; -NETLINK_CB (skb2).dst_pid =NETLINK_CB (skb).pid; - + err =ctnetlink_exp_fill_info (skb2,NETLINK_CB (skb).pid, nlh->nlmsg_seq,IPCTNL_MSG_EXP_NEW ,1 , exp);
net/xfrm/xfrm_user.c +0 -2
@@ -649,7 +649,6 @@if (!skb)return ERR_PTR (-ENOMEM ); -NETLINK_CB (skb).dst_pid =NETLINK_CB (in_skb).pid; info.in_skb = in_skb; info.out_skb = skb; info.nlmsg_seq = seq;
@@ -1167,7 +1166,6 @@if (!skb)return ERR_PTR (-ENOMEM ); -NETLINK_CB (skb).dst_pid =NETLINK_CB (in_skb).pid; info.in_skb = in_skb; info.out_skb = skb; info.nlmsg_seq = seq;
net/netlink/af_netlink.c +0 -1
@@ -1153,7 +1153,6 @@ goto out;NETLINK_CB (skb).pid = nlk->pid; -NETLINK_CB (skb).dst_pid = dst_pid;NETLINK_CB (skb).dst_group = dst_group;NETLINK_CB (skb).loginuid =audit_get_loginuid (current->audit_context);selinux_get_task_sid (current, &(NETLINK_CB (skb).sid));
David Miller
maintainerFrom: Thomas Graf <[email protected]>
Date: Mon, 27 Nov 2006 10:02:38 +0100
Quoted 4 lines
The destination PID is passed directly to
netlink_unicast()respectivelynetlink_multicast().Signed-off-by Thomas Graf <[email protected]>
Nothing but assignments to that thing :-) Good catch, applied, thanks Thomas.