Lines Matching refs:sk_protocol

270 	switch (sk->sk_protocol) {  in netlink_filter_tap()
303 nskb->protocol = htons((u16) sk->sk_protocol); in __netlink_deliver_tap_skb()
549 struct netlink_table *tbl = &nl_table[sk->sk_protocol]; in netlink_update_listeners()
572 struct netlink_table *table = &nl_table[sk->sk_protocol]; in netlink_insert()
615 table = &nl_table[sk->sk_protocol]; in netlink_remove()
627 if (sk->sk_protocol == NETLINK_GENERIC) in netlink_remove()
666 sk->sk_protocol = protocol; in __netlink_create()
780 if (sk->sk_protocol == NETLINK_GENERIC && in netlink_release()
792 .protocol = sk->sk_protocol, in netlink_release()
803 BUG_ON(nl_table[sk->sk_protocol].registered == 0); in netlink_release()
804 if (--nl_table[sk->sk_protocol].registered == 0) { in netlink_release()
807 old = nl_deref_protected(nl_table[sk->sk_protocol].listeners); in netlink_release()
808 RCU_INIT_POINTER(nl_table[sk->sk_protocol].listeners, NULL); in netlink_release()
810 nl_table[sk->sk_protocol].module = NULL; in netlink_release()
811 nl_table[sk->sk_protocol].bind = NULL; in netlink_release()
812 nl_table[sk->sk_protocol].unbind = NULL; in netlink_release()
813 nl_table[sk->sk_protocol].flags = 0; in netlink_release()
814 nl_table[sk->sk_protocol].registered = 0; in netlink_release()
839 struct netlink_table *table = &nl_table[sk->sk_protocol]; in netlink_autobind()
941 return (nl_table[sock->sk->sk_protocol].flags & flag) || in netlink_allowed()
953 sk_add_bind_node(sk, &nl_table[sk->sk_protocol].mc_list); in netlink_update_subscriptions()
966 groups = nl_table[sk->sk_protocol].groups; in netlink_realloc_groups()
967 if (!nl_table[sk->sk_protocol].registered) { in netlink_realloc_groups()
1176 sock = netlink_lookup(sock_net(ssk), ssk->sk_protocol, portid); in netlink_getsockbyportid()
1395 listeners = rcu_dereference(nl_table[sk->sk_protocol].listeners); in netlink_has_listeners()
1397 if (listeners && group - 1 < nl_table[sk->sk_protocol].groups) in netlink_has_listeners()
1551 sk_for_each_bound(sk, &nl_table[ssk->sk_protocol].mc_list) in netlink_broadcast_filtered()
1639 sk_for_each_bound(sk, &nl_table[ssk->sk_protocol].mc_list) in netlink_set_err()
2103 struct netlink_table *tbl = &nl_table[sk->sk_protocol]; in __netlink_change_ngroups()
2149 struct netlink_table *tbl = &nl_table[ksk->sk_protocol]; in __netlink_clear_multicast_users()
2328 sk = netlink_lookup(sock_net(ssk), ssk->sk_protocol, NETLINK_CB(skb).portid); in __netlink_dump_start()
2700 s->sk_protocol, in netlink_native_seq_show()