Home
last modified time | relevance | path

Searched refs:netnsid (Results 1 – 4 of 4) sorted by relevance

/linux/include/net/
H A Drtnetlink.h226 struct net *rtnl_get_net_ns_capable(struct sock *sk, int netnsid);
/linux/net/ipv4/
H A Ddevinet.c115 int netnsid; member
1741 if (args->netnsid >= 0 && in inet_fill_ifaddr()
1742 nla_put_s32(skb, IFA_TARGET_NETNSID, args->netnsid)) in inet_fill_ifaddr()
1831 fillargs->netnsid = nla_get_s32(tb[i]); in inet_valid_dump_ifaddr_req()
1833 net = rtnl_get_net_ns_capable(sk, fillargs->netnsid); in inet_valid_dump_ifaddr_req()
1835 fillargs->netnsid = -1; in inet_valid_dump_ifaddr_req()
1900 .netnsid = -1, in inet_dump_ifaddr()
1946 if (fillargs.netnsid >= 0) in inet_dump_ifaddr()
1960 .netnsid = -1, in rtmsg_ifa()
/linux/net/ipv6/
H A Daddrconf.c5141 int netnsid; member
5164 if (args->netnsid >= 0 && in inet6_fill_ifaddr()
5165 nla_put_s32(skb, IFA_TARGET_NETNSID, args->netnsid)) in inet6_fill_ifaddr()
5240 if (args->netnsid >= 0 && in inet6_fill_ifmcaddr()
5241 nla_put_s32(skb, IFA_TARGET_NETNSID, args->netnsid)) { in inet6_fill_ifmcaddr()
5275 if (args->netnsid >= 0 && in inet6_fill_ifacaddr()
5276 nla_put_s32(skb, IFA_TARGET_NETNSID, args->netnsid)) { in inet6_fill_ifacaddr()
5393 fillargs->netnsid = nla_get_s32(tb[i]); in inet6_valid_dump_ifaddr_req()
5394 net = rtnl_get_net_ns_capable(sk, fillargs->netnsid); in inet6_valid_dump_ifaddr_req()
5396 fillargs->netnsid = -1; in inet6_valid_dump_ifaddr_req()
[all …]
/linux/net/core/
H A Drtnetlink.c2344 struct net *rtnl_get_net_ns_capable(struct sock *sk, int netnsid) in rtnl_get_net_ns_capable() argument
2348 net = get_net_ns_by_id(sock_net(sk), netnsid); in rtnl_get_net_ns_capable()
2423 int netnsid = -1; in rtnl_dump_ifinfo() local
2441 netnsid = nla_get_s32(tb[i]); in rtnl_dump_ifinfo()
2442 tgt_net = rtnl_get_net_ns_capable(skb->sk, netnsid); in rtnl_dump_ifinfo()
2446 netnsid = -1; in rtnl_dump_ifinfo()
2480 netnsid, GFP_KERNEL); in rtnl_dump_ifinfo()
2493 if (netnsid >= 0) in rtnl_dump_ifinfo()
3491 int netnsid = -1; in rtnl_dellink() local
3504 netnsid = nla_get_s32(tb[IFLA_TARGET_NETNSID]); in rtnl_dellink()
[all …]