Lines Matching refs:protocol
247 static int inet_create(struct net *net, struct socket *sock, int protocol, in inet_create() argument
258 if (protocol < 0 || protocol >= IPPROTO_MAX) in inet_create()
271 if (protocol == answer->protocol) { in inet_create()
272 if (protocol != IPPROTO_IP) in inet_create()
276 if (IPPROTO_IP == protocol) { in inet_create()
277 protocol = answer->protocol; in inet_create()
280 if (IPPROTO_IP == answer->protocol) in inet_create()
295 PF_INET, protocol, sock->type); in inet_create()
302 PF_INET, protocol); in inet_create()
335 inet->inet_num = protocol; in inet_create()
336 if (IPPROTO_RAW == protocol) in inet_create()
350 sk->sk_protocol = protocol; in inet_create()
1096 .protocol = IPPROTO_TCP,
1105 .protocol = IPPROTO_UDP,
1113 .protocol = IPPROTO_ICMP,
1121 .protocol = IPPROTO_IP, /* wild card */
1134 int protocol = p->protocol; in inet_register_protosw() local
1149 if (protocol == answer->protocol) in inet_register_protosw()
1167 pr_err("Attempt to override permanent protocol %d\n", protocol); in inet_register_protosw()
1181 p->protocol); in inet_unregister_protosw()
1325 proto = iph->protocol; in inet_gso_segment()
1435 proto = iph->protocol; in inet_gro_receive()
1468 if ((iph->protocol ^ iph2->protocol) | in inet_gro_receive()
1595 int proto = iph->protocol; in inet_gro_complete()
1634 unsigned short type, unsigned char protocol, in inet_ctl_sock_create() argument
1638 int rc = sock_create_kern(net, family, type, protocol, &sock); in inet_ctl_sock_create()