Lines Matching defs:protocol
3 * PF_INET6 socket protocol family
12 * piggy, Karl Knutson : Socket protocol table
49 #include <net/protocol.h>
72 MODULE_DESCRIPTION("IPv6 protocol stack for Linux");
117 static int inet6_create(struct net *net, struct socket *sock, int protocol,
129 if (protocol < 0 || protocol >= IPPROTO_MAX)
132 /* Look for the requested type/protocol pair. */
140 if (protocol == answer->protocol) {
141 if (protocol != IPPROTO_IP)
145 if (IPPROTO_IP == protocol) {
146 protocol = answer->protocol;
149 if (IPPROTO_IP == answer->protocol)
164 PF_INET6, protocol, sock->type);
171 PF_INET6, protocol);
207 inet->inet_num = protocol;
208 if (IPPROTO_RAW == protocol)
214 sk->sk_protocol = protocol;
249 * transport protocol socks. -acme
254 /* It assumes that any protocol which allows
759 int protocol = p->protocol;
768 /* If we are trying to override a permanent protocol, bail. */
777 if (protocol == answer->protocol)
789 * a wild-card protocol. But it is allowed to override any existing
800 pr_err("Attempt to override permanent protocol %d\n", protocol);
814 pr_err("Attempt to unregister permanent protocol %d\n",
815 p->protocol);