Lines Matching refs:ssk

1148 static struct sock *netlink_getsockbyportid(struct sock *ssk, u32 portid)  in netlink_getsockbyportid()  argument
1153 sock = netlink_lookup(sock_net(ssk), ssk->sk_protocol, portid); in netlink_getsockbyportid()
1161 READ_ONCE(nlk->dst_portid) != nlk_sk(ssk)->portid) { in netlink_getsockbyportid()
1217 long *timeo, struct sock *ssk) in netlink_attachskb() argument
1227 if (!ssk || netlink_is_kernel(ssk)) in netlink_attachskb()
1305 struct sock *ssk) in netlink_unicast_kernel() argument
1314 NETLINK_CB(skb).sk = ssk; in netlink_unicast_kernel()
1315 netlink_deliver_tap_kernel(sk, ssk, skb); in netlink_unicast_kernel()
1325 int netlink_unicast(struct sock *ssk, struct sk_buff *skb, in netlink_unicast() argument
1334 timeo = sock_sndtimeo(ssk, nonblock); in netlink_unicast()
1336 sk = netlink_getsockbyportid(ssk, portid); in netlink_unicast()
1342 return netlink_unicast_kernel(sk, skb, ssk); in netlink_unicast()
1351 err = netlink_attachskb(sk, skb, &timeo, ssk); in netlink_unicast()
1494 int netlink_broadcast_filtered(struct sock *ssk, struct sk_buff *skb, in netlink_broadcast_filtered() argument
1500 struct net *net = sock_net(ssk); in netlink_broadcast_filtered()
1506 info.exclude_sk = ssk; in netlink_broadcast_filtered()
1524 sk_for_each_bound(sk, &nl_table[ssk->sk_protocol].mc_list) in netlink_broadcast_filtered()
1546 int netlink_broadcast(struct sock *ssk, struct sk_buff *skb, u32 portid, in netlink_broadcast() argument
1549 return netlink_broadcast_filtered(ssk, skb, portid, group, allocation, in netlink_broadcast()
1597 int netlink_set_err(struct sock *ssk, u32 portid, u32 group, int code) in netlink_set_err() argument
1604 info.exclude_sk = ssk; in netlink_set_err()
1612 sk_for_each_bound(sk, &nl_table[ssk->sk_protocol].mc_list) in netlink_set_err()
2372 int __netlink_dump_start(struct sock *ssk, struct sk_buff *skb, in __netlink_dump_start() argument
2383 sk = netlink_lookup(sock_net(ssk), ssk->sk_protocol, NETLINK_CB(skb).portid); in __netlink_dump_start()