Lines Matching refs:prot
189 if (sk->prot->destroy) in inet_sock_release()
190 sk->prot->destroy(sk); in inet_sock_release()
199 sk->prot->unhash(sk); in inet_sock_release()
241 return sk->prot->setsockopt(sk,level,optname,optval,optlen); in inet_setsockopt()
257 return sk->prot->getsockopt(sk,level,optname,optval,optlen); in inet_getsockopt()
269 if (sk->prot->get_port(sk, 0) != 0) { in inet_autobind()
361 sk->prot = answer->prot; in inet_create()
387 sk->backlog_rcv = sk->prot->backlog_rcv; in inet_create()
409 sk->prot->hash(sk); in inet_create()
412 if (sk->prot->init) { in inet_create()
413 int err = sk->prot->init(sk); in inet_create()
465 sk->prot->close(sk, timeout); in inet_release()
482 if(sk->prot->bind) in inet_bind()
483 return sk->prot->bind(sk, uaddr, addr_len); in inet_bind()
529 if (sk->prot->get_port(sk, snum) != 0) { in inet_bind()
555 return sk->prot->disconnect(sk, flags); in inet_dgram_connect()
559 return sk->prot->connect(sk, (struct sockaddr *)uaddr, addr_len); in inet_dgram_connect()
602 err = sk->prot->disconnect(sk, flags); in inet_stream_connect()
623 err = sk->prot->connect(sk, uaddr, addr_len); in inet_stream_connect()
669 if (sk->prot->disconnect(sk, flags)) in inet_stream_connect()
684 if((sk2 = sk1->prot->accept(sk1,flags,&err)) == NULL) in inet_accept()
741 err = sk->prot->recvmsg(sk, msg, size, flags&MSG_DONTWAIT, in inet_recvmsg()
758 return sk->prot->sendmsg(sk, msg, size); in inet_sendmsg()
790 if (sk->prot->shutdown) in inet_shutdown()
791 sk->prot->shutdown(sk, how); in inet_shutdown()
803 err = sk->prot->disconnect(sk, O_NONBLOCK); in inet_shutdown()
938 if (sk->prot->ioctl==NULL || (err=sk->prot->ioctl(sk, cmd, arg))==-ENOIOCTLCMD) in inet_ioctl()
1026 prot: &tcp_prot,
1036 prot: &udp_prot,
1047 prot: &raw_prot,