taglinefilesource code
sock114drivers/net/de600.cstatic unsigned long de600_rspace(struct sock *sk);
sock807drivers/net/de600.cde600_rspace(struct sock *sk)
sock30fs/ncpfs/sock.cstatic int _recvfrom(struct socket *sock, unsigned char *ubuf,
sock48fs/ncpfs/sock.creturn sock->ops->recvmsg(sock, &msg, size, noblock, flags, addr_len);
sock51fs/ncpfs/sock.cstatic int _sendto(struct socket *sock, const void *buff,
sock68fs/ncpfs/sock.creturn sock->ops->sendmsg(sock, &msg, len, nonblock, flags);
sock73fs/ncpfs/sock.cncp_wdog_data_ready(struct sock *sk, int len)
sock75fs/ncpfs/sock.cstruct socket *sock = sk->socket;
sock88fs/ncpfs/sock.cresult = _recvfrom(sock, (void *)packet_buf, 2, 1, 0,
sock113fs/ncpfs/sock.cresult = _sendto(sock, (void *)packet_buf, 2, 1, 0,
sock126fs/ncpfs/sock.cstruct socket *sock;
sock127fs/ncpfs/sock.cstruct sock   *sk;
sock139fs/ncpfs/sock.csock = &(inode->u.socket_i);
sock141fs/ncpfs/sock.cif (sock->type != SOCK_DGRAM)
sock148fs/ncpfs/sock.csk   = (struct sock *)(sock->data);
sock178fs/ncpfs/sock.cstruct socket *sock;
sock179fs/ncpfs/sock.cstruct sock   *sk;
sock191fs/ncpfs/sock.csock = &(inode->u.socket_i);
sock193fs/ncpfs/sock.cif (sock->type != SOCK_DGRAM)
sock199fs/ncpfs/sock.csk = (struct sock *)(sock->data);
sock232fs/ncpfs/sock.cncp_msg_data_ready(struct sock *sk, int len)
sock234fs/ncpfs/sock.cstruct socket *sock = sk->socket;
sock247fs/ncpfs/sock.cresult = _recvfrom(sock, (void *)packet_buf, 2, 1, 0,
sock271fs/ncpfs/sock.cstruct socket *sock;
sock272fs/ncpfs/sock.cstruct sock   *sk;
sock283fs/ncpfs/sock.csock = &(inode->u.socket_i);
sock285fs/ncpfs/sock.cif (sock->type != SOCK_DGRAM)
sock291fs/ncpfs/sock.csk = (struct sock *)(sock->data);
sock322fs/ncpfs/sock.cstruct socket *sock;
sock348fs/ncpfs/sock.csock = &inode->u.socket_i;
sock349fs/ncpfs/sock.cif (!sock)
sock391fs/ncpfs/sock.cresult = _sendto(sock, (void *) start, size, 0, 0,
sock458fs/ncpfs/sock.cresult = _recvfrom(sock, (void *)&reply,
sock485fs/ncpfs/sock.c_recvfrom(sock, (void *)&reply, sizeof(reply), 1, 0,
sock513fs/ncpfs/sock.c_recvfrom(sock, (void *)&reply, sizeof(reply), 1, 0, NULL,
sock523fs/ncpfs/sock.cresult = _recvfrom(sock, (void *)start, server->packet_size,
sock169fs/nfs/inode.cstruct socket *sock;
sock174fs/nfs/inode.csock = &((filp->f_inode)->u.socket_i);
sock177fs/nfs/inode.csock->ops->getname(sock, &(server->toaddr), &dummylen, 1) ;
sock500fs/nfs/nfsroot.cstatic int root_open_udp_sock(int *fd, struct socket **sock)
sock509fs/nfs/nfsroot.c*sock = &inode->u.socket_i;
sock521fs/nfs/nfsroot.cstatic int root_connect_udp_sock(struct socket *sock, u32 addr, u16 port)
sock529fs/nfs/nfsroot.cresult = sock->ops->connect(sock, (struct sockaddr *) &sa, sizeof(sa), 0);
sock541fs/nfs/nfsroot.cstatic int root_bind_udp_sock(struct socket *sock, u32 addr, u16 port)
sock549fs/nfs/nfsroot.cresult = sock->ops->bind(sock, (struct sockaddr *) &sa, sizeof(sa));
sock561fs/nfs/nfsroot.cstatic inline int root_send_udp(struct socket *sock, void *buf, int size)
sock576fs/nfs/nfsroot.cresult = sock->ops->sendmsg(sock, &msg, size, 0, 0);
sock585fs/nfs/nfsroot.cstatic inline int root_recv_udp(struct socket *sock, void *buf, int size)
sock601fs/nfs/nfsroot.cresult = sock->ops->recvmsg(sock, &msg, size, O_NONBLOCK, 0, &msg.msg_namelen);
sock716fs/nfs/nfsroot.c((struct sock *) bootp_xmit_sock->data) -> broadcast = 1;
sock717fs/nfs/nfsroot.c((struct sock *) bootp_xmit_sock->data) -> reuse = 1;
sock718fs/nfs/nfsroot.c((struct sock *) bootp_recv_sock->data) -> reuse = 1;
sock1508fs/nfs/nfsroot.cstruct socket *sock;
sock1526fs/nfs/nfsroot.csock = &((nfs_file->f_inode)->u.socket_i);
sock1529fs/nfs/nfsroot.csock->ops->getname(sock, &(s.toaddr), &dummylen, 1);
sock109fs/nfs/rpcsock.cstruct socket  *sock = rsock->sock;
sock122fs/nfs/rpcsock.cresult = sock->ops->sendmsg(sock, &msg, len, 0, 0);
sock135fs/nfs/rpcsock.cstruct socket  *sock = rsock->sock;
sock149fs/nfs/rpcsock.cresult = sock->ops->recvmsg(sock, &msg, len, 1, flags, &alen);
sock529fs/nfs/rpcsock.cstruct socket  *sock;
sock530fs/nfs/rpcsock.cstruct sock  *sk;
sock535fs/nfs/rpcsock.csock = &file->f_inode->u.socket_i;
sock536fs/nfs/rpcsock.cif (sock->type != SOCK_DGRAM || sock->ops->family != AF_INET) {
sock540fs/nfs/rpcsock.csk = (struct sock *) sock->data;
sock546fs/nfs/rpcsock.crsock->sock = sock;
sock176fs/read_write.cstruct socket *sock;
sock178fs/read_write.csock = &inode->u.socket_i;
sock179fs/read_write.cif (!sock->ops)
sock189fs/read_write.cif (!sock->ops->recvmsg)
sock191fs/read_write.creturn sock->ops->recvmsg(sock, &msg, size,
sock194fs/read_write.cif (!sock->ops->sendmsg)
sock196fs/read_write.creturn sock->ops->sendmsg(sock, &msg, size,
sock27fs/smbfs/sock.cstatic int _recvfrom(struct socket *sock, unsigned char *ubuf, int size, int noblock, unsigned flags,
sock44fs/smbfs/sock.creturn sock->ops->recvmsg(sock, &msg, size, noblock, flags, addr_len);
sock47fs/smbfs/sock.cstatic int _send(struct socket *sock, const void *buff, int len, int nonblock, unsigned flags) {
sock60fs/smbfs/sock.creturn sock->ops->sendmsg(sock, &msg, len, nonblock, flags);
sock64fs/smbfs/sock.csmb_data_callback(struct sock *sk,int len)
sock66fs/smbfs/sock.cstruct socket *sock = sk->socket;
sock77fs/smbfs/sock.cresult = _recvfrom(sock, (void *)peek_buf, 1, 1,
sock83fs/smbfs/sock.cresult = _recvfrom(sock, (void *)peek_buf,
sock92fs/smbfs/sock.cresult = _recvfrom(sock, (void *)peek_buf,
sock111fs/smbfs/sock.cstruct socket *sock;
sock112fs/smbfs/sock.cstruct sock   *sk;
sock124fs/smbfs/sock.csock = &(inode->u.socket_i);
sock126fs/smbfs/sock.cif (sock->type != SOCK_STREAM) {
sock132fs/smbfs/sock.csk   = (struct sock *)(sock->data);
sock159fs/smbfs/sock.cstruct socket *sock;
sock160fs/smbfs/sock.cstruct sock   *sk;
sock172fs/smbfs/sock.csock = &(inode->u.socket_i);
sock174fs/smbfs/sock.cif (sock->type != SOCK_STREAM) {
sock179fs/smbfs/sock.csk   = (struct sock *)(sock->data);
sock213fs/smbfs/sock.csmb_receive_raw(struct socket *sock, unsigned char *target,
sock227fs/smbfs/sock.cresult = _recvfrom(sock, (void *)peek_buf, 4, 0,
sock273fs/smbfs/sock.cresult = _recvfrom(sock,
sock294fs/smbfs/sock.csmb_receive(struct smb_server *server, struct socket *sock)
sock298fs/smbfs/sock.cresult = smb_receive_raw(sock, server->packet,
sock324fs/smbfs/sock.csmb_receive_trans2(struct smb_server *server, struct socket *sock,
sock337fs/smbfs/sock.cif ((result = smb_receive(server, sock)) < 0) {
sock412fs/smbfs/sock.cif ((result = smb_receive(server, sock)) < 0) {
sock451fs/smbfs/sock.cstruct socket *sock = server_sock(server);
sock454fs/smbfs/sock.cif (sock == NULL)
sock457fs/smbfs/sock.cresult = sock->ops->release(sock, NULL);
sock463fs/smbfs/sock.csock->state = SS_UNCONNECTED;
sock465fs/smbfs/sock.cresult = sock->ops->create(sock, 0);
sock473fs/smbfs/sock.cstruct socket *sock = server_sock(server);
sock474fs/smbfs/sock.cif (sock == NULL)
sock476fs/smbfs/sock.cif (sock->state != SS_UNCONNECTED) {
sock478fs/smbfs/sock.csock->state);
sock480fs/smbfs/sock.creturn sock->ops->connect(sock, (struct sockaddr *)&(server->m.addr),
sock498fs/smbfs/sock.cstruct socket *sock = server_sock(server);
sock501fs/smbfs/sock.cif ((sock == NULL) || (buffer == NULL)) {
sock524fs/smbfs/sock.cresult = _send(sock, (void *)buffer, len, 0, 0);
sock529fs/smbfs/sock.cresult = smb_receive(server, sock);
sock566fs/smbfs/sock.cstruct socket *sock = server_sock(server);
sock569fs/smbfs/sock.cif ((sock == NULL) || (buffer == NULL)) {
sock592fs/smbfs/sock.cresult = _send(sock, (void *)buffer, len, 0, 0);
sock597fs/smbfs/sock.cresult = smb_receive_trans2(server, sock,
sock632fs/smbfs/sock.cstruct socket *sock = server_sock(server);
sock635fs/smbfs/sock.cif ((sock == NULL) || (buffer == NULL)) {
sock661fs/smbfs/sock.c(unsigned int)buffer, (unsigned int)sock);
sock663fs/smbfs/sock.cresult = _send(sock, (void *)buffer, len, 0, 0);
sock673fs/smbfs/sock.cresult = smb_receive_raw(sock, target, max_len, 0);
sock707fs/smbfs/sock.cstruct socket *sock = server_sock(server);
sock710fs/smbfs/sock.cif ((sock == NULL) || (buffer == NULL)) {
sock731fs/smbfs/sock.cresult = _send(sock, (void *)nb_header, 4, 0, 0);
sock735fs/smbfs/sock.cresult = _send(sock, (void *)source, length, 0, 0);
sock744fs/smbfs/sock.cresult = smb_receive(server, sock);
sock128include/linux/atalk.htypedef struct sock  atalk_socket;
sock112include/linux/igmp.hextern int ip_mc_join_group(struct sock *sk, struct device *dev, unsigned long addr);
sock113include/linux/igmp.hextern int ip_mc_leave_group(struct sock *sk, struct device *dev,unsigned long addr);
sock114include/linux/igmp.hextern void ip_mc_drop_socket(struct sock *sk);
sock119include/linux/mroute.hextern struct sock *mroute_socket;
sock120include/linux/mroute.hextern int ip_mroute_setsockopt(struct sock *, int, char *, int);
sock121include/linux/mroute.hextern int ip_mroute_getsockopt(struct sock *, int, char *, int *);
sock122include/linux/mroute.hextern int ipmr_ioctl(struct sock *sk, int cmd, unsigned long arg);
sock123include/linux/mroute.hextern void mroute_close(struct sock *sk);
sock94include/linux/net.hint  (*create)  (struct socket *sock, int protocol);
sock96include/linux/net.hint  (*release)  (struct socket *sock, struct socket *peer);
sock97include/linux/net.hint  (*bind)    (struct socket *sock, struct sockaddr *umyaddr,
sock99include/linux/net.hint  (*connect)  (struct socket *sock, struct sockaddr *uservaddr,
sock102include/linux/net.hint  (*accept)  (struct socket *sock, struct socket *newsock,
sock104include/linux/net.hint  (*getname)  (struct socket *sock, struct sockaddr *uaddr,
sock106include/linux/net.hint  (*select)  (struct socket *sock, int sel_type,
sock108include/linux/net.hint  (*ioctl)  (struct socket *sock, unsigned int cmd,
sock110include/linux/net.hint  (*listen)  (struct socket *sock, int len);
sock111include/linux/net.hint  (*shutdown)  (struct socket *sock, int flags);
sock112include/linux/net.hint  (*setsockopt)  (struct socket *sock, int level, int optname,
sock114include/linux/net.hint  (*getsockopt)  (struct socket *sock, int level, int optname,
sock116include/linux/net.hint  (*fcntl)  (struct socket *sock, unsigned int cmd,
sock118include/linux/net.hint   (*sendmsg)  (struct socket *sock, struct msghdr *m, int total_len, int nonblock, int flags);
sock119include/linux/net.hint   (*recvmsg)  (struct socket *sock, struct msghdr *m, int total_len, int nonblock, int flags, int *addr_len);
sock127include/linux/net.hextern int  sock_wake_async(struct socket *sock, int how);
sock131include/linux/net.hextern void  sock_release(struct socket *sock);
sock90include/linux/rpcsock.hstruct socket *    sock;
sock91include/linux/rpcsock.hstruct sock *    inet;
sock57include/linux/skbuff.hstruct sock  *sk;      /* Socket we are owned by       */
sock443include/linux/skbuff.hextern struct sk_buff *    skb_recv_datagram(struct sock *sk,unsigned flags,int noblock, int *err);
sock444include/linux/skbuff.hextern int      datagram_select(struct sock *sk, int sel_type, select_table *wait);
sock447include/linux/skbuff.hextern void      skb_free_datagram(struct sock * sk, struct sk_buff *skb);
sock5include/net/af_unix.htypedef struct sock unix_socket;
sock166include/net/ax25.hstruct sock    *sk;    /* Backlink to socket */
sock36include/net/icmp.hextern int  icmp_ioctl(struct sock *sk, int cmd,
sock45include/net/ip.hextern void    ip_mc_dropsocket(struct sock *);
sock87include/net/ip.hextern int    ip_ioctl(struct sock *sk, int cmd, unsigned long arg);
sock104include/net/ip.hextern void    ip_queue_xmit(struct sock *sk,
sock108include/net/ip.hextern int    ip_build_xmit(struct sock *sk,
sock130include/net/ip.hvoid ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag);
sock151include/net/ip.hextern int     ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen);
sock152include/net/ip.hextern int     ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen);
sock23include/net/ipx.hunsigned short sock;
sock47include/net/ipx.htypedef struct sock ipx_socket;
sock63include/net/netrom.hstruct sock    *sk;    /* Backlink to socket */
sock95include/net/netrom.hextern void nr_destroy_socket(struct sock *);
sock104include/net/netrom.hextern int  nr_process_rx_frame(struct sock *, struct sk_buff *);
sock107include/net/netrom.hextern void nr_output(struct sock *, struct sk_buff *);
sock108include/net/netrom.hextern void nr_send_nak_frame(struct sock *);
sock109include/net/netrom.hextern void nr_kick(struct sock *);
sock110include/net/netrom.hextern void nr_transmit_buffer(struct sock *, struct sk_buff *);
sock111include/net/netrom.hextern void nr_establish_data_link(struct sock *);
sock112include/net/netrom.hextern void nr_enquiry_response(struct sock *);
sock113include/net/netrom.hextern void nr_check_iframes_acked(struct sock *, unsigned short);
sock126include/net/netrom.hextern void nr_clear_queues(struct sock *);
sock127include/net/netrom.hextern void nr_frames_acked(struct sock *, unsigned short);
sock128include/net/netrom.hextern void nr_requeue_frames(struct sock *);
sock129include/net/netrom.hextern int  nr_validate_nr(struct sock *, unsigned short);
sock130include/net/netrom.hextern int  nr_in_rx_window(struct sock *, unsigned short);
sock131include/net/netrom.hextern void nr_write_internal(struct sock *, int);
sock133include/net/netrom.hextern unsigned short nr_calculate_t1(struct sock *);
sock134include/net/netrom.hextern void nr_calculate_rtt(struct sock *);
sock137include/net/netrom.hextern void nr_set_timer(struct sock *);
sock26include/net/raw.hextern int  raw_recvfrom(struct sock *sk, unsigned char *to,
sock29include/net/raw.hextern int  raw_read(struct sock *sk, unsigned char *buff,
sock31include/net/raw.hextern int   raw_rcv(struct sock *, struct sk_buff *, struct device *, 
sock77include/net/sock.hstruct sock *    other;
sock195include/net/sock.hstruct sock    *next;
sock196include/net/sock.hstruct sock    *prev; /* Doubly linked chain.. */
sock197include/net/sock.hstruct sock    *pair;
sock323include/net/sock.hvoid      (*state_change)(struct sock *sk);
sock324include/net/sock.hvoid      (*data_ready)(struct sock *sk,int bytes);
sock325include/net/sock.hvoid      (*write_space)(struct sock *sk);
sock326include/net/sock.hvoid      (*error_report)(struct sock *sk);
sock336include/net/sock.hvoid      (*close)(struct sock *sk, unsigned long timeout);
sock343include/net/sock.hint      (*connect)(struct sock *sk,
sock345include/net/sock.hstruct sock *    (*accept) (struct sock *sk, int flags);
sock346include/net/sock.hvoid      (*queue_xmit)(struct sock *sk,
sock349include/net/sock.hvoid      (*retransmit)(struct sock *sk, int all);
sock350include/net/sock.hvoid      (*write_wakeup)(struct sock *sk);
sock351include/net/sock.hvoid      (*read_wakeup)(struct sock *sk);
sock356include/net/sock.hint      (*select)(struct sock *sk, int which,
sock358include/net/sock.hint      (*ioctl)(struct sock *sk, int cmd,
sock360include/net/sock.hint      (*init)(struct sock *sk);
sock361include/net/sock.hvoid      (*shutdown)(struct sock *sk, int how);
sock362include/net/sock.hint      (*setsockopt)(struct sock *sk, int level, int optname,
sock364include/net/sock.hint      (*getsockopt)(struct sock *sk, int level, int optname,
sock366include/net/sock.hint      (*sendmsg)(struct sock *sk, struct msghdr *msg, int len,
sock368include/net/sock.hint      (*recvmsg)(struct sock *sk, struct msghdr *msg, int len,
sock370include/net/sock.hint      (*bind)(struct sock *sk, struct sockaddr *uaddr, int addr_len);
sock375include/net/sock.hstruct sock *    sock_array[SOCK_ARRAY_SIZE];
sock411include/net/sock.hextern void __release_sock(struct sock *sk);
sock413include/net/sock.hstatic inline void lock_sock(struct sock *sk)
sock428include/net/sock.hstatic inline void release_sock(struct sock *sk)
sock445include/net/sock.hextern struct sock *    sk_alloc(int priority);
sock446include/net/sock.hextern void      sk_free(struct sock *sk);
sock447include/net/sock.hextern void      destroy_sock(struct sock *sk);
sock450include/net/sock.hextern void      put_sock(unsigned short, struct sock *); 
sock451include/net/sock.hextern struct sock    *get_sock(struct proto *, unsigned short,
sock454include/net/sock.hextern struct sock    *get_sock_mcast(struct sock *, unsigned short,
sock457include/net/sock.hextern struct sock    *get_sock_raw(struct sock *, unsigned short,
sock460include/net/sock.hextern struct sk_buff    *sock_wmalloc(struct sock *sk,
sock463include/net/sock.hextern struct sk_buff    *sock_rmalloc(struct sock *sk,
sock466include/net/sock.hextern void      sock_wfree(struct sock *sk,
sock468include/net/sock.hextern void      sock_rfree(struct sock *sk,
sock470include/net/sock.hextern unsigned long    sock_rspace(struct sock *sk);
sock471include/net/sock.hextern unsigned long    sock_wspace(struct sock *sk);
sock473include/net/sock.hextern int      sock_setsockopt(struct sock *sk, int level,
sock477include/net/sock.hextern int      sock_getsockopt(struct sock *sk, int level,
sock480include/net/sock.hextern struct sk_buff     *sock_alloc_send_skb(struct sock *skb,
sock495include/net/sock.hextern __inline__ int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
sock511include/net/sock.hextern __inline__ int sock_error(struct sock *sk)
sock521include/net/sock.hextern struct sock *timer_base;
sock523include/net/sock.hextern void delete_timer (struct sock *);
sock524include/net/sock.hextern void reset_timer (struct sock *, int, unsigned long);
sock129include/net/tcp.hextern void  tcp_shutdown (struct sock *sk, int how);
sock135include/net/tcp.hextern int tcp_ioctl(struct sock *sk, int cmd, unsigned long arg);
sock137include/net/tcp.hextern void tcp_read_wakeup(struct sock *);
sock138include/net/tcp.hextern void tcp_write_xmit(struct sock *);
sock139include/net/tcp.hextern void tcp_time_wait(struct sock *);
sock140include/net/tcp.hextern void tcp_retransmit(struct sock *, int);
sock141include/net/tcp.hextern void tcp_do_retransmit(struct sock *, int);
sock147include/net/tcp.hextern void tcp_send_probe0(struct sock *);
sock148include/net/tcp.hextern void tcp_send_partial(struct sock *);
sock149include/net/tcp.hextern void tcp_write_wakeup(struct sock *);
sock150include/net/tcp.hextern void tcp_send_fin(struct sock *sk);
sock151include/net/tcp.hextern void tcp_send_synack(struct sock *, struct sock *, struct sk_buff *);
sock152include/net/tcp.hextern void tcp_send_skb(struct sock *, struct sk_buff *);
sock153include/net/tcp.hextern void tcp_send_ack(struct sock *sk);
sock154include/net/tcp.hextern void tcp_send_delayed_ack(struct sock *sk, int timeout);
sock158include/net/tcp.hextern void tcp_enqueue_partial(struct sk_buff *, struct sock *);
sock159include/net/tcp.hextern struct sk_buff * tcp_dequeue_partial(struct sock *);
sock166include/net/tcp.hextern void tcp_reset_xmit_timer(struct sock *, int, unsigned long);
sock186include/net/tcp.hstatic __inline__ int tcp_old_window(struct sock * sk)
sock191include/net/tcp.hstatic __inline__ int tcp_new_window(struct sock * sk)
sock244include/net/tcp.hstatic __inline__ int tcp_raise_window(struct sock * sk)
sock249include/net/tcp.hstatic __inline__ unsigned short tcp_select_window(struct sock *sk)
sock294include/net/tcp.hstatic __inline__ void tcp_set_state(struct sock *sk, int state)
sock37include/net/udp.h__u32 daddr, int len, struct sock *sk);
sock38include/net/udp.hextern int  udp_recvfrom(struct sock *sk, unsigned char *to,
sock41include/net/udp.hextern int  udp_read(struct sock *sk, unsigned char *buff,
sock43include/net/udp.hextern int  udp_connect(struct sock *sk,
sock49include/net/udp.hextern int  udp_ioctl(struct sock *sk, int cmd, unsigned long arg);
sock6net/802/llc.cint llc_rx_adm(struct sock *sk,struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
sock36net/802/llc.cint llc_rx_setup(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
sock70net/802/llc.cint llc_rx_reset(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
sock114net/802/llc.cint llc_rx_d_conn(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
sock150net/802/llc.cint llc_rx_error(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
sock199net/802/llc.cint llc_rx_nr_shared(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
sock288net/802/llc.cint llc_rx_normal(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
sock1002net/appletalk/ddp.cstatic int atalk_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock1017net/appletalk/ddp.cstatic int atalk_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen)
sock1022net/appletalk/ddp.csk=(atalk_socket *)sock->data;
sock1055net/appletalk/ddp.cstatic int atalk_getsockopt(struct socket *sock, int level, int optname,
sock1062net/appletalk/ddp.csk=(atalk_socket *)sock->data;
sock1096net/appletalk/ddp.cstatic int atalk_listen(struct socket *sock, int backlog)
sock1105net/appletalk/ddp.cstatic void def_callback1(struct sock *sk)
sock1111net/appletalk/ddp.cstatic void def_callback2(struct sock *sk, int len)
sock1125net/appletalk/ddp.cstatic int atalk_create(struct socket *sock, int protocol)
sock1131net/appletalk/ddp.cswitch(sock->type)
sock1156net/appletalk/ddp.csk->socket=sock;
sock1157net/appletalk/ddp.csk->type=sock->type;
sock1161net/appletalk/ddp.cif(sock!=NULL)
sock1163net/appletalk/ddp.csock->data=(void *)sk;
sock1164net/appletalk/ddp.csk->sleep=sock->wait;
sock1189net/appletalk/ddp.cstatic int atalk_release(struct socket *sock, struct socket *peer)
sock1191net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock1197net/appletalk/ddp.csock->data=NULL;
sock1240net/appletalk/ddp.cstatic int atalk_bind(struct socket *sock, struct sockaddr *uaddr,int addr_len)
sock1245net/appletalk/ddp.csk=(atalk_socket *)sock->data;
sock1294net/appletalk/ddp.cstatic int atalk_connect(struct socket *sock, struct sockaddr *uaddr,
sock1297net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock1301net/appletalk/ddp.csock->state = SS_UNCONNECTED;
sock1325net/appletalk/ddp.csock->state = SS_CONNECTED;
sock1343net/appletalk/ddp.cstatic int atalk_accept(struct socket *sock, struct socket *newsock, int flags)
sock1355net/appletalk/ddp.cstatic int atalk_getname(struct socket *sock, struct sockaddr *uaddr,
sock1361net/appletalk/ddp.csk=(atalk_socket *)sock->data;
sock1398net/appletalk/ddp.catalk_socket *sock;
sock1539net/appletalk/ddp.csock=atalk_search_socket( &tosat, atif );
sock1541net/appletalk/ddp.cif(sock==NULL)  /* But not one of our sockets */
sock1552net/appletalk/ddp.cskb->sk = sock;
sock1554net/appletalk/ddp.cif(sock_queue_rcv_skb(sock,skb)<0)
sock1626net/appletalk/ddp.cstatic int atalk_sendmsg(struct socket *sock, struct msghdr *msg, int len, int nonblock, int flags)
sock1628net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock1813net/appletalk/ddp.cstatic int atalk_recvmsg(struct socket *sock, struct msghdr *msg, int size, int noblock, int flags, int *addr_len)
sock1815net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock1864net/appletalk/ddp.cstatic int atalk_select(struct socket *sock , int sel_type, select_table *wait)
sock1866net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock1875net/appletalk/ddp.cstatic int atalk_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg)
sock1879net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock279net/ax25/af_ax25.cstatic struct sock *ax25_find_listener(ax25_address *addr, struct device *dev, int type)
sock304net/ax25/af_ax25.cstatic struct sock *ax25_find_socket(ax25_address *my_addr, ax25_address *dest_addr, int type)
sock353net/ax25/af_ax25.cstatic struct sock *ax25_addr_match(ax25_address *addr)
sock373net/ax25/af_ax25.cstatic void ax25_send_to_raw(struct sock *sk, struct sk_buff *skb, int proto)
sock868net/ax25/af_ax25.cstatic int ax25_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock873net/ax25/af_ax25.cstatic int ax25_setsockopt(struct socket *sock, int level, int optname,
sock876net/ax25/af_ax25.cstruct sock *sk;
sock879net/ax25/af_ax25.csk = (struct sock *)sock->data;
sock960net/ax25/af_ax25.cstatic int ax25_getsockopt(struct socket *sock, int level, int optname,
sock963net/ax25/af_ax25.cstruct sock *sk;
sock967net/ax25/af_ax25.csk = (struct sock *)sock->data;
sock1033net/ax25/af_ax25.cstatic int ax25_listen(struct socket *sock, int backlog)
sock1035net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock1046net/ax25/af_ax25.cstatic void def_callback1(struct sock *sk)
sock1052net/ax25/af_ax25.cstatic void def_callback2(struct sock *sk, int len)
sock1058net/ax25/af_ax25.cstatic int ax25_create(struct socket *sock, int protocol)
sock1060net/ax25/af_ax25.cstruct sock *sk;
sock1063net/ax25/af_ax25.cswitch (sock->type) {
sock1105net/ax25/af_ax25.csk->socket        = sock;
sock1106net/ax25/af_ax25.csk->type          = sock->type;
sock1122net/ax25/af_ax25.cif (sock != NULL) {
sock1123net/ax25/af_ax25.csock->data = (void *)sk;
sock1124net/ax25/af_ax25.csk->sleep  = sock->wait;
sock1133net/ax25/af_ax25.cstatic struct sock *ax25_make_new(struct sock *osk, struct device *dev)
sock1135net/ax25/af_ax25.cstruct sock *sk;
sock1216net/ax25/af_ax25.cstruct sock *sk = (struct sock *)oldsock->data;
sock1221net/ax25/af_ax25.cstatic int ax25_release(struct socket *sock, struct socket *peer)
sock1223net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock1285net/ax25/af_ax25.csock->data = NULL;  
sock1297net/ax25/af_ax25.cstatic int ax25_bind(struct socket *sock, struct sockaddr *uaddr,int addr_len)
sock1299net/ax25/af_ax25.cstruct sock *sk;
sock1304net/ax25/af_ax25.csk = (struct sock *)sock->data;
sock1359net/ax25/af_ax25.cstatic int ax25_connect(struct socket *sock, struct sockaddr *uaddr,
sock1362net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock1366net/ax25/af_ax25.cif (sk->state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) {
sock1367net/ax25/af_ax25.csock->state = SS_CONNECTED;
sock1371net/ax25/af_ax25.cif (sk->state == TCP_CLOSE && sock->state == SS_CONNECTING) {
sock1372net/ax25/af_ax25.csock->state = SS_UNCONNECTED;
sock1380net/ax25/af_ax25.csock->state = SS_UNCONNECTED;
sock1438net/ax25/af_ax25.csock->state = SS_CONNECTED;
sock1444net/ax25/af_ax25.csock->state        = SS_CONNECTING;
sock1474net/ax25/af_ax25.csock->state = SS_UNCONNECTED;
sock1478net/ax25/af_ax25.csock->state = SS_CONNECTED;
sock1490net/ax25/af_ax25.cstatic int ax25_accept(struct socket *sock, struct socket *newsock, int flags)
sock1492net/ax25/af_ax25.cstruct sock *sk;
sock1493net/ax25/af_ax25.cstruct sock *newsk;
sock1501net/ax25/af_ax25.csk = (struct sock *)sock->data;
sock1541net/ax25/af_ax25.cstatic int ax25_getname(struct socket *sock, struct sockaddr *uaddr,
sock1546net/ax25/af_ax25.cstruct sock *sk;
sock1549net/ax25/af_ax25.csk = (struct sock *)sock->data;
sock1578net/ax25/af_ax25.cstruct sock *make;
sock1579net/ax25/af_ax25.cstruct sock *sk;
sock1584net/ax25/af_ax25.cstruct sock *raw;
sock1928net/ax25/af_ax25.cstatic int ax25_sendmsg(struct socket *sock, struct msghdr *msg, int len, int noblock, int flags)
sock1930net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock2066net/ax25/af_ax25.cstatic int ax25_recvmsg(struct socket *sock, struct msghdr *msg, int size, int noblock, int flags, int *addr_len)
sock2068net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock2149net/ax25/af_ax25.cstatic int ax25_select(struct socket *sock , int sel_type, select_table *wait)
sock2151net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock2156net/ax25/af_ax25.cstatic int ax25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock2158net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock50net/core/datagram.cstatic inline void wait_for_packet(struct sock * sk)
sock75net/core/datagram.cstruct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags, int noblock, int *err)
sock138net/core/datagram.cvoid skb_free_datagram(struct sock * sk, struct sk_buff *skb)
sock179net/core/datagram.cint datagram_select(struct sock *sk, int sel_type, select_table *wait)
sock438net/core/dev.c((struct sock *)ptype->data != skb->sk))
sock603net/core/skbuff.cstruct sock * sk = skb->sk;
sock123net/core/sock.cint sock_setsockopt(struct sock *sk, int level, int optname,
sock237net/core/sock.cint sock_getsockopt(struct sock *sk, int level, int optname,
sock329net/core/sock.cstruct sock *sk_alloc(int priority)
sock331net/core/sock.cstruct sock *sk=(struct sock *)kmalloc(sizeof(*sk), priority);
sock338net/core/sock.cvoid sk_free(struct sock *sk)
sock344net/core/sock.cstruct sk_buff *sock_wmalloc(struct sock *sk, unsigned long size, int force, int priority)
sock358net/core/sock.cstruct sk_buff *sock_rmalloc(struct sock *sk, unsigned long size, int force, int priority)
sock373net/core/sock.cunsigned long sock_rspace(struct sock *sk)
sock390net/core/sock.cunsigned long sock_wspace(struct sock *sk)
sock404net/core/sock.cvoid sock_wfree(struct sock *sk, struct sk_buff *skb)
sock420net/core/sock.cvoid sock_rfree(struct sock *sk, struct sk_buff *skb)
sock437net/core/sock.cstruct sk_buff *sock_alloc_send_skb(struct sock *sk, unsigned long size, unsigned long fallback, int noblock, int *errcode)
sock531net/core/sock.cvoid __release_sock(struct sock *sk)
sock123net/ipv4/af_inet.cstruct sock *sk;
sock151net/ipv4/af_inet.cstruct sock *sk;
sock198net/ipv4/af_inet.cvoid put_sock(unsigned short num, struct sock *sk)
sock200net/ipv4/af_inet.cstruct sock **skp, *tmp;
sock259net/ipv4/af_inet.cstatic void remove_sock(struct sock *sk1)
sock261net/ipv4/af_inet.cstruct sock **p;
sock296net/ipv4/af_inet.cvoid destroy_sock(struct sock *sk)
sock435net/ipv4/af_inet.cstatic int inet_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock437net/ipv4/af_inet.cstruct sock *sk;
sock439net/ipv4/af_inet.csk = (struct sock *) sock->data;
sock464net/ipv4/af_inet.cstatic int inet_setsockopt(struct socket *sock, int level, int optname,
sock467net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;  
sock480net/ipv4/af_inet.cstatic int inet_getsockopt(struct socket *sock, int level, int optname,
sock483net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;    
sock496net/ipv4/af_inet.cstatic int inet_autobind(struct sock *sk)
sock516net/ipv4/af_inet.cstatic int inet_listen(struct socket *sock, int backlog)
sock518net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock548net/ipv4/af_inet.cstatic void def_callback1(struct sock *sk)
sock554net/ipv4/af_inet.cstatic void def_callback2(struct sock *sk,int len)
sock563net/ipv4/af_inet.cstatic void def_callback3(struct sock *sk)
sock579net/ipv4/af_inet.cstatic int inet_create(struct socket *sock, int protocol)
sock581net/ipv4/af_inet.cstruct sock *sk;
sock592net/ipv4/af_inet.cswitch(sock->type) 
sock653net/ipv4/af_inet.csk->socket = sock;
sock657net/ipv4/af_inet.csk->type = sock->type;
sock675net/ipv4/af_inet.csk->sleep = sock->wait;
sock682net/ipv4/af_inet.csock->data =(void *) sk;
sock739net/ipv4/af_inet.creturn(inet_create(newsock,((struct sock *)(oldsock->data))->protocol));
sock748net/ipv4/af_inet.cstatic int inet_release(struct socket *sock, struct socket *peer)
sock751net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock781net/ipv4/af_inet.csock->data = NULL;
sock789net/ipv4/af_inet.cstatic int inet_bind(struct socket *sock, struct sockaddr *uaddr,
sock793net/ipv4/af_inet.cstruct sock *sk=(struct sock *)sock->data, *sk2;
sock810net/ipv4/af_inet.cif(sock->type != SOCK_RAW)
sock851net/ipv4/af_inet.cif(sock->type != SOCK_RAW)
sock910net/ipv4/af_inet.cif(sock->type==SOCK_DGRAM)
sock912net/ipv4/af_inet.cif(sock->type==SOCK_STREAM)
sock929net/ipv4/af_inet.cstatic int inet_connect(struct socket *sock, struct sockaddr * uaddr,
sock932net/ipv4/af_inet.cstruct sock *sk=(struct sock *)sock->data;
sock934net/ipv4/af_inet.csock->conn = NULL;
sock936net/ipv4/af_inet.cif (sock->state == SS_CONNECTING && tcp_connected(sk->state))
sock938net/ipv4/af_inet.csock->state = SS_CONNECTED;
sock943net/ipv4/af_inet.cif (sock->state == SS_CONNECTING && sk->protocol == IPPROTO_TCP && (flags & O_NONBLOCK))
sock949net/ipv4/af_inet.cif (sock->state != SS_CONNECTING) 
sock959net/ipv4/af_inet.csock->state = SS_CONNECTING;
sock962net/ipv4/af_inet.cif (sk->state > TCP_FIN_WAIT2 && sock->state==SS_CONNECTING)
sock964net/ipv4/af_inet.csock->state=SS_UNCONNECTED;
sock984net/ipv4/af_inet.csock->state = SS_UNCONNECTED;
sock990net/ipv4/af_inet.csock->state = SS_CONNECTED;
sock994net/ipv4/af_inet.csock->state = SS_UNCONNECTED;
sock1011net/ipv4/af_inet.cstatic int inet_accept(struct socket *sock, struct socket *newsock, int flags)
sock1013net/ipv4/af_inet.cstruct sock *sk1, *sk2;
sock1016net/ipv4/af_inet.csk1 = (struct sock *) sock->data;
sock1026net/ipv4/af_inet.cstruct sock *sk=(struct sock *)newsock->data;
sock1090net/ipv4/af_inet.cstatic int inet_getname(struct socket *sock, struct sockaddr *uaddr,
sock1094net/ipv4/af_inet.cstruct sock *sk;
sock1097net/ipv4/af_inet.csk = (struct sock *) sock->data;
sock1122net/ipv4/af_inet.cstatic int inet_recvmsg(struct socket *sock, struct msghdr *ubuf, int size, int noblock, 
sock1125net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock1138net/ipv4/af_inet.cstatic int inet_sendmsg(struct socket *sock, struct msghdr *msg, int size, int noblock, 
sock1141net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock1159net/ipv4/af_inet.cstatic int inet_shutdown(struct socket *sock, int how)
sock1161net/ipv4/af_inet.cstruct sock *sk=(struct sock*)sock->data;
sock1172net/ipv4/af_inet.cif (sock->state == SS_CONNECTING && sk->state == TCP_ESTABLISHED)
sock1173net/ipv4/af_inet.csock->state = SS_CONNECTED;
sock1183net/ipv4/af_inet.cstatic int inet_select(struct socket *sock, int sel_type, select_table *wait )
sock1185net/ipv4/af_inet.cstruct sock *sk=(struct sock *) sock->data;
sock1203net/ipv4/af_inet.cstatic int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock1205net/ipv4/af_inet.cstruct sock *sk=(struct sock *)sock->data;
sock1314net/ipv4/af_inet.cstruct sock *get_sock(struct proto *prot, unsigned short num,
sock1318net/ipv4/af_inet.cstruct sock *s;
sock1319net/ipv4/af_inet.cstruct sock *result = NULL;
sock1378net/ipv4/af_inet.cstruct sock *get_sock_raw(struct sock *sk, 
sock1383net/ipv4/af_inet.cstruct sock *s;
sock1407net/ipv4/af_inet.cstruct sock *get_sock_mcast(struct sock *sk, 
sock1412net/ipv4/af_inet.cstruct sock *s;
sock234net/ipv4/icmp.cstruct sock *sk=icmp_socket.data;
sock756net/ipv4/icmp.cstruct sock *sk;
sock575net/ipv4/igmp.cint ip_mc_join_group(struct sock *sk , struct device *dev, unsigned long addr)
sock609net/ipv4/igmp.cint ip_mc_leave_group(struct sock *sk, struct device *dev, unsigned long addr)
sock635net/ipv4/igmp.cvoid ip_mc_drop_socket(struct sock *sk)
sock606net/ipv4/ip_fragment.cvoid ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag)
sock163net/ipv4/ip_input.cextern void sort_send(struct sock *sk);
sock183net/ipv4/ip_input.cint ip_ioctl(struct sock *sk, int cmd, unsigned long arg)
sock204net/ipv4/ip_input.cstruct sock *raw_sk=NULL;
sock491net/ipv4/ip_input.cstruct sock *sknext=NULL;
sock329net/ipv4/ip_output.cvoid ip_queue_xmit(struct sock *sk, struct device *dev,
sock556net/ipv4/ip_output.cint ip_build_xmit(struct sock *sk,
sock111net/ipv4/ip_sockglue.cint ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen)
sock431net/ipv4/ip_sockglue.cint ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen)
sock427net/ipv4/ipmr.cint ip_mroute_setsockopt(struct sock *sk,int optname,char *optval,int optlen)
sock568net/ipv4/ipmr.cint ip_mroute_getsockopt(struct sock *sk,int optname,char *optval,int *optlen)
sock596net/ipv4/ipmr.cint ipmr_ioctl(struct sock *sk, int cmd, unsigned long arg)
sock639net/ipv4/ipmr.cvoid mroute_close(struct sock *sk)
sock81net/ipv4/packet.cstruct sock *sk;
sock88net/ipv4/packet.csk = (struct sock *) pt->data;  
sock127net/ipv4/packet.cstatic int packet_sendmsg(struct sock *sk, struct msghdr *msg, int len,
sock216net/ipv4/packet.cstatic void packet_close(struct sock *sk, unsigned long timeout)
sock255net/ipv4/packet.cint packet_attach(struct sock *sk, struct device *dev)
sock280net/ipv4/packet.cstatic int packet_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len)
sock372net/ipv4/packet.cstatic int packet_init(struct sock *sk)
sock400net/ipv4/packet.cint packet_recvmsg(struct sock *sk, struct msghdr *msg, int len,
sock60net/ipv4/proc.cstruct sock **s_array;
sock61net/ipv4/proc.cstruct sock *sp;
sock64net/ipv4/raw.cstruct sock *mroute_socket=NULL;
sock82net/ipv4/raw.cstruct sock *sk;
sock86net/ipv4/raw.csk = (struct sock *) protocol->data;
sock119net/ipv4/raw.cint raw_rcv(struct sock *sk, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr)
sock191net/ipv4/raw.cstatic int raw_sendto(struct sock *sk, const unsigned char *from, 
sock258net/ipv4/raw.cstatic int raw_sendmsg(struct sock *sk, struct msghdr *msg, int len, int noblock, 
sock289net/ipv4/raw.cstatic void raw_close(struct sock *sk, unsigned long timeout)
sock303net/ipv4/raw.cstatic int raw_init(struct sock *sk)
sock314net/ipv4/raw.cint raw_recvmsg(struct sock *sk, struct msghdr *msg, int len,
sock437net/ipv4/tcp.cstatic void tcp_close(struct sock *sk, unsigned long timeout);
sock450net/ipv4/tcp.cstatic struct sk_buff *tcp_find_established(struct sock *s)
sock470net/ipv4/tcp.cstatic struct sk_buff *tcp_dequeue_established(struct sock *s)
sock489net/ipv4/tcp.cstatic void tcp_close_pending (struct sock *sk)
sock505net/ipv4/tcp.cvoid tcp_time_wait(struct sock *sk)
sock528net/ipv4/tcp.cstruct sock *sk;
sock611net/ipv4/tcp.cstatic int tcp_readable(struct sock *sk)
sock685net/ipv4/tcp.cstatic int tcp_listen_select(struct sock *sk, int sel_type, select_table *wait)
sock708net/ipv4/tcp.cstatic int tcp_select(struct sock *sk, int sel_type, select_table *wait)
sock757net/ipv4/tcp.cint tcp_ioctl(struct sock *sk, int cmd, unsigned long arg)
sock848net/ipv4/tcp.cstatic inline int tcp_build_header(struct tcphdr *th, struct sock *sk, int push)
sock862net/ipv4/tcp.cstatic void wait_for_tcp_connect(struct sock * sk)
sock877net/ipv4/tcp.cstatic void wait_for_tcp_memory(struct sock * sk)
sock898net/ipv4/tcp.cstatic int do_tcp_sendmsg(struct sock *sk, struct msghdr *msg,
sock1160net/ipv4/tcp.cstatic int tcp_sendmsg(struct sock *sk, struct msghdr *msg,
sock1220net/ipv4/tcp.cvoid tcp_read_wakeup(struct sock *sk)
sock1241net/ipv4/tcp.cstatic int tcp_recv_urg(struct sock * sk, int nonblock,
sock1305net/ipv4/tcp.cstatic inline void tcp_eat_skb(struct sock *sk, struct sk_buff * skb)
sock1319net/ipv4/tcp.cstatic void cleanup_rbuf(struct sock *sk)
sock1344net/ipv4/tcp.cstatic int tcp_recvmsg(struct sock *sk, struct msghdr *msg,
sock1596net/ipv4/tcp.cstatic int tcp_close_state(struct sock *sk, int dead)
sock1651net/ipv4/tcp.cvoid tcp_shutdown(struct sock *sk, int how)
sock1707net/ipv4/tcp.cstatic inline int closing(struct sock * sk)
sock1719net/ipv4/tcp.cstatic void tcp_close(struct sock *sk, unsigned long timeout)
sock1804net/ipv4/tcp.cstatic struct sock *tcp_accept(struct sock *sk, int flags)
sock1806net/ipv4/tcp.cstruct sock *newsk;
sock1862net/ipv4/tcp.cstatic int tcp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len)
sock2032net/ipv4/tcp.cint tcp_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen)
sock2068net/ipv4/tcp.cint tcp_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen)
sock38net/ipv4/tcp_input.cextern __inline__ void tcp_delack_estimator(struct sock *sk)
sock83net/ipv4/tcp_input.cextern __inline__ void tcp_rtt_estimator(struct sock *sk, struct sk_buff *oskb)
sock122net/ipv4/tcp_input.cstatic volatile struct sock *th_cache_sk;
sock134net/ipv4/tcp_input.cstatic inline struct sock * get_tcp_sock(u32 saddr, u16 sport, u32 daddr, u16 dport)
sock136net/ipv4/tcp_input.cstruct sock * sk;
sock138net/ipv4/tcp_input.csk = (struct sock *) th_cache_sk;
sock157net/ipv4/tcp_input.cstatic void bad_tcp_sequence(struct sock *sk, struct tcphdr *th, u32 end_seq,
sock190net/ipv4/tcp_input.cextern __inline__ int tcp_sequence(struct sock *sk, u32 seq, u32 end_seq)
sock204net/ipv4/tcp_input.cstatic int tcp_reset(struct sock *sk, struct sk_buff *skb)
sock251net/ipv4/tcp_input.cstatic void tcp_options(struct sock *sk, struct tcphdr *th)
sock312net/ipv4/tcp_input.cstatic void tcp_conn_request(struct sock *sk, struct sk_buff *skb,
sock315net/ipv4/tcp_input.cstruct sock *newsk;
sock359net/ipv4/tcp_input.cnewsk = (struct sock *) kmalloc(sizeof(struct sock), GFP_ATOMIC);
sock376net/ipv4/tcp_input.ckfree_s(newsk, sizeof(struct sock));
sock384net/ipv4/tcp_input.ckfree_s(newsk, sizeof(struct sock));
sock529net/ipv4/tcp_input.cvoid tcp_window_shrunk(struct sock * sk, u32 window_seq)
sock591net/ipv4/tcp_input.cstatic int tcp_ack(struct sock *sk, struct tcphdr *th, u32 ack, int len)
sock1104net/ipv4/tcp_input.cstatic int tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th)
sock1211net/ipv4/tcp_input.cstatic inline u32 tcp_queue_ack(struct sk_buff * skb, struct sock * sk)
sock1223net/ipv4/tcp_input.cstatic void tcp_queue(struct sk_buff * skb, struct sock * sk, struct tcphdr *th)
sock1334net/ipv4/tcp_input.cstatic int tcp_data(struct sk_buff *skb, struct sock *sk, 
sock1434net/ipv4/tcp_input.cstatic void tcp_check_urg(struct sock * sk, struct tcphdr * th)
sock1466net/ipv4/tcp_input.cstatic inline void tcp_urg(struct sock *sk, struct tcphdr *th, unsigned long len)
sock1558net/ipv4/tcp_input.cstruct sock *sk;
sock31net/ipv4/tcp_output.cstatic __inline__ void clear_delayed_acks(struct sock * sk)
sock44net/ipv4/tcp_output.cvoid tcp_send_skb(struct sock *sk, struct sk_buff *skb)
sock157net/ipv4/tcp_output.cstruct sk_buff * tcp_dequeue_partial(struct sock * sk)
sock177net/ipv4/tcp_output.cvoid tcp_send_partial(struct sock *sk)
sock191net/ipv4/tcp_output.cvoid tcp_enqueue_partial(struct sk_buff * skb, struct sock * sk)
sock221net/ipv4/tcp_output.cvoid tcp_write_xmit(struct sock *sk)
sock320net/ipv4/tcp_output.cvoid tcp_do_retransmit(struct sock *sk, int all)
sock575net/ipv4/tcp_output.cvoid tcp_send_fin(struct sock *sk)
sock668net/ipv4/tcp_output.cvoid tcp_send_synack(struct sock * newsk, struct sock * sk, struct sk_buff * skb)
sock763net/ipv4/tcp_output.cvoid tcp_send_delayed_ack(struct sock * sk, int max_timeout)
sock792net/ipv4/tcp_output.cvoid tcp_send_ack(struct sock *sk)
sock882net/ipv4/tcp_output.cvoid tcp_write_wakeup(struct sock *sk)
sock1064net/ipv4/tcp_output.cvoid tcp_send_probe0(struct sock *sk)
sock27net/ipv4/tcp_timer.ctcp_send_ack((struct sock *) data);
sock34net/ipv4/tcp_timer.cvoid tcp_reset_xmit_timer(struct sock *sk, int why, unsigned long when)
sock57net/ipv4/tcp_timer.cstatic void tcp_retransmit_time(struct sock *sk, int all)
sock93net/ipv4/tcp_timer.cvoid tcp_retransmit(struct sock *sk, int all)
sock115net/ipv4/tcp_timer.cstatic int tcp_write_timeout(struct sock *sk)
sock182net/ipv4/tcp_timer.cstatic void tcp_time_write_timeout(struct sock * sk)
sock204net/ipv4/tcp_timer.cstruct sock *sk = (struct sock*)data;
sock53net/ipv4/timer.cvoid delete_timer (struct sock *t)
sock66net/ipv4/timer.cvoid reset_timer (struct sock *t, int timeout, unsigned long len)
sock88net/ipv4/timer.cstruct sock *sk = (struct sock*)data;
sock123net/ipv4/udp.cvolatile struct sock *uh_cache_sk;
sock138net/ipv4/udp.cstatic int udp_deliver(struct sock *sk, struct udphdr *uh, struct sk_buff *skb, struct device *dev, long saddr, long daddr, int len);
sock158net/ipv4/udp.cstruct sock *sk;
sock300net/ipv4/udp.cstatic int udp_send(struct sock *sk, struct sockaddr_in *sin,
sock338net/ipv4/udp.cstatic int udp_sendto(struct sock *sk, const unsigned char *from, int len, int noblock,
sock409net/ipv4/udp.cstatic int udp_sendmsg(struct sock *sk, struct msghdr *msg, int len, int noblock, 
sock444net/ipv4/udp.cint udp_ioctl(struct sock *sk, int cmd, unsigned long arg)
sock499net/ipv4/udp.cint udp_recvmsg(struct sock *sk, struct msghdr *msg, int len,
sock546net/ipv4/udp.cint udp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len)
sock576net/ipv4/udp.cstatic void udp_close(struct sock *sk, unsigned long timeout)
sock595net/ipv4/udp.cstruct sock *sk;
sock663net/ipv4/udp.cstruct sock *sknext=NULL;
sock689net/ipv4/udp.csk=(struct sock *)uh_cache_sk;
sock718net/ipv4/udp.cstatic int udp_deliver(struct sock *sk, struct udphdr *uh, struct sk_buff *skb, struct device *dev, long saddr, long daddr, int len)
sock363net/ipx/af_ipx.cstatic int ipxitf_def_skb_handler(struct sock *sock, struct sk_buff *skb)
sock367net/ipx/af_ipx.cif((retval = sock_queue_rcv_skb(sock, skb))<0) 
sock396net/ipx/af_ipx.cif (   (s->protinfo.af_ipx.port == ipx->ipx_dest.sock)
sock454net/ipx/af_ipx.csock1 = ipxitf_find_socket(intrfc, ipx->ipx_dest.sock);
sock466net/ipx/af_ipx.cswitch (ntohs(ipx->ipx_dest.sock)) 
sock478net/ipx/af_ipx.cipx->ipx_dest.sock);
sock1304net/ipx/af_ipx.cipx->ipx_source.sock = sk->protinfo.af_ipx.port;
sock1307net/ipx/af_ipx.cipx->ipx_dest.sock=usipx->sipx_port;
sock1506net/ipx/af_ipx.chtons(s->protinfo.af_ipx.dest_addr.sock));
sock1580net/ipx/af_ipx.cstatic int ipx_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock1589net/ipx/af_ipx.cstatic int ipx_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen)
sock1594net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sock1625net/ipx/af_ipx.cstatic int ipx_getsockopt(struct socket *sock, int level, int optname,
sock1632net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sock1664net/ipx/af_ipx.cstatic int ipx_listen(struct socket *sock, int backlog)
sock1669net/ipx/af_ipx.cstatic void def_callback1(struct sock *sk)
sock1675net/ipx/af_ipx.cstatic void def_callback2(struct sock *sk, int len)
sock1684net/ipx/af_ipx.cstatic int ipx_create(struct socket *sock, int protocol)
sock1690net/ipx/af_ipx.cswitch(sock->type)
sock1706net/ipx/af_ipx.csk->socket=sock;
sock1707net/ipx/af_ipx.csk->type=sock->type;
sock1710net/ipx/af_ipx.cif(sock!=NULL)
sock1712net/ipx/af_ipx.csock->data=(void *)sk;
sock1713net/ipx/af_ipx.csk->sleep=sock->wait;
sock1726net/ipx/af_ipx.cstatic int ipx_release(struct socket *sock, struct socket *peer)
sock1728net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock1734net/ipx/af_ipx.csock->data=NULL;
sock1762net/ipx/af_ipx.cstatic int ipx_bind(struct socket *sock, struct sockaddr *uaddr,int addr_len)
sock1768net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sock1862net/ipx/af_ipx.cstatic int ipx_connect(struct socket *sock, struct sockaddr *uaddr,
sock1865net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock1869net/ipx/af_ipx.csock->state = SS_UNCONNECTED;
sock1887net/ipx/af_ipx.cret = ipx_bind (sock, (struct sockaddr *)&uaddr,
sock1895net/ipx/af_ipx.csk->protinfo.af_ipx.dest_addr.sock=addr->sipx_port;
sock1899net/ipx/af_ipx.csock->state = SS_CONNECTED;
sock1909net/ipx/af_ipx.cstatic int ipx_accept(struct socket *sock, struct socket *newsock, int flags)
sock1918net/ipx/af_ipx.cstatic int ipx_getname(struct socket *sock, struct sockaddr *uaddr,
sock1925net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sock1935net/ipx/af_ipx.csipx.sipx_port = addr->sock;
sock1997net/ipx/af_ipx.cp->node[3],p->node[4],p->node[5],ntohs(p->sock));
sock2059net/ipx/af_ipx.cstatic int ipx_sendmsg(struct socket *sock, struct msghdr *msg, int len, int noblock,
sock2062net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock2085net/ipx/af_ipx.cret = ipx_bind (sock, (struct sockaddr *)&uaddr,
sock2102net/ipx/af_ipx.cusipx->sipx_port=sk->protinfo.af_ipx.dest_addr.sock;
sock2115net/ipx/af_ipx.cstatic int ipx_recvmsg(struct socket *sock, struct msghdr *msg, int size, int noblock,
sock2118net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock2148net/ipx/af_ipx.csipx->sipx_port=ipx->ipx_source.sock;
sock2162net/ipx/af_ipx.cstatic int ipx_select(struct socket *sock , int sel_type, select_table *wait)
sock2164net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock2169net/ipx/af_ipx.cstatic int ipx_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg)
sock2173net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock67net/netrom/af_netrom.cstatic struct sock *volatile nr_list = NULL;
sock72net/netrom/af_netrom.cstatic void nr_remove_socket(struct sock *sk)
sock74net/netrom/af_netrom.cstruct sock *s;
sock104net/netrom/af_netrom.cstruct sock *s;
sock137net/netrom/af_netrom.cstatic void nr_insert_socket(struct sock *sk)
sock154net/netrom/af_netrom.cstatic struct sock *nr_find_listener(ax25_address *addr)
sock157net/netrom/af_netrom.cstruct sock *s;
sock176net/netrom/af_netrom.cstatic struct sock *nr_find_socket(unsigned char index, unsigned char id)
sock178net/netrom/af_netrom.cstruct sock *s;
sock199net/netrom/af_netrom.cstatic struct sock *nr_find_peer(unsigned char index, unsigned char id)
sock201net/netrom/af_netrom.cstruct sock *s;
sock222net/netrom/af_netrom.cvoid nr_destroy_socket(struct sock *);
sock229net/netrom/af_netrom.cnr_destroy_socket((struct sock *)data);
sock238net/netrom/af_netrom.cvoid nr_destroy_socket(struct sock *sk)  /* Not static as its used by the timer */
sock280net/netrom/af_netrom.cstatic int nr_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock285net/netrom/af_netrom.cstatic int nr_setsockopt(struct socket *sock, int level, int optname,
sock288net/netrom/af_netrom.cstruct sock *sk;
sock291net/netrom/af_netrom.csk = (struct sock *)sock->data;
sock335net/netrom/af_netrom.cstatic int nr_getsockopt(struct socket *sock, int level, int optname,
sock338net/netrom/af_netrom.cstruct sock *sk;
sock342net/netrom/af_netrom.csk = (struct sock *)sock->data;
sock384net/netrom/af_netrom.cstatic int nr_listen(struct socket *sock, int backlog)
sock386net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock398net/netrom/af_netrom.cstatic void def_callback1(struct sock *sk)
sock404net/netrom/af_netrom.cstatic void def_callback2(struct sock *sk, int len)
sock410net/netrom/af_netrom.cstatic int nr_create(struct socket *sock, int protocol)
sock412net/netrom/af_netrom.cstruct sock *sk;
sock415net/netrom/af_netrom.cif (sock->type != SOCK_SEQPACKET || protocol != 0)
sock432net/netrom/af_netrom.csk->socket        = sock;
sock433net/netrom/af_netrom.csk->type          = sock->type;
sock449net/netrom/af_netrom.cif (sock != NULL) {
sock450net/netrom/af_netrom.csock->data = (void *)sk;
sock451net/netrom/af_netrom.csk->sleep  = sock->wait;
sock497net/netrom/af_netrom.cstatic struct sock *nr_make_new(struct sock *osk)
sock499net/netrom/af_netrom.cstruct sock *sk;
sock505net/netrom/af_netrom.cif ((sk = (struct sock *)sk_alloc(GFP_ATOMIC)) == NULL)
sock569net/netrom/af_netrom.cstruct sock *sk = (struct sock *)oldsock->data;
sock574net/netrom/af_netrom.cstatic int nr_release(struct socket *sock, struct socket *peer)
sock576net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock624net/netrom/af_netrom.csock->data = NULL;  
sock630net/netrom/af_netrom.cstatic int nr_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
sock632net/netrom/af_netrom.cstruct sock *sk;
sock637net/netrom/af_netrom.csk = (struct sock *)sock->data;
sock683net/netrom/af_netrom.cstatic int nr_connect(struct socket *sock, struct sockaddr *uaddr,
sock686net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock691net/netrom/af_netrom.cif (sk->state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) {
sock692net/netrom/af_netrom.csock->state = SS_CONNECTED;
sock696net/netrom/af_netrom.cif (sk->state == TCP_CLOSE && sock->state == SS_CONNECTING) {
sock697net/netrom/af_netrom.csock->state = SS_UNCONNECTED;
sock705net/netrom/af_netrom.csock->state = SS_UNCONNECTED;
sock742net/netrom/af_netrom.csock->state   = SS_CONNECTING;
sock767net/netrom/af_netrom.csock->state = SS_UNCONNECTED;
sock771net/netrom/af_netrom.csock->state = SS_CONNECTED;
sock783net/netrom/af_netrom.cstatic int nr_accept(struct socket *sock, struct socket *newsock, int flags)
sock785net/netrom/af_netrom.cstruct sock *sk;
sock786net/netrom/af_netrom.cstruct sock *newsk;
sock794net/netrom/af_netrom.csk = (struct sock *)sock->data;
sock834net/netrom/af_netrom.cstatic int nr_getname(struct socket *sock, struct sockaddr *uaddr,
sock838net/netrom/af_netrom.cstruct sock *sk;
sock840net/netrom/af_netrom.csk = (struct sock *)sock->data;
sock862net/netrom/af_netrom.cstruct sock *sk;
sock863net/netrom/af_netrom.cstruct sock *make;  
sock977net/netrom/af_netrom.cstatic int nr_sendmsg(struct socket *sock, struct msghdr *msg, int len, int noblock, int flags)
sock979net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock1080net/netrom/af_netrom.cstatic int nr_recvmsg(struct socket *sock, struct msghdr *msg, int size, int noblock,
sock1083net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock1135net/netrom/af_netrom.cstatic int nr_select(struct socket *sock , int sel_type, select_table *wait)
sock1137net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock1142net/netrom/af_netrom.cstatic int nr_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock1144net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock1229net/netrom/af_netrom.cstruct sock *s;
sock53net/netrom/nr_in.cstatic int nr_queue_rx_frame(struct sock *sk, struct sk_buff *skb, int more)
sock97net/netrom/nr_in.cstatic int nr_state1_machine(struct sock *sk, struct sk_buff *skb, int frametype)
sock143net/netrom/nr_in.cstatic int nr_state2_machine(struct sock *sk, struct sk_buff *skb, int frametype)
sock171net/netrom/nr_in.cstatic int nr_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype)
sock310net/netrom/nr_in.cint nr_process_rx_frame(struct sock *sk, struct sk_buff *skb)
sock49net/netrom/nr_out.cvoid nr_output(struct sock *sk, struct sk_buff *skb)
sock104net/netrom/nr_out.cstatic void nr_send_iframe(struct sock *sk, struct sk_buff *skb)
sock118net/netrom/nr_out.cvoid nr_send_nak_frame(struct sock *sk)
sock141net/netrom/nr_out.cvoid nr_kick(struct sock *sk)
sock202net/netrom/nr_out.cvoid nr_transmit_buffer(struct sock *sk, struct sk_buff *skb)
sock243net/netrom/nr_out.cvoid nr_establish_data_link(struct sock *sk)
sock257net/netrom/nr_out.cvoid nr_enquiry_response(struct sock *sk)
sock275net/netrom/nr_out.cvoid nr_check_iframes_acked(struct sock *sk, unsigned short nr)
sock47net/netrom/nr_subr.cvoid nr_clear_queues(struct sock *sk)
sock77net/netrom/nr_subr.cvoid nr_frames_acked(struct sock *sk, unsigned short nr)
sock100net/netrom/nr_subr.cvoid nr_requeue_frames(struct sock *sk)
sock117net/netrom/nr_subr.cint nr_validate_nr(struct sock *sk, unsigned short nr)
sock134net/netrom/nr_subr.cint nr_in_rx_window(struct sock *sk, unsigned short ns)
sock151net/netrom/nr_subr.cvoid nr_write_internal(struct sock *sk, int frametype)
sock292net/netrom/nr_subr.cunsigned short nr_calculate_t1(struct sock *sk)
sock307net/netrom/nr_subr.cvoid nr_calculate_rtt(struct sock *sk)
sock48net/netrom/nr_timer.cvoid nr_set_timer(struct sock *sk)
sock65net/netrom/nr_timer.cstatic void nr_reset_timer(struct sock *sk)
sock88net/netrom/nr_timer.cstruct sock *sk = (struct sock *)param;
sock249net/socket.cstruct socket * sock;
sock260net/socket.csock = &inode->u.socket_i;
sock261net/socket.csock->state = SS_UNCONNECTED;
sock262net/socket.csock->flags = 0;
sock263net/socket.csock->ops = NULL;
sock264net/socket.csock->data = NULL;
sock265net/socket.csock->conn = NULL;
sock266net/socket.csock->iconn = NULL;
sock267net/socket.csock->next = NULL;
sock268net/socket.csock->file = NULL;
sock269net/socket.csock->wait = &inode->i_wait;
sock270net/socket.csock->inode = inode;    /* "backlink": we could use pointer arithmetic instead */
sock271net/socket.csock->fasync_list = NULL;
sock273net/socket.creturn sock;
sock287net/socket.cvoid sock_release(struct socket *sock)
sock292net/socket.cif ((oldstate = sock->state) != SS_UNCONNECTED)
sock293net/socket.csock->state = SS_DISCONNECTING;
sock299net/socket.cfor (peersock = sock->iconn; peersock; peersock = nextsock) 
sock310net/socket.cpeersock = (oldstate == SS_CONNECTED) ? sock->conn : NULL;
sock311net/socket.cif (sock->ops) 
sock312net/socket.csock->ops->release(sock, peersock);
sock316net/socket.csock->file=NULL;
sock317net/socket.ciput(SOCK_INODE(sock));
sock336net/socket.cstruct socket *sock;
sock341net/socket.csock = socki_lookup(inode); 
sock342net/socket.cif (sock->flags & SO_ACCEPTCON) 
sock358net/socket.creturn(sock->ops->recvmsg(sock, &msg, size,(file->f_flags & O_NONBLOCK), 0,&msg.msg_namelen));
sock368net/socket.cstruct socket *sock;
sock373net/socket.csock = socki_lookup(inode); 
sock375net/socket.cif (sock->flags & SO_ACCEPTCON) 
sock393net/socket.creturn(sock->ops->sendmsg(sock, &msg, size,(file->f_flags & O_NONBLOCK),0));
sock404net/socket.cstruct socket *sock;
sock405net/socket.csock = socki_lookup(inode); 
sock406net/socket.creturn(sock->ops->ioctl(sock, cmd, arg));
sock412net/socket.cstruct socket *sock;
sock414net/socket.csock = socki_lookup(inode);
sock420net/socket.cif (sock->ops->select)
sock421net/socket.creturn(sock->ops->select(sock, sel_type, wait));
sock445net/socket.cstruct socket *sock;
sock455net/socket.csock = socki_lookup(inode);
sock457net/socket.cprev=&(sock->fasync_list);
sock476net/socket.cfna->fa_next=sock->fasync_list;
sock477net/socket.csock->fasync_list=fna;
sock491net/socket.cint sock_wake_async(struct socket *sock, int how)
sock493net/socket.cif (!sock || !sock->fasync_list)
sock498net/socket.ckill_fasync(sock->fasync_list, SIGIO);
sock501net/socket.cif (!(sock->flags & SO_WAITDATA))
sock502net/socket.ckill_fasync(sock->fasync_list, SIGIO);
sock505net/socket.cif (sock->flags & SO_NOSPACE)
sock507net/socket.ckill_fasync(sock->fasync_list, SIGIO);
sock508net/socket.csock->flags &= ~SO_NOSPACE;
sock537net/socket.cstruct socket *sock;
sock578net/socket.cif (!(sock = sock_alloc())) 
sock585net/socket.csock->type = type;
sock586net/socket.csock->ops = ops;
sock587net/socket.cif ((i = sock->ops->create(sock, protocol)) < 0) 
sock589net/socket.csock_release(sock);
sock593net/socket.cif ((fd = get_fd(SOCK_INODE(sock))) < 0) 
sock595net/socket.csock_release(sock);
sock599net/socket.csock->file=current->files->fd[fd];
sock675net/socket.cstruct socket *sock;
sock683net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock689net/socket.cif ((i = sock->ops->bind(sock, (struct sockaddr *)address, addrlen)) < 0) 
sock705net/socket.cstruct socket *sock;
sock710net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock713net/socket.cif (sock->state != SS_UNCONNECTED) 
sock716net/socket.cif (sock->ops && sock->ops->listen)
sock718net/socket.cerr=sock->ops->listen(sock, backlog);
sock720net/socket.csock->flags |= SO_ACCEPTCON;
sock737net/socket.cstruct socket *sock, *newsock;
sock744net/socket.cif (!(sock = sockfd_lookup(fd, &file))) 
sock746net/socket.cif (sock->state != SS_UNCONNECTED) 
sock750net/socket.cif (!(sock->flags & SO_ACCEPTCON)) 
sock761net/socket.cnewsock->type = sock->type;
sock762net/socket.cnewsock->ops = sock->ops;
sock763net/socket.cif ((i = sock->ops->dup(newsock, sock)) < 0) 
sock769net/socket.ci = newsock->ops->accept(sock, newsock, file->f_flags);
sock781net/socket.csock->file=current->files->fd[fd];
sock799net/socket.cstruct socket *sock;
sock807net/socket.cif (!(sock = sockfd_lookup(fd, &file)))
sock813net/socket.cswitch(sock->state) 
sock820net/socket.cif(sock->type == SOCK_DGRAM) /* Hack for now - move this all into the protocol */
sock835net/socket.ci = sock->ops->connect(sock, (struct sockaddr *)address, addrlen, file->f_flags);
sock850net/socket.cstruct socket *sock;
sock857net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock860net/socket.cerr=sock->ops->getname(sock, (struct sockaddr *)address, &len, 0);
sock875net/socket.cstruct socket *sock;
sock882net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock885net/socket.cerr=sock->ops->getname(sock, (struct sockaddr *)address, &len, 1);
sock900net/socket.cstruct socket *sock;
sock908net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock923net/socket.creturn(sock->ops->sendmsg(sock, &msg, len, (file->f_flags & O_NONBLOCK), flags));
sock935net/socket.cstruct socket *sock;
sock944net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock963net/socket.creturn(sock->ops->sendmsg(sock, &msg, len, (file->f_flags & O_NONBLOCK),
sock976net/socket.cstruct socket *sock;
sock983net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock1001net/socket.creturn(sock->ops->recvmsg(sock, &msg, size,(file->f_flags & O_NONBLOCK), flags,&msg.msg_namelen));
sock1013net/socket.cstruct socket *sock;
sock1022net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock1040net/socket.csize=sock->ops->recvmsg(sock, &msg, size, (file->f_flags & O_NONBLOCK),
sock1058net/socket.cstruct socket *sock;
sock1063net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock1066net/socket.creturn(sock->ops->setsockopt(sock, level, optname, optval, optlen));
sock1076net/socket.cstruct socket *sock;
sock1081net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock1084net/socket.cif (!sock->ops->getsockopt) 
sock1086net/socket.creturn(sock->ops->getsockopt(sock, level, optname, optval, optlen));
sock1096net/socket.cstruct socket *sock;
sock1101net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock1104net/socket.creturn(sock->ops->shutdown(sock, how));
sock1113net/socket.cstruct socket *sock;
sock1123net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock1126net/socket.cif(sock->ops->sendmsg==NULL)
sock1145net/socket.creturn sock->ops->sendmsg(sock, &msg_sys, total_len, (file->f_flags&O_NONBLOCK), flags);
sock1154net/socket.cstruct socket *sock;
sock1166net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock1180net/socket.cif(sock->ops->recvmsg==NULL)
sock1182net/socket.clen=sock->ops->recvmsg(sock, &msg_sys, total_len, (file->f_flags&O_NONBLOCK), flags, &addr_len);
sock1200net/socket.cstruct socket *sock;
sock1202net/socket.csock = socki_lookup (filp->f_inode);
sock1203net/socket.cif (sock != NULL && sock->ops != NULL && sock->ops->fcntl != NULL)
sock1204net/socket.creturn(sock->ops->fcntl(sock, cmd, arg));
sock218net/unix/af_unix.cstatic int unix_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock227net/unix/af_unix.cstatic int unix_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen)
sock229net/unix/af_unix.cunix_socket *sk=sock->data;
sock235net/unix/af_unix.cstatic int unix_getsockopt(struct socket *sock, int level, int optname, char *optval, int *optlen)
sock237net/unix/af_unix.cunix_socket *sk=sock->data;
sock243net/unix/af_unix.cstatic int unix_listen(struct socket *sock, int backlog)
sock245net/unix/af_unix.cunix_socket *sk=sock->data;
sock255net/unix/af_unix.cstatic void def_callback1(struct sock *sk)
sock261net/unix/af_unix.cstatic void def_callback2(struct sock *sk, int len)
sock270net/unix/af_unix.cstatic void def_callback3(struct sock *sk)
sock279net/unix/af_unix.cstatic int unix_create(struct socket *sock, int protocol)
sock287net/unix/af_unix.cswitch(sock->type)
sock296net/unix/af_unix.csock->type=SOCK_DGRAM;
sock303net/unix/af_unix.csk->type=sock->type;
sock322net/unix/af_unix.csk->socket=sock;
sock323net/unix/af_unix.csock->data=(void *)sk;
sock324net/unix/af_unix.csk->sleep=sock->wait;
sock334net/unix/af_unix.cstatic int unix_release(struct socket *sock, struct socket *peer)
sock336net/unix/af_unix.cunix_socket *sk=sock->data;
sock393net/unix/af_unix.cstatic int unix_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
sock396net/unix/af_unix.cunix_socket *sk=sock->data;
sock440net/unix/af_unix.cstatic int unix_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags)
sock442net/unix/af_unix.cunix_socket *sk=sock->data;
sock450net/unix/af_unix.cif(sock->state==SS_CONNECTING && sk->state==TCP_ESTABLISHED)
sock452net/unix/af_unix.csock->state=SS_CONNECTED;
sock455net/unix/af_unix.cif(sock->state==SS_CONNECTING && sk->state == TCP_CLOSE)
sock457net/unix/af_unix.csock->state=SS_UNCONNECTED;
sock460net/unix/af_unix.cif(sock->state!=SS_CONNECTING)
sock480net/unix/af_unix.csock->state=SS_UNCONNECTED;
sock489net/unix/af_unix.csock->state=SS_CONNECTED;
sock495net/unix/af_unix.cif(sock->state==SS_UNCONNECTED)
sock524net/unix/af_unix.csock->state=SS_CONNECTING;
sock556net/unix/af_unix.csock->state=SS_UNCONNECTED;
sock565net/unix/af_unix.csock->state=SS_CONNECTED;
sock588net/unix/af_unix.cstatic int unix_accept(struct socket *sock, struct socket *newsock, int flags)
sock590net/unix/af_unix.cunix_socket *sk=sock->data;
sock649net/unix/af_unix.cstatic int unix_getname(struct socket *sock, struct sockaddr *uaddr, int *uaddr_len, int peer)
sock651net/unix/af_unix.cunix_socket *sk=sock->data;
sock702net/unix/af_unix.cstatic int unix_fd_copy(struct sock *sk, struct cmsghdr *cmsg, struct file **fp)
sock746net/unix/af_unix.cstatic void unix_fd_free(struct sock *sk, struct file **fp, int num)
sock871net/unix/af_unix.cstatic int unix_sendmsg(struct socket *sock, struct msghdr *msg, int len, int nonblock, int flags)
sock873net/unix/af_unix.cunix_socket *sk=sock->data;
sock898net/unix/af_unix.cif(sock->type==SOCK_STREAM)
sock946net/unix/af_unix.cif(sock->type==SOCK_DGRAM)
sock959net/unix/af_unix.cif(size > 4000 && sock->type!=SOCK_DGRAM)
sock999net/unix/af_unix.cif(sock->type==SOCK_DGRAM && other->dead)
sock1003net/unix/af_unix.csock->state=SS_UNCONNECTED;
sock1050net/unix/af_unix.cstatic int unix_recvmsg(struct socket *sock, struct msghdr *msg, int size, int noblock, int flags, int *addr_len)
sock1052net/unix/af_unix.cunix_socket *sk=sock->data;
sock1153net/unix/af_unix.cif(sock->type==SOCK_DGRAM || cm)
sock1164net/unix/af_unix.cstatic int unix_shutdown(struct socket *sock, int mode)
sock1166net/unix/af_unix.cunix_socket *sk=(unix_socket *)sock->data;
sock1193net/unix/af_unix.cstatic int unix_select(struct socket *sock,  int sel_type, select_table *wait)
sock1195net/unix/af_unix.creturn datagram_select(sock->data,sel_type,wait);
sock1198net/unix/af_unix.cstatic int unix_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock1200net/unix/af_unix.cunix_socket *sk=sock->data;