Lines Matching refs:protocol
319 static int inet_create(struct socket *sock, int protocol) in inet_create() argument
337 if (protocol == answer->protocol) { in inet_create()
338 if (protocol != IPPROTO_IP) in inet_create()
342 if (IPPROTO_IP == protocol) { in inet_create()
343 protocol = answer->protocol; in inet_create()
346 if (IPPROTO_IP == answer->protocol) in inet_create()
357 if (!protocol) in inet_create()
367 sk->num = protocol; in inet_create()
368 if (IPPROTO_RAW == protocol) in inet_create()
385 sk->protocol = protocol; in inet_create()
1025 protocol: IPPROTO_TCP,
1035 protocol: IPPROTO_UDP,
1046 protocol: IPPROTO_IP, /* wild card */
1062 int protocol = p->protocol; in inet_register_protosw() local
1078 if (protocol == answer->protocol) in inet_register_protosw()
1101 protocol); in inet_register_protosw()
1117 p->protocol); in inet_unregister_protosw()