Lines Matching defs:protocol
3 * INET An implementation of the TCP/IP protocol suite for the LINUX
7 * PF_INET protocol family socket handler.
17 * Karl Knutson : Socket protocol table
97 #include <net/protocol.h>
254 static int inet_create(struct net *net, struct socket *sock, int protocol,
265 if (protocol < 0 || protocol >= IPPROTO_MAX)
270 /* Look for the requested type/protocol pair. */
278 if (protocol == answer->protocol) {
279 if (protocol != IPPROTO_IP)
283 if (IPPROTO_IP == protocol) {
284 protocol = answer->protocol;
287 if (IPPROTO_IP == answer->protocol)
302 PF_INET, protocol, sock->type);
309 PF_INET, protocol);
345 inet->inet_num = protocol;
346 if (IPPROTO_RAW == protocol)
360 sk->sk_protocol = protocol;
373 /* It assumes that any protocol which allows
379 /* Add to protocol hash chains. */
1159 .protocol = IPPROTO_TCP,
1168 .protocol = IPPROTO_UDP,
1176 .protocol = IPPROTO_ICMP,
1184 .protocol = IPPROTO_IP, /* wild card */
1197 int protocol = p->protocol;
1205 /* If we are trying to override a permanent protocol, bail. */
1212 if (protocol == answer->protocol)
1219 * a wild-card protocol. But it is allowed to override any existing
1230 pr_err("Attempt to override permanent protocol %d\n", protocol);
1243 pr_err("Attempt to unregister permanent protocol %d\n",
1244 p->protocol);
1382 proto = iph->protocol;
1479 proto = iph->protocol;
1509 if ((iph->protocol ^ iph2->protocol) |
1593 int proto = iph->protocol;
1628 unsigned short type, unsigned char protocol,
1632 int rc = sock_create_kern(net, family, type, protocol, &sock);
1836 * IP protocol layer initialiser
1859 pr_crit("%s: Cannot add UDP protocol offload\n", __func__);
1861 pr_crit("%s: Cannot add TCP protocol offload\n", __func__);
1863 pr_crit("%s: Cannot add IPIP protocol offload\n", __func__);
1926 pr_crit("%s: Cannot add ICMP protocol\n", __func__);
1934 pr_crit("%s: Cannot add UDP protocol\n", __func__);
1943 pr_crit("%s: Cannot add TCP protocol\n", __func__);
1946 pr_crit("%s: Cannot add IGMP protocol\n", __func__);