Searched refs:netnsid (Results 1 – 4 of 4) sorted by relevance
/linux-6.1.9/net/ipv4/ |
D | devinet.c | 115 int netnsid; member 1672 if (args->netnsid >= 0 && in inet_fill_ifaddr() 1673 nla_put_s32(skb, IFA_TARGET_NETNSID, args->netnsid)) in inet_fill_ifaddr() 1761 fillargs->netnsid = nla_get_s32(tb[i]); in inet_valid_dump_ifaddr_req() 1763 net = rtnl_get_net_ns_capable(sk, fillargs->netnsid); in inet_valid_dump_ifaddr_req() 1765 fillargs->netnsid = -1; in inet_valid_dump_ifaddr_req() 1815 .netnsid = -1, in inet_dump_ifaddr() 1885 if (fillargs.netnsid >= 0) in inet_dump_ifaddr() 1899 .netnsid = -1, in rtmsg_ifa()
|
/linux-6.1.9/include/net/ |
D | rtnetlink.h | 194 struct net *rtnl_get_net_ns_capable(struct sock *sk, int netnsid);
|
/linux-6.1.9/net/core/ |
D | rtnetlink.c | 2052 struct net *rtnl_get_net_ns_capable(struct sock *sk, int netnsid) in rtnl_get_net_ns_capable() argument 2056 net = get_net_ns_by_id(sock_net(sk), netnsid); in rtnl_get_net_ns_capable() 2130 int netnsid = -1; in rtnl_dump_ifinfo() local 2151 netnsid = nla_get_s32(tb[i]); in rtnl_dump_ifinfo() 2152 tgt_net = rtnl_get_net_ns_capable(skb->sk, netnsid); in rtnl_dump_ifinfo() 2192 netnsid, GFP_KERNEL); in rtnl_dump_ifinfo() 2211 if (netnsid >= 0) in rtnl_dump_ifinfo() 3138 int netnsid = -1; in rtnl_dellink() local 3150 netnsid = nla_get_s32(tb[IFLA_TARGET_NETNSID]); in rtnl_dellink() 3151 tgt_net = rtnl_get_net_ns_capable(NETLINK_CB(skb).sk, netnsid); in rtnl_dellink() [all …]
|
/linux-6.1.9/net/ipv6/ |
D | addrconf.c | 5001 int netnsid; member 5020 if (args->netnsid >= 0 && in inet6_fill_ifaddr() 5021 nla_put_s32(skb, IFA_TARGET_NETNSID, args->netnsid)) in inet6_fill_ifaddr() 5093 if (args->netnsid >= 0 && in inet6_fill_ifmcaddr() 5094 nla_put_s32(skb, IFA_TARGET_NETNSID, args->netnsid)) { in inet6_fill_ifmcaddr() 5127 if (args->netnsid >= 0 && in inet6_fill_ifacaddr() 5128 nla_put_s32(skb, IFA_TARGET_NETNSID, args->netnsid)) { in inet6_fill_ifacaddr() 5249 fillargs->netnsid = nla_get_s32(tb[i]); in inet6_valid_dump_ifaddr_req() 5250 net = rtnl_get_net_ns_capable(sk, fillargs->netnsid); in inet6_valid_dump_ifaddr_req() 5252 fillargs->netnsid = -1; in inet6_valid_dump_ifaddr_req() [all …]
|