Lines Matching defs:protocol
5 * AF_SMC protocol family socket handler keeping the AF_INET sock address type
7 * offers an alternative communication option for TCP-protocol sockets
366 int protocol)
372 prot = (protocol == SMCPROTO_SMC6) ? &smc_proto6 : &smc_proto;
380 sk->sk_protocol = protocol;
3286 static int __smc_create(struct net *net, struct socket *sock, int protocol,
3289 int family = (protocol == SMCPROTO_SMC6) ? PF_INET6 : PF_INET;
3299 if (protocol != SMCPROTO_SMC && protocol != SMCPROTO_SMC6)
3305 sk = smc_sock_alloc(net, sock, protocol);
3344 static int smc_create(struct net *net, struct socket *sock, int protocol,
3347 return __smc_create(net, sock, protocol, kern, NULL);
3361 int protocol, ret;
3372 protocol = SMCPROTO_SMC;
3374 protocol = SMCPROTO_SMC6;
3382 ret = __smc_create(net, smcsock, protocol, 1, tcp);