Lines Matching defs:protocol
3 * NETLINK Kernel-user communication protocol.
16 * socket of same protocol
303 nskb->protocol = htons((u16) sk->sk_protocol);
530 static struct sock *netlink_lookup(struct net *net, int protocol, u32 portid)
532 struct netlink_table *table = &nl_table[protocol];
639 struct mutex *cb_mutex, int protocol,
660 nlk_cb_mutex_keys + protocol,
661 nlk_cb_mutex_key_strings[protocol]);
666 sk->sk_protocol = protocol;
670 static int netlink_create(struct net *net, struct socket *sock, int protocol,
686 if (protocol < 0 || protocol >= MAX_LINKS)
688 protocol = array_index_nospec(protocol, MAX_LINKS);
692 if (!nl_table[protocol].registered) {
694 request_module("net-pf-%d-proto-%d", PF_NETLINK, protocol);
698 if (nl_table[protocol].registered &&
699 try_module_get(nl_table[protocol].module))
700 module = nl_table[protocol].module;
703 cb_mutex = nl_table[protocol].cb_mutex;
704 bind = nl_table[protocol].bind;
705 unbind = nl_table[protocol].unbind;
706 release = nl_table[protocol].release;
712 err = __netlink_create(net, sock, cb_mutex, protocol, kern);
792 .protocol = sk->sk_protocol,