Searched refs:netnsid (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.10/include/net/ |
D | rtnetlink.h | 169 struct net *rtnl_get_net_ns_capable(struct sock *sk, int netnsid);
|
/Linux-v5.10/net/ipv4/ |
D | devinet.c | 112 int netnsid; member 1668 if (args->netnsid >= 0 && in inet_fill_ifaddr() 1669 nla_put_s32(skb, IFA_TARGET_NETNSID, args->netnsid)) in inet_fill_ifaddr() 1755 fillargs->netnsid = nla_get_s32(tb[i]); in inet_valid_dump_ifaddr_req() 1757 net = rtnl_get_net_ns_capable(sk, fillargs->netnsid); in inet_valid_dump_ifaddr_req() 1759 fillargs->netnsid = -1; in inet_valid_dump_ifaddr_req() 1809 .netnsid = -1, in inet_dump_ifaddr() 1879 if (fillargs.netnsid >= 0) in inet_dump_ifaddr() 1893 .netnsid = -1, in rtmsg_ifa()
|
/Linux-v5.10/net/core/ |
D | rtnetlink.c | 1991 struct net *rtnl_get_net_ns_capable(struct sock *sk, int netnsid) in rtnl_get_net_ns_capable() argument 1995 net = get_net_ns_by_id(sock_net(sk), netnsid); in rtnl_get_net_ns_capable() 2069 int netnsid = -1; in rtnl_dump_ifinfo() local 2090 netnsid = nla_get_s32(tb[i]); in rtnl_dump_ifinfo() 2091 tgt_net = rtnl_get_net_ns_capable(skb->sk, netnsid); in rtnl_dump_ifinfo() 2131 netnsid, GFP_KERNEL); in rtnl_dump_ifinfo() 2150 if (netnsid >= 0) in rtnl_dump_ifinfo() 3070 int netnsid = -1; in rtnl_dellink() local 3082 netnsid = nla_get_s32(tb[IFLA_TARGET_NETNSID]); in rtnl_dellink() 3083 tgt_net = rtnl_get_net_ns_capable(NETLINK_CB(skb).sk, netnsid); in rtnl_dellink() [all …]
|
/Linux-v5.10/net/ipv6/ |
D | addrconf.c | 4938 int netnsid; member 4957 if (args->netnsid >= 0 && in inet6_fill_ifaddr() 4958 nla_put_s32(skb, IFA_TARGET_NETNSID, args->netnsid)) in inet6_fill_ifaddr() 5024 if (args->netnsid >= 0 && in inet6_fill_ifmcaddr() 5025 nla_put_s32(skb, IFA_TARGET_NETNSID, args->netnsid)) { in inet6_fill_ifmcaddr() 5058 if (args->netnsid >= 0 && in inet6_fill_ifacaddr() 5059 nla_put_s32(skb, IFA_TARGET_NETNSID, args->netnsid)) { in inet6_fill_ifacaddr() 5177 fillargs->netnsid = nla_get_s32(tb[i]); in inet6_valid_dump_ifaddr_req() 5178 net = rtnl_get_net_ns_capable(sk, fillargs->netnsid); in inet6_valid_dump_ifaddr_req() 5180 fillargs->netnsid = -1; in inet6_valid_dump_ifaddr_req() [all …]
|