taglinefilesource code
sock117drivers/net/de600.cstatic unsigned long de600_rspace(struct sock *sk);
sock812drivers/net/de600.cde600_rspace(struct sock *sk)
sock150fs/nfs/inode.cstruct socket *sock;
sock155fs/nfs/inode.csock = &((filp->f_inode)->u.socket_i);
sock158fs/nfs/inode.csock->ops->getname(sock, &(server->toaddr), &dummylen, 1) ;
sock56fs/nfs/sock.cstruct socket *sock;
sock81fs/nfs/sock.csock = &inode->u.socket_i;
sock82fs/nfs/sock.cif (!sock) {
sock107fs/nfs/sock.cresult = sock->ops->sendto(sock, (void *) start, len, 0, 0,
sock166fs/nfs/sock.cresult = sock->ops->recvfrom(sock, (void *)&recv_xid,
sock197fs/nfs/sock.c(void)sock->ops->recvfrom(sock, (void *)&recv_xid,
sock211fs/nfs/sock.cresult=sock->ops->recvfrom(sock, (void *)start, 
sock34fs/smbfs/sock.csmb_data_callback(struct sock *sk,int len)
sock36fs/smbfs/sock.cstruct socket *sock = sk->socket;
sock47fs/smbfs/sock.cresult = sock->ops->recvfrom(sock, (void *)peek_buf, 1, 1,
sock53fs/smbfs/sock.cresult = sock->ops->recvfrom(sock, (void *)peek_buf,
sock62fs/smbfs/sock.cresult = sock->ops->recvfrom(sock, (void *)peek_buf,
sock81fs/smbfs/sock.cstruct socket *sock;
sock82fs/smbfs/sock.cstruct sock   *sk;
sock94fs/smbfs/sock.csock = &(inode->u.socket_i);
sock96fs/smbfs/sock.cif (sock->type != SOCK_STREAM) {
sock102fs/smbfs/sock.csk   = (struct sock *)(sock->data);
sock129fs/smbfs/sock.cstruct socket *sock;
sock130fs/smbfs/sock.cstruct sock   *sk;
sock142fs/smbfs/sock.csock = &(inode->u.socket_i);
sock144fs/smbfs/sock.cif (sock->type != SOCK_STREAM) {
sock149fs/smbfs/sock.csk   = (struct sock *)(sock->data);
sock183fs/smbfs/sock.csmb_receive_raw(struct socket *sock, unsigned char *target,
sock197fs/smbfs/sock.cresult = sock->ops->recvfrom(sock, (void *)peek_buf, 4, 0,
sock243fs/smbfs/sock.cresult = sock->ops->
sock244fs/smbfs/sock.crecvfrom(sock,
sock265fs/smbfs/sock.csmb_receive(struct smb_server *server, struct socket *sock)
sock269fs/smbfs/sock.cresult = smb_receive_raw(sock, server->packet,
sock295fs/smbfs/sock.csmb_receive_trans2(struct smb_server *server, struct socket *sock,
sock308fs/smbfs/sock.cif ((result = smb_receive(server, sock)) < 0) {
sock383fs/smbfs/sock.cif ((result = smb_receive(server, sock)) < 0) {
sock422fs/smbfs/sock.cstruct socket *sock = server_sock(server);
sock425fs/smbfs/sock.cif (sock == NULL)
sock428fs/smbfs/sock.cresult = sock->ops->release(sock, NULL);
sock434fs/smbfs/sock.csock->state = SS_UNCONNECTED;
sock436fs/smbfs/sock.cresult = sock->ops->create(sock, 0);
sock444fs/smbfs/sock.cstruct socket *sock = server_sock(server);
sock445fs/smbfs/sock.cif (sock == NULL)
sock447fs/smbfs/sock.cif (sock->state != SS_UNCONNECTED) {
sock449fs/smbfs/sock.csock->state);
sock451fs/smbfs/sock.creturn sock->ops->connect(sock, (struct sockaddr *)&(server->m.addr),
sock469fs/smbfs/sock.cstruct socket *sock = server_sock(server);
sock472fs/smbfs/sock.cif ((sock == NULL) || (buffer == NULL)) {
sock495fs/smbfs/sock.cresult = sock->ops->send(sock, (void *)buffer, len, 0, 0);
sock500fs/smbfs/sock.cresult = smb_receive(server, sock);
sock537fs/smbfs/sock.cstruct socket *sock = server_sock(server);
sock540fs/smbfs/sock.cif ((sock == NULL) || (buffer == NULL)) {
sock563fs/smbfs/sock.cresult = sock->ops->send(sock, (void *)buffer, len, 0, 0);
sock568fs/smbfs/sock.cresult = smb_receive_trans2(server, sock,
sock603fs/smbfs/sock.cstruct socket *sock = server_sock(server);
sock606fs/smbfs/sock.cif ((sock == NULL) || (buffer == NULL)) {
sock632fs/smbfs/sock.c(unsigned int)buffer, (unsigned int)sock);
sock634fs/smbfs/sock.cresult = sock->ops->send(sock, (void *)buffer, len, 0, 0);
sock644fs/smbfs/sock.cresult = smb_receive_raw(sock, target, max_len, 0);
sock678fs/smbfs/sock.cstruct socket *sock = server_sock(server);
sock681fs/smbfs/sock.cif ((sock == NULL) || (buffer == NULL)) {
sock702fs/smbfs/sock.cresult = sock->ops->send(sock, (void *)nb_header, 4, 0, 0);
sock706fs/smbfs/sock.cresult = sock->ops->send(sock, (void *)source, length, 0, 0);
sock715fs/smbfs/sock.cresult = smb_receive(server, sock);
sock128include/linux/atalk.htypedef struct sock  atalk_socket;
sock37include/linux/etherdevice.hextern void     eth_header_cache(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr);
sock80include/linux/igmp.hextern int ip_mc_join_group(struct sock *sk, struct device *dev, unsigned long addr);
sock81include/linux/igmp.hextern int ip_mc_leave_group(struct sock *sk, struct device *dev,unsigned long addr);
sock82include/linux/igmp.hextern void ip_mc_drop_socket(struct sock *sk);
sock115include/linux/mroute.hextern struct sock *mroute_socket;
sock116include/linux/mroute.hextern int ip_mroute_setsockopt(struct sock *, int, char *, int);
sock117include/linux/mroute.hextern int ip_mroute_getsockopt(struct sock *, int, char *, int *);
sock118include/linux/mroute.hextern int ipmr_ioctl(struct sock *sk, int cmd, unsigned long arg);
sock119include/linux/mroute.hextern void mroute_close(struct sock *sk);
sock93include/linux/net.hint  (*create)  (struct socket *sock, int protocol);
sock95include/linux/net.hint  (*release)  (struct socket *sock, struct socket *peer);
sock96include/linux/net.hint  (*bind)    (struct socket *sock, struct sockaddr *umyaddr,
sock98include/linux/net.hint  (*connect)  (struct socket *sock, struct sockaddr *uservaddr,
sock101include/linux/net.hint  (*accept)  (struct socket *sock, struct socket *newsock,
sock103include/linux/net.hint  (*getname)  (struct socket *sock, struct sockaddr *uaddr,
sock105include/linux/net.hint  (*read)    (struct socket *sock, char *ubuf, int size,
sock107include/linux/net.hint  (*write)  (struct socket *sock, const char *ubuf, int size,
sock109include/linux/net.hint  (*select)  (struct socket *sock, int sel_type,
sock111include/linux/net.hint  (*ioctl)  (struct socket *sock, unsigned int cmd,
sock113include/linux/net.hint  (*listen)  (struct socket *sock, int len);
sock114include/linux/net.hint  (*send)    (struct socket *sock, const void *buff, int len, int nonblock,
sock116include/linux/net.hint  (*recv)    (struct socket *sock, void *buff, int len, int nonblock,
sock118include/linux/net.hint  (*sendto)  (struct socket *sock, const void *buff, int len, int nonblock,
sock120include/linux/net.hint  (*recvfrom)  (struct socket *sock, void *buff, int len, int nonblock,
sock122include/linux/net.hint  (*shutdown)  (struct socket *sock, int flags);
sock123include/linux/net.hint  (*setsockopt)  (struct socket *sock, int level, int optname,
sock125include/linux/net.hint  (*getsockopt)  (struct socket *sock, int level, int optname,
sock127include/linux/net.hint  (*fcntl)  (struct socket *sock, unsigned int cmd,
sock129include/linux/net.hint   (*sendmsg)  (struct socket *sock, struct msghdr *m, int total_len, int nonblock, int flags);
sock130include/linux/net.hint   (*recvmsg)  (struct socket *sock, struct msghdr *m, int total_len, int nonblock, int flags, int *addr_len);
sock139include/linux/net.hextern int  sock_wake_async(struct socket *sock, int how);
sock143include/linux/net.hextern void  sock_release(struct socket *sock);
sock164include/linux/netdevice.hvoid        (*header_cache)(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr);
sock47include/linux/skbuff.hstruct sock      *sk;      /* Socket we are owned by       */
sock363include/linux/skbuff.hextern struct sk_buff *    skb_recv_datagram(struct sock *sk,unsigned flags,int noblock, int *err);
sock364include/linux/skbuff.hextern int      datagram_select(struct sock *sk, int sel_type, select_table *wait);
sock3include/net/af_unix.htypedef struct sock unix_socket;
sock151include/net/ax25.hstruct sock    *sk;    /* Backlink to socket */
sock35include/net/icmp.hextern int  icmp_ioctl(struct sock *sk, int cmd,
sock44include/net/ip.hextern void    ip_mc_dropsocket(struct sock *);
sock79include/net/ip.hextern int    ip_ioctl(struct sock *sk, int cmd,
sock94include/net/ip.hextern void    ip_queue_xmit(struct sock *sk,
sock97include/net/ip.hextern int     ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen);
sock98include/net/ip.hextern int     ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen);
sock100include/net/ip.hextern int    ip_build_xmit(struct sock *sk,
sock22include/net/ipx.hunsigned short sock;
sock45include/net/ipx.htypedef struct sock ipx_socket;
sock60include/net/netrom.hstruct sock    *sk;    /* Backlink to socket */
sock92include/net/netrom.hextern void nr_destroy_socket(struct sock *);
sock102include/net/netrom.hextern int  nr_process_rx_frame(struct sock *, struct sk_buff *);
sock105include/net/netrom.hextern void nr_output(struct sock *, struct sk_buff *);
sock106include/net/netrom.hextern void nr_send_nak_frame(struct sock *);
sock107include/net/netrom.hextern void nr_kick(struct sock *);
sock108include/net/netrom.hextern void nr_transmit_buffer(struct sock *, struct sk_buff *);
sock109include/net/netrom.hextern void nr_nr_error_recovery(struct sock *);
sock110include/net/netrom.hextern void nr_establish_data_link(struct sock *);
sock111include/net/netrom.hextern void nr_enquiry_response(struct sock *);
sock112include/net/netrom.hextern void nr_check_iframes_acked(struct sock *, unsigned short);
sock125include/net/netrom.hextern void nr_clear_queues(struct sock *);
sock126include/net/netrom.hextern void nr_frames_acked(struct sock *, unsigned short);
sock127include/net/netrom.hextern void nr_requeue_frames(struct sock *);
sock128include/net/netrom.hextern int  nr_validate_nr(struct sock *, unsigned short);
sock129include/net/netrom.hextern int  nr_in_rx_window(struct sock *, unsigned short);
sock130include/net/netrom.hextern void nr_write_internal(struct sock *, int);
sock132include/net/netrom.hextern unsigned short nr_calculate_t1(struct sock *);
sock133include/net/netrom.hextern void nr_calculate_rtt(struct sock *);
sock136include/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 *, 
sock71include/net/sock.hstruct sock *    other;
sock116include/net/sock.hstruct sock      *next;
sock117include/net/sock.hstruct sock      *prev; /* Doubly linked chain.. */
sock118include/net/sock.hstruct sock      *pair;
sock231include/net/sock.hvoid      (*state_change)(struct sock *sk);
sock232include/net/sock.hvoid      (*data_ready)(struct sock *sk,int bytes);
sock233include/net/sock.hvoid      (*write_space)(struct sock *sk);
sock234include/net/sock.hvoid      (*error_report)(struct sock *sk);
sock239include/net/sock.hstruct sk_buff *  (*wmalloc)(struct sock *sk,
sock242include/net/sock.hstruct sk_buff *  (*rmalloc)(struct sock *sk,
sock245include/net/sock.hvoid      (*wfree)(struct sock *sk, struct sk_buff *skb);
sock246include/net/sock.hvoid      (*rfree)(struct sock *sk, struct sk_buff *skb);
sock247include/net/sock.hunsigned long    (*rspace)(struct sock *sk);
sock248include/net/sock.hunsigned long    (*wspace)(struct sock *sk);
sock249include/net/sock.hvoid      (*close)(struct sock *sk, int timeout);
sock250include/net/sock.hint      (*read)(struct sock *sk, unsigned char *to,
sock252include/net/sock.hint      (*write)(struct sock *sk, const unsigned char *to,
sock254include/net/sock.hint      (*sendto)(struct sock *sk,
sock258include/net/sock.hint      (*recvfrom)(struct sock *sk,
sock268include/net/sock.hint      (*connect)(struct sock *sk,
sock270include/net/sock.hstruct sock *    (*accept) (struct sock *sk, int flags);
sock271include/net/sock.hvoid      (*queue_xmit)(struct sock *sk,
sock274include/net/sock.hvoid      (*retransmit)(struct sock *sk, int all);
sock275include/net/sock.hvoid      (*write_wakeup)(struct sock *sk);
sock276include/net/sock.hvoid      (*read_wakeup)(struct sock *sk);
sock281include/net/sock.hint      (*select)(struct sock *sk, int which,
sock283include/net/sock.hint      (*ioctl)(struct sock *sk, int cmd,
sock285include/net/sock.hint      (*init)(struct sock *sk);
sock286include/net/sock.hvoid      (*shutdown)(struct sock *sk, int how);
sock287include/net/sock.hint      (*setsockopt)(struct sock *sk, int level, int optname,
sock289include/net/sock.hint      (*getsockopt)(struct sock *sk, int level, int optname,
sock296include/net/sock.hstruct sock *    sock_array[SOCK_ARRAY_SIZE];
sock319include/net/sock.hextern void      destroy_sock(struct sock *sk);
sock322include/net/sock.hextern void      put_sock(unsigned short, struct sock *); 
sock323include/net/sock.hextern void      release_sock(struct sock *sk);
sock324include/net/sock.hextern struct sock    *get_sock(struct proto *, unsigned short,
sock327include/net/sock.hextern struct sock    *get_sock_mcast(struct sock *, unsigned short,
sock330include/net/sock.hextern struct sock    *get_sock_raw(struct sock *, unsigned short,
sock333include/net/sock.hextern struct sk_buff    *sock_wmalloc(struct sock *sk,
sock336include/net/sock.hextern struct sk_buff    *sock_rmalloc(struct sock *sk,
sock339include/net/sock.hextern void      sock_wfree(struct sock *sk,
sock341include/net/sock.hextern void      sock_rfree(struct sock *sk,
sock343include/net/sock.hextern unsigned long    sock_rspace(struct sock *sk);
sock344include/net/sock.hextern unsigned long    sock_wspace(struct sock *sk);
sock346include/net/sock.hextern int      sock_setsockopt(struct sock *sk, int level,
sock350include/net/sock.hextern int      sock_getsockopt(struct sock *sk, int level,
sock353include/net/sock.hextern struct sk_buff     *sock_alloc_send_skb(struct sock *skb,
sock367include/net/sock.hextern __inline__ int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
sock384include/net/sock.hextern struct sock *timer_base;
sock386include/net/sock.hextern void delete_timer (struct sock *);
sock387include/net/sock.hextern void reset_timer (struct sock *, int, unsigned long);
sock128include/net/tcp.hextern void  tcp_shutdown (struct sock *sk, int how);
sock134include/net/tcp.hextern int  tcp_ioctl(struct sock *sk, int cmd, unsigned long arg);
sock136include/net/tcp.hextern int tcp_select_window(struct sock *sk);
sock138include/net/tcp.hunsigned long daddr, int len, struct sock *sk);
sock139include/net/tcp.hextern void tcp_send_probe0(struct sock *sk);
sock140include/net/tcp.hextern void tcp_enqueue_partial(struct sk_buff *, struct sock *);
sock141include/net/tcp.hextern struct sk_buff * tcp_dequeue_partial(struct sock *);
sock37include/net/udp.hunsigned long 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)
sock931net/appletalk/ddp.cstatic int atalk_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock946net/appletalk/ddp.cstatic int atalk_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen)
sock951net/appletalk/ddp.csk=(atalk_socket *)sock->data;
sock984net/appletalk/ddp.cstatic int atalk_getsockopt(struct socket *sock, int level, int optname,
sock991net/appletalk/ddp.csk=(atalk_socket *)sock->data;
sock1023net/appletalk/ddp.cstatic int atalk_listen(struct socket *sock, int backlog)
sock1032net/appletalk/ddp.cstatic void def_callback1(struct sock *sk)
sock1038net/appletalk/ddp.cstatic void def_callback2(struct sock *sk, int len)
sock1052net/appletalk/ddp.cstatic int atalk_create(struct socket *sock, int protocol)
sock1058net/appletalk/ddp.cswitch(sock->type)
sock1091net/appletalk/ddp.csk->socket=sock;
sock1092net/appletalk/ddp.csk->type=sock->type;
sock1105net/appletalk/ddp.cif(sock!=NULL)
sock1107net/appletalk/ddp.csock->data=(void *)sk;
sock1108net/appletalk/ddp.csk->sleep=sock->wait;
sock1133net/appletalk/ddp.cstatic int atalk_release(struct socket *sock, struct socket *peer)
sock1135net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock1141net/appletalk/ddp.csock->data=NULL;
sock1183net/appletalk/ddp.cstatic int atalk_bind(struct socket *sock, struct sockaddr *uaddr,int addr_len)
sock1188net/appletalk/ddp.csk=(atalk_socket *)sock->data;
sock1238net/appletalk/ddp.cstatic int atalk_connect(struct socket *sock, struct sockaddr *uaddr,
sock1241net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock1245net/appletalk/ddp.csock->state = SS_UNCONNECTED;
sock1269net/appletalk/ddp.csock->state = SS_CONNECTED;
sock1287net/appletalk/ddp.cstatic int atalk_accept(struct socket *sock, struct socket *newsock, int flags)
sock1299net/appletalk/ddp.cstatic int atalk_getname(struct socket *sock, struct sockaddr *uaddr,
sock1305net/appletalk/ddp.csk=(atalk_socket *)sock->data;
sock1341net/appletalk/ddp.catalk_socket *sock;
sock1447net/appletalk/ddp.csock=atalk_search_socket( &tosat, atif );
sock1449net/appletalk/ddp.cif(sock==NULL)  /* But not one of our sockets */
sock1460net/appletalk/ddp.cskb->sk = sock;
sock1462net/appletalk/ddp.cif(sock_queue_rcv_skb(sock,skb)<0)
sock1470net/appletalk/ddp.cstatic int atalk_sendmsg(struct socket *sock, struct msghdr *msg, int len, int nonblock, int flags)
sock1472net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock1647net/appletalk/ddp.cstatic int atalk_sendto(struct socket *sock, const void *ubuf, int size, int noblock, unsigned flags,
sock1659net/appletalk/ddp.creturn atalk_sendmsg(sock,&msg,size,noblock,flags);  
sock1663net/appletalk/ddp.cstatic int atalk_send(struct socket *sock, const void *ubuf, int size, int noblock, unsigned flags)
sock1665net/appletalk/ddp.creturn atalk_sendto(sock,ubuf,size,noblock,flags,NULL,0);
sock1668net/appletalk/ddp.cstatic int atalk_recvmsg(struct socket *sock, struct msghdr *msg, int size, int noblock, int flags, int *addr_len)
sock1670net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock1718net/appletalk/ddp.cstatic int atalk_write(struct socket *sock, const char *ubuf, int size, int noblock)
sock1720net/appletalk/ddp.creturn atalk_send(sock,ubuf,size,noblock,0);
sock1724net/appletalk/ddp.cstatic int atalk_recvfrom(struct socket *sock, void *ubuf, int size, int noblock, unsigned flags,
sock1738net/appletalk/ddp.creturn atalk_recvmsg(sock,&msg,size,noblock,flags,addr_len);  
sock1741net/appletalk/ddp.cstatic int atalk_recv(struct socket *sock, void *ubuf, int size , int noblock,
sock1744net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock1747net/appletalk/ddp.creturn atalk_recvfrom(sock,ubuf,size,noblock,flags,NULL, NULL);
sock1750net/appletalk/ddp.cstatic int atalk_read(struct socket *sock, char *ubuf, int size, int noblock)
sock1752net/appletalk/ddp.creturn atalk_recv(sock,ubuf,size,noblock,0);
sock1761net/appletalk/ddp.cstatic int atalk_select(struct socket *sock , int sel_type, select_table *wait)
sock1763net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock1772net/appletalk/ddp.cstatic int atalk_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg)
sock1776net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock261net/ax25/af_ax25.cstatic struct sock *ax25_find_listener(ax25_address *addr, struct device *dev, int type)
sock286net/ax25/af_ax25.cstatic struct sock *ax25_find_socket(ax25_address *my_addr, ax25_address *dest_addr, int type)
sock335net/ax25/af_ax25.cstatic struct sock *ax25_addr_match(ax25_address *addr)
sock355net/ax25/af_ax25.cstatic void ax25_send_to_raw(struct sock *sk, struct sk_buff *skb, int proto)
sock675net/ax25/af_ax25.cstatic int ax25_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock684net/ax25/af_ax25.cstatic int ax25_setsockopt(struct socket *sock, int level, int optname,
sock687net/ax25/af_ax25.cstruct sock *sk;
sock690net/ax25/af_ax25.csk = (struct sock *)sock->data;
sock759net/ax25/af_ax25.cstatic int ax25_getsockopt(struct socket *sock, int level, int optname,
sock762net/ax25/af_ax25.cstruct sock *sk;
sock766net/ax25/af_ax25.csk = (struct sock *)sock->data;
sock824net/ax25/af_ax25.cstatic int ax25_listen(struct socket *sock, int backlog)
sock826net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock837net/ax25/af_ax25.cstatic void def_callback1(struct sock *sk)
sock843net/ax25/af_ax25.cstatic void def_callback2(struct sock *sk, int len)
sock849net/ax25/af_ax25.cstatic int ax25_create(struct socket *sock, int protocol)
sock851net/ax25/af_ax25.cstruct sock *sk;
sock854net/ax25/af_ax25.cif ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL)
sock862net/ax25/af_ax25.csk->type = sock->type;
sock864net/ax25/af_ax25.cswitch (sock->type) {
sock882net/ax25/af_ax25.csk->socket        = sock;
sock909net/ax25/af_ax25.cif (sock != NULL) {
sock910net/ax25/af_ax25.csock->data = (void *)sk;
sock911net/ax25/af_ax25.csk->sleep  = sock->wait;
sock920net/ax25/af_ax25.cstatic struct sock *ax25_make_new(struct sock *osk, struct device *dev)
sock922net/ax25/af_ax25.cstruct sock *sk;
sock925net/ax25/af_ax25.cif ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL)
sock1011net/ax25/af_ax25.cstruct sock *sk = (struct sock *)oldsock->data;
sock1016net/ax25/af_ax25.cstatic int ax25_release(struct socket *sock, struct socket *peer)
sock1018net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock1067net/ax25/af_ax25.csock->data = NULL;  
sock1078net/ax25/af_ax25.cstatic int ax25_bind(struct socket *sock, struct sockaddr *uaddr,int addr_len)
sock1080net/ax25/af_ax25.cstruct sock *sk;
sock1085net/ax25/af_ax25.csk = (struct sock *)sock->data;
sock1135net/ax25/af_ax25.cstatic int ax25_connect(struct socket *sock, struct sockaddr *uaddr,
sock1138net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock1142net/ax25/af_ax25.cif (sk->state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) {
sock1143net/ax25/af_ax25.csock->state = SS_CONNECTED;
sock1147net/ax25/af_ax25.cif (sk->state == TCP_CLOSE && sock->state == SS_CONNECTING) {
sock1148net/ax25/af_ax25.csock->state = SS_UNCONNECTED;
sock1156net/ax25/af_ax25.csock->state = SS_UNCONNECTED;
sock1206net/ax25/af_ax25.csock->state = SS_CONNECTED;
sock1212net/ax25/af_ax25.csock->state        = SS_CONNECTING;
sock1235net/ax25/af_ax25.csock->state = SS_UNCONNECTED;
sock1239net/ax25/af_ax25.csock->state = SS_CONNECTED;
sock1251net/ax25/af_ax25.cstatic int ax25_accept(struct socket *sock, struct socket *newsock, int flags)
sock1253net/ax25/af_ax25.cstruct sock *sk;
sock1254net/ax25/af_ax25.cstruct sock *newsk;
sock1258net/ax25/af_ax25.ckfree_s(newsock->data, sizeof(struct sock));
sock1262net/ax25/af_ax25.csk = (struct sock *)sock->data;
sock1300net/ax25/af_ax25.cstatic int ax25_getname(struct socket *sock, struct sockaddr *uaddr,
sock1305net/ax25/af_ax25.cstruct sock *sk;
sock1308net/ax25/af_ax25.csk = (struct sock *)sock->data;
sock1337net/ax25/af_ax25.cstruct sock *make;
sock1338net/ax25/af_ax25.cstruct sock *sk;
sock1343net/ax25/af_ax25.cstruct sock *raw;
sock1633net/ax25/af_ax25.cstatic int ax25_sendmsg(struct socket *sock, struct msghdr *msg, int len, int noblock, int flags)
sock1635net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock1785net/ax25/af_ax25.cstatic int ax25_sendto(struct socket *sock, const void *ubuf, int size, int noblock, unsigned flags,
sock1797net/ax25/af_ax25.creturn ax25_sendmsg(sock,&msg,size,noblock,flags);  
sock1801net/ax25/af_ax25.cstatic int ax25_send(struct socket *sock, const void *ubuf, int size, int noblock, unsigned flags)
sock1803net/ax25/af_ax25.creturn ax25_sendto(sock, ubuf, size, noblock, flags, NULL, 0);
sock1806net/ax25/af_ax25.cstatic int ax25_write(struct socket *sock, const char *ubuf, int size, int noblock)
sock1808net/ax25/af_ax25.creturn ax25_sendto(sock, ubuf, size, noblock, 0, NULL, 0);
sock1811net/ax25/af_ax25.cstatic int ax25_recvmsg(struct socket *sock, struct msghdr *msg, int size, int noblock, int flags, int *addr_len)
sock1813net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock1881net/ax25/af_ax25.cstatic int ax25_recvfrom(struct socket *sock, void *ubuf, int size, int noblock, unsigned flags,
sock1895net/ax25/af_ax25.creturn ax25_recvmsg(sock,&msg,size,noblock,flags,addr_len);  
sock1898net/ax25/af_ax25.cstatic int ax25_recv(struct socket *sock, void *ubuf, int size , int noblock,
sock1901net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock1906net/ax25/af_ax25.creturn ax25_recvfrom(sock, ubuf, size, noblock, flags, NULL, NULL);
sock1909net/ax25/af_ax25.cstatic int ax25_read(struct socket *sock, char *ubuf, int size, int noblock)
sock1911net/ax25/af_ax25.creturn ax25_recv(sock, ubuf, size, noblock, 0);
sock1920net/ax25/af_ax25.cstatic int ax25_select(struct socket *sock , int sel_type, select_table *wait)
sock1922net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock1927net/ax25/af_ax25.cstatic int ax25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock1929net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock55net/core/datagram.cstruct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags, int noblock, int *err)
sock192net/core/datagram.cint datagram_select(struct sock *sk, int sel_type, select_table *wait)
sock384net/core/dev.c((struct sock *)ptype->data != skb->sk))
sock117net/core/sock.cint sock_setsockopt(struct sock *sk, int level, int optname,
sock215net/core/sock.cint sock_getsockopt(struct sock *sk, int level, int optname,
sock305net/core/sock.cstruct sk_buff *sock_wmalloc(struct sock *sk, unsigned long size, int force, int priority)
sock328net/core/sock.cstruct sk_buff *sock_rmalloc(struct sock *sk, unsigned long size, int force, int priority)
sock351net/core/sock.cunsigned long sock_rspace(struct sock *sk)
sock368net/core/sock.cunsigned long sock_wspace(struct sock *sk)
sock382net/core/sock.cvoid sock_wfree(struct sock *sk, struct sk_buff *skb)
sock403net/core/sock.cvoid sock_rfree(struct sock *sk, struct sk_buff *skb)
sock424net/core/sock.cstruct sk_buff *sock_alloc_send_skb(struct sock *sk, unsigned long size, int noblock, int *errcode)
sock495net/core/sock.cvoid release_sock(struct sock *sk)
sock217net/ethernet/eth.cvoid eth_header_cache(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr)
sock107net/ipv4/af_inet.cstruct sock *sk;
sock135net/ipv4/af_inet.cstruct sock *sk;
sock179net/ipv4/af_inet.cvoid put_sock(unsigned short num, struct sock *sk)
sock181net/ipv4/af_inet.cstruct sock *sk1;
sock182net/ipv4/af_inet.cstruct sock *sk2;
sock248net/ipv4/af_inet.cstatic void remove_sock(struct sock *sk1)
sock250net/ipv4/af_inet.cstruct sock *sk2;
sock293net/ipv4/af_inet.cvoid destroy_sock(struct sock *sk)
sock411net/ipv4/af_inet.cstatic int inet_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock413net/ipv4/af_inet.cstruct sock *sk;
sock415net/ipv4/af_inet.csk = (struct sock *) sock->data;
sock440net/ipv4/af_inet.cstatic int inet_setsockopt(struct socket *sock, int level, int optname,
sock443net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;  
sock456net/ipv4/af_inet.cstatic int inet_getsockopt(struct socket *sock, int level, int optname,
sock459net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;    
sock472net/ipv4/af_inet.cstatic int inet_autobind(struct sock *sk)
sock492net/ipv4/af_inet.cstatic int inet_listen(struct socket *sock, int backlog)
sock494net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock524net/ipv4/af_inet.cstatic void def_callback1(struct sock *sk)
sock530net/ipv4/af_inet.cstatic void def_callback2(struct sock *sk,int len)
sock539net/ipv4/af_inet.cstatic void def_callback3(struct sock *sk)
sock555net/ipv4/af_inet.cstatic int inet_create(struct socket *sock, int protocol)
sock557net/ipv4/af_inet.cstruct sock *sk;
sock561net/ipv4/af_inet.csk = (struct sock *) kmalloc(sizeof(*sk), GFP_KERNEL);
sock567net/ipv4/af_inet.cswitch(sock->type) 
sock628net/ipv4/af_inet.csk->socket = sock;
sock634net/ipv4/af_inet.csk->type = sock->type;
sock721net/ipv4/af_inet.csk->sleep = sock->wait;
sock727net/ipv4/af_inet.csock->data =(void *) sk;
sock777net/ipv4/af_inet.creturn(inet_create(newsock,((struct sock *)(oldsock->data))->protocol));
sock783net/ipv4/af_inet.cstatic inline int closing(struct sock * sk)
sock801net/ipv4/af_inet.cstatic int inet_release(struct socket *sock, struct socket *peer)
sock803net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock856net/ipv4/af_inet.csock->data = NULL;
sock863net/ipv4/af_inet.cstatic int inet_bind(struct socket *sock, struct sockaddr *uaddr,
sock867net/ipv4/af_inet.cstruct sock *sk=(struct sock *)sock->data, *sk2;
sock877net/ipv4/af_inet.cif(sock->type != SOCK_RAW)
sock905net/ipv4/af_inet.cif(sock->type != SOCK_RAW)
sock934net/ipv4/af_inet.cif(sock->type==SOCK_DGRAM)
sock936net/ipv4/af_inet.cif(sock->type==SOCK_STREAM)
sock951net/ipv4/af_inet.cstatic int inet_error(struct sock *sk)
sock968net/ipv4/af_inet.cstatic int inet_connect(struct socket *sock, struct sockaddr * uaddr,
sock971net/ipv4/af_inet.cstruct sock *sk=(struct sock *)sock->data;
sock973net/ipv4/af_inet.csock->conn = NULL;
sock975net/ipv4/af_inet.cif (sock->state == SS_CONNECTING && tcp_connected(sk->state))
sock977net/ipv4/af_inet.csock->state = SS_CONNECTED;
sock982net/ipv4/af_inet.cif (sock->state == SS_CONNECTING && sk->protocol == IPPROTO_TCP && (flags & O_NONBLOCK))
sock994net/ipv4/af_inet.cif (sock->state != SS_CONNECTING) 
sock1004net/ipv4/af_inet.csock->state = SS_CONNECTING;
sock1007net/ipv4/af_inet.cif (sk->state > TCP_FIN_WAIT2 && sock->state==SS_CONNECTING)
sock1009net/ipv4/af_inet.csock->state=SS_UNCONNECTED;
sock1033net/ipv4/af_inet.csock->state = SS_UNCONNECTED;
sock1041net/ipv4/af_inet.csock->state = SS_CONNECTED;
sock1045net/ipv4/af_inet.csock->state = SS_UNCONNECTED;
sock1066net/ipv4/af_inet.cstatic int inet_accept(struct socket *sock, struct socket *newsock, int flags)
sock1068net/ipv4/af_inet.cstruct sock *sk1, *sk2;
sock1071net/ipv4/af_inet.csk1 = (struct sock *) sock->data;
sock1080net/ipv4/af_inet.cstruct sock *sk=(struct sock *)newsock->data;
sock1146net/ipv4/af_inet.cstatic int inet_getname(struct socket *sock, struct sockaddr *uaddr,
sock1150net/ipv4/af_inet.cstruct sock *sk;
sock1153net/ipv4/af_inet.csk = (struct sock *) sock->data;
sock1178net/ipv4/af_inet.cstatic int inet_recvfrom(struct socket *sock, void *ubuf, int size, int noblock, 
sock1181net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock1195net/ipv4/af_inet.cstatic int inet_recv(struct socket *sock, void *ubuf, int size, int noblock,
sock1199net/ipv4/af_inet.creturn inet_recvfrom(sock,ubuf,size,noblock,flags,NULL,NULL);
sock1202net/ipv4/af_inet.cstatic int inet_read(struct socket *sock, char *ubuf, int size, int noblock)
sock1204net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock1214net/ipv4/af_inet.cstatic int inet_send(struct socket *sock, const void *ubuf, int size, int noblock, 
sock1217net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock1231net/ipv4/af_inet.cstatic int inet_write(struct socket *sock, const char *ubuf, int size, int noblock)
sock1233net/ipv4/af_inet.creturn inet_send(sock,ubuf,size,noblock,0);
sock1236net/ipv4/af_inet.cstatic int inet_sendto(struct socket *sock, const void *ubuf, int size, int noblock, 
sock1239net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock1257net/ipv4/af_inet.cstatic int inet_shutdown(struct socket *sock, int how)
sock1259net/ipv4/af_inet.cstruct sock *sk=(struct sock*)sock->data;
sock1270net/ipv4/af_inet.cif (sock->state == SS_CONNECTING && sk->state == TCP_ESTABLISHED)
sock1271net/ipv4/af_inet.csock->state = SS_CONNECTED;
sock1281net/ipv4/af_inet.cstatic int inet_select(struct socket *sock, int sel_type, select_table *wait )
sock1283net/ipv4/af_inet.cstruct sock *sk=(struct sock *) sock->data;
sock1301net/ipv4/af_inet.cstatic int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock1303net/ipv4/af_inet.cstruct sock *sk=(struct sock *)sock->data;
sock1398net/ipv4/af_inet.cstruct sock *get_sock(struct proto *prot, unsigned short num,
sock1402net/ipv4/af_inet.cstruct sock *s;
sock1403net/ipv4/af_inet.cstruct sock *result = NULL;
sock1462net/ipv4/af_inet.cstruct sock *get_sock_raw(struct sock *sk, 
sock1467net/ipv4/af_inet.cstruct sock *s;
sock1491net/ipv4/af_inet.cstruct sock *get_sock_mcast(struct sock *sk, 
sock1496net/ipv4/af_inet.cstruct sock *s;
sock568net/ipv4/icmp.cip_queue_xmit((struct sock *)NULL, ndev, skb2, 1);
sock654net/ipv4/icmp.cip_queue_xmit((struct sock *) NULL, ndev, skb2, 1);
sock746net/ipv4/icmp.cip_queue_xmit((struct sock *)NULL, ndev, skb2, 1);
sock887net/ipv4/icmp.cint icmp_ioctl(struct sock *sk, int cmd, unsigned long arg)
sock341net/ipv4/igmp.cint ip_mc_join_group(struct sock *sk , struct device *dev, unsigned long addr)
sock375net/ipv4/igmp.cint ip_mc_leave_group(struct sock *sk, struct device *dev, unsigned long addr)
sock401net/ipv4/igmp.cvoid ip_mc_drop_socket(struct sock *sk)
sock153net/ipv4/ip.cextern void sort_send(struct sock *sk);
sock173net/ipv4/ip.cint ip_ioctl(struct sock *sk, int cmd, unsigned long arg)
sock871net/ipv4/ip.cvoid ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag)
sock1317net/ipv4/ip.cstruct sock *raw_sk=NULL;
sock1606net/ipv4/ip.cstruct sock *sknext=NULL;
sock1780net/ipv4/ip.cvoid ip_queue_xmit(struct sock *sk, struct device *dev,
sock2070net/ipv4/ip.cint ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen)
sock2338net/ipv4/ip.cint ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen)
sock2421net/ipv4/ip.cint ip_build_xmit(struct sock *sk,
sock52net/ipv4/ipmr.cint ip_mroute_setsockopt(struct sock *sk,int optname,char *optval,int optlen)
sock192net/ipv4/ipmr.cint ip_mroute_getsockopt(struct sock *sk,int optname,char *optval,int *optlen)
sock220net/ipv4/ipmr.cint ipmr_ioctl(struct sock *sk, int cmd, unsigned long arg)
sock263net/ipv4/ipmr.cvoid mroute_close(struct sock *sk)
sock75net/ipv4/packet.cstruct sock *sk;
sock83net/ipv4/packet.csk = (struct sock *) pt->data;  
sock144net/ipv4/packet.cstatic int packet_sendto(struct sock *sk, const unsigned char *from, int len,
sock227net/ipv4/packet.cstatic int packet_write(struct sock *sk, const unsigned char *buff, 
sock240net/ipv4/packet.cstatic void packet_close(struct sock *sk, int timeout)
sock258net/ipv4/packet.cstatic int packet_init(struct sock *sk)
sock276net/ipv4/packet.csk->pair = (struct sock *)p;
sock287net/ipv4/packet.cint packet_recvfrom(struct sock *sk, unsigned char *to, int len,
sock367net/ipv4/packet.cint packet_read(struct sock *sk, unsigned char *buff,
sock60net/ipv4/proc.cstruct sock **s_array;
sock61net/ipv4/proc.cstruct sock *sp;
sock61net/ipv4/raw.cstruct sock *mroute_socket=NULL;
sock76net/ipv4/raw.cstruct sock *sk;
sock80net/ipv4/raw.csk = (struct sock *) protocol->data;
sock104net/ipv4/raw.cint raw_rcv(struct sock *sk, struct sk_buff *skb, struct device *dev, long saddr, long daddr)
sock165net/ipv4/raw.cstatic int raw_sendto(struct sock *sk, const unsigned char *from, 
sock217net/ipv4/raw.cstatic int raw_write(struct sock *sk, const unsigned char *buff, int len, int noblock,
sock224net/ipv4/raw.cstatic void raw_close(struct sock *sk, int timeout)
sock237net/ipv4/raw.cstatic int raw_init(struct sock *sk)
sock248net/ipv4/raw.cint raw_recvfrom(struct sock *sk, unsigned char *to, int len,
sock286net/ipv4/raw.cint raw_read (struct sock *sk, unsigned char *buff, int len, int noblock,unsigned flags)
sock266net/ipv4/tcp.cvolatile struct sock *th_cache_sk;
sock281net/ipv4/tcp.cstatic void tcp_close(struct sock *sk, int timeout);
sock307net/ipv4/tcp.cstatic __inline__ void tcp_set_state(struct sock *sk, int state)
sock342net/ipv4/tcp.cint tcp_select_window(struct sock *sk)
sock371net/ipv4/tcp.cstatic struct sk_buff *tcp_find_established(struct sock *s)
sock391net/ipv4/tcp.cstatic struct sk_buff *tcp_dequeue_established(struct sock *s)
sock410net/ipv4/tcp.cstatic void tcp_close_pending (struct sock *sk) 
sock427net/ipv4/tcp.cstatic void tcp_time_wait(struct sock *sk)
sock441net/ipv4/tcp.cvoid tcp_do_retransmit(struct sock *sk, int all)
sock590net/ipv4/tcp.cstatic void reset_xmit_timer(struct sock *sk, int why, unsigned long when)
sock611net/ipv4/tcp.cvoid tcp_retransmit_time(struct sock *sk, int all)
sock647net/ipv4/tcp.cstatic void tcp_retransmit(struct sock *sk, int all)
sock669net/ipv4/tcp.cstatic int tcp_write_timeout(struct sock *sk)
sock741net/ipv4/tcp.cstruct sock *sk = (struct sock*)data;
sock851net/ipv4/tcp.cstruct sock *sk;
sock908net/ipv4/tcp.cstatic int tcp_readable(struct sock *sk)
sock982net/ipv4/tcp.cstatic int tcp_listen_select(struct sock *sk, int sel_type, select_table *wait)
sock1005net/ipv4/tcp.cstatic int tcp_select(struct sock *sk, int sel_type, select_table *wait)
sock1054net/ipv4/tcp.cint tcp_ioctl(struct sock *sk, int cmd, unsigned long arg)
sock1123net/ipv4/tcp.cunsigned long daddr, int len, struct sock *sk)
sock1136net/ipv4/tcp.cstatic void tcp_send_skb(struct sock *sk, struct sk_buff *skb)
sock1255net/ipv4/tcp.cstruct sk_buff * tcp_dequeue_partial(struct sock * sk)
sock1275net/ipv4/tcp.cstatic void tcp_send_partial(struct sock *sk)
sock1289net/ipv4/tcp.cvoid tcp_enqueue_partial(struct sk_buff * skb, struct sock * sk)
sock1319net/ipv4/tcp.cstruct sock *sk,
sock1434net/ipv4/tcp.cextern __inline int tcp_build_header(struct tcphdr *th, struct sock *sk, int push)
sock1458net/ipv4/tcp.cstatic int tcp_write(struct sock *sk, const unsigned char *from,
sock1779net/ipv4/tcp.cstatic int tcp_sendto(struct sock *sk, const unsigned char *from,
sock1804net/ipv4/tcp.cstatic void tcp_read_wakeup(struct sock *sk)
sock1886net/ipv4/tcp.cstatic void cleanup_rbuf(struct sock *sk)
sock1974net/ipv4/tcp.cstatic int tcp_read_urg(struct sock * sk, int nonblock,
sock2031net/ipv4/tcp.cstatic int tcp_read(struct sock *sk, unsigned char *to,
sock2265net/ipv4/tcp.cstatic int tcp_close_state(struct sock *sk, int dead)
sock2319net/ipv4/tcp.cstatic void tcp_send_fin(struct sock *sk)
sock2420net/ipv4/tcp.cvoid tcp_shutdown(struct sock *sk, int how)
sock2473net/ipv4/tcp.ctcp_recvfrom(struct sock *sk, unsigned char *to,
sock2597net/ipv4/tcp.cstatic void tcp_options(struct sock *sk, struct tcphdr *th)
sock2682net/ipv4/tcp.cstatic void tcp_conn_request(struct sock *sk, struct sk_buff *skb,
sock2689net/ipv4/tcp.cstruct sock *newsk;
sock2732net/ipv4/tcp.cnewsk = (struct sock *) kmalloc(sizeof(struct sock), GFP_ATOMIC);
sock2953net/ipv4/tcp.cstatic void tcp_close(struct sock *sk, int timeout)
sock3026net/ipv4/tcp.cstatic void tcp_write_xmit(struct sock *sk)
sock3115net/ipv4/tcp.cextern __inline__ int tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len)
sock3718net/ipv4/tcp.cstatic int tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th)
sock3805net/ipv4/tcp.cextern __inline__ int tcp_data(struct sk_buff *skb, struct sock *sk, 
sock4132net/ipv4/tcp.cstatic void tcp_check_urg(struct sock * sk, struct tcphdr * th)
sock4164net/ipv4/tcp.cextern __inline__ int tcp_urg(struct sock *sk, struct tcphdr *th,
sock4205net/ipv4/tcp.cstatic struct sock *tcp_accept(struct sock *sk, int flags)
sock4207net/ipv4/tcp.cstruct sock *newsk;
sock4264net/ipv4/tcp.cstatic int tcp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len)
sock4424net/ipv4/tcp.cextern __inline__ int tcp_sequence(struct sock *sk, struct tcphdr *th, short len,
sock4480net/ipv4/tcp.cstatic int tcp_std_reset(struct sock *sk, struct sk_buff *skb)
sock4518net/ipv4/tcp.cstruct sock *sk;
sock4535net/ipv4/tcp.csk=(struct sock *)th_cache_sk;
sock4916net/ipv4/tcp.cstatic void tcp_write_wakeup(struct sock *sk)
sock5138net/ipv4/tcp.cvoid tcp_send_probe0(struct sock *sk)
sock5156net/ipv4/tcp.cint tcp_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen)
sock5192net/ipv4/tcp.cint tcp_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen)
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;
sock122net/ipv4/udp.cvolatile struct sock *uh_cache_sk;
sock137net/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);
sock157net/ipv4/udp.cstruct sock *sk;
sock290net/ipv4/udp.cstatic int udp_send(struct sock *sk, struct sockaddr_in *sin,
sock329net/ipv4/udp.cstatic int udp_sendto(struct sock *sk, const unsigned char *from, int len, int noblock,
sock398net/ipv4/udp.cstatic int udp_write(struct sock *sk, const unsigned char *buff, int len, int noblock,
sock409net/ipv4/udp.cint udp_ioctl(struct sock *sk, int cmd, unsigned long arg)
sock464net/ipv4/udp.cint udp_recvfrom(struct sock *sk, unsigned char *to, int len,
sock516net/ipv4/udp.cint udp_read(struct sock *sk, unsigned char *buff, int len, int noblock,
sock523net/ipv4/udp.cint udp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len)
sock552net/ipv4/udp.cstatic void udp_close(struct sock *sk, int timeout)
sock573net/ipv4/udp.cstruct sock *sk;
sock640net/ipv4/udp.cstruct sock *sknext=NULL;
sock666net/ipv4/udp.csk=(struct sock *)uh_cache_sk;
sock695net/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)
sock327net/ipx/af_ipx.cipxitf_def_skb_handler(struct sock *sock, struct sk_buff *skb)
sock331net/ipx/af_ipx.cif((retval = sock_queue_rcv_skb(sock, skb))<0) {
sock352net/ipx/af_ipx.csock1 = ipxitf_find_socket(intrfc, ipx->ipx_dest.sock);
sock362net/ipx/af_ipx.cswitch (ntohs(ipx->ipx_dest.sock)) {
sock373net/ipx/af_ipx.cipx->ipx_dest.sock);
sock1037net/ipx/af_ipx.cipx->ipx_source.sock = sk->ipx_port;
sock1040net/ipx/af_ipx.cipx->ipx_dest.sock=usipx->sipx_port;
sock1200net/ipx/af_ipx.chtons(s->ipx_dest_addr.sock));
sock1274net/ipx/af_ipx.cstatic int ipx_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock1283net/ipx/af_ipx.cstatic int ipx_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen)
sock1288net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sock1319net/ipx/af_ipx.cstatic int ipx_getsockopt(struct socket *sock, int level, int optname,
sock1326net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sock1357net/ipx/af_ipx.cstatic int ipx_listen(struct socket *sock, int backlog)
sock1362net/ipx/af_ipx.cstatic void def_callback1(struct sock *sk)
sock1368net/ipx/af_ipx.cstatic void def_callback2(struct sock *sk, int len)
sock1378net/ipx/af_ipx.cipx_create(struct socket *sock, int protocol)
sock1384net/ipx/af_ipx.cswitch(sock->type)
sock1408net/ipx/af_ipx.csk->socket=sock;
sock1409net/ipx/af_ipx.csk->type=sock->type;
sock1417net/ipx/af_ipx.cif(sock!=NULL)
sock1419net/ipx/af_ipx.csock->data=(void *)sk;
sock1420net/ipx/af_ipx.csk->sleep=sock->wait;
sock1432net/ipx/af_ipx.cstatic int ipx_release(struct socket *sock, struct socket *peer)
sock1434net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock1440net/ipx/af_ipx.csock->data=NULL;
sock1468net/ipx/af_ipx.cstatic int ipx_bind(struct socket *sock, struct sockaddr *uaddr,int addr_len)
sock1474net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sock1513net/ipx/af_ipx.cstatic int ipx_connect(struct socket *sock, struct sockaddr *uaddr,
sock1516net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock1520net/ipx/af_ipx.csock->state = SS_UNCONNECTED;
sock1534net/ipx/af_ipx.cret = ipx_bind (sock, (struct sockaddr *)&uaddr, sizeof(struct sockaddr_ipx));
sock1541net/ipx/af_ipx.csk->ipx_dest_addr.sock=addr->sipx_port;
sock1544net/ipx/af_ipx.csock->state = SS_CONNECTED;
sock1554net/ipx/af_ipx.cstatic int ipx_accept(struct socket *sock, struct socket *newsock, int flags)
sock1561net/ipx/af_ipx.cstatic int ipx_getname(struct socket *sock, struct sockaddr *uaddr,
sock1568net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sock1578net/ipx/af_ipx.csipx.sipx_port = addr->sock;
sock1635net/ipx/af_ipx.cp->node[3],p->node[4],p->node[5],ntohs(p->sock));
sock1694net/ipx/af_ipx.cstatic int ipx_sendto(struct socket *sock, const void *ubuf, int len, int noblock,
sock1697net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock1712net/ipx/af_ipx.cret = ipx_bind (sock, (struct sockaddr *)&uaddr, sizeof(struct sockaddr_ipx));
sock1726net/ipx/af_ipx.cusipx->sipx_port=sk->ipx_dest_addr.sock;
sock1737net/ipx/af_ipx.cstatic int ipx_send(struct socket *sock, const void *ubuf, int size, int noblock, unsigned flags)
sock1739net/ipx/af_ipx.creturn ipx_sendto(sock,ubuf,size,noblock,flags,NULL,0);
sock1742net/ipx/af_ipx.cstatic int ipx_recvfrom(struct socket *sock, void *ubuf, int size, int noblock,
sock1745net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock1778net/ipx/af_ipx.csipx->sipx_port=ipx->ipx_source.sock;
sock1787net/ipx/af_ipx.cstatic int ipx_write(struct socket *sock, const char *ubuf, int size, int noblock)
sock1789net/ipx/af_ipx.creturn ipx_send(sock,ubuf,size,noblock,0);
sock1793net/ipx/af_ipx.cstatic int ipx_recv(struct socket *sock, void *ubuf, int size , int noblock,
sock1796net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock1799net/ipx/af_ipx.creturn ipx_recvfrom(sock,ubuf,size,noblock,flags,NULL, NULL);
sock1802net/ipx/af_ipx.cstatic int ipx_read(struct socket *sock, char *ubuf, int size, int noblock)
sock1804net/ipx/af_ipx.creturn ipx_recv(sock,ubuf,size,noblock,0);
sock1813net/ipx/af_ipx.cstatic int ipx_select(struct socket *sock , int sel_type, select_table *wait)
sock1815net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock1820net/ipx/af_ipx.cstatic int ipx_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg)
sock1824net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock70net/netrom/af_netrom.cstatic struct sock *volatile nr_list = NULL;
sock75net/netrom/af_netrom.cstatic void nr_remove_socket(struct sock *sk)
sock77net/netrom/af_netrom.cstruct sock *s;
sock107net/netrom/af_netrom.cstruct sock *s;
sock140net/netrom/af_netrom.cstatic void nr_insert_socket(struct sock *sk)
sock157net/netrom/af_netrom.cstatic struct sock *nr_find_listener(ax25_address *addr, int type)
sock160net/netrom/af_netrom.cstruct sock *s;
sock179net/netrom/af_netrom.cstatic struct sock *nr_find_socket(unsigned char index, unsigned char id, int type)
sock181net/netrom/af_netrom.cstruct sock *s;
sock202net/netrom/af_netrom.cstatic struct sock *nr_find_peer(unsigned char index, unsigned char id, int type)
sock204net/netrom/af_netrom.cstruct sock *s;
sock225net/netrom/af_netrom.cvoid nr_destory_socket(struct sock *);
sock232net/netrom/af_netrom.cnr_destroy_socket((struct sock *)data);
sock241net/netrom/af_netrom.cvoid nr_destroy_socket(struct sock *sk)  /* Not static as its used by the timer */
sock284net/netrom/af_netrom.cstatic int nr_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock293net/netrom/af_netrom.cstatic int nr_setsockopt(struct socket *sock, int level, int optname,
sock296net/netrom/af_netrom.cstruct sock *sk;
sock299net/netrom/af_netrom.csk = (struct sock *)sock->data;
sock343net/netrom/af_netrom.cstatic int nr_getsockopt(struct socket *sock, int level, int optname,
sock346net/netrom/af_netrom.cstruct sock *sk;
sock350net/netrom/af_netrom.csk = (struct sock *)sock->data;
sock392net/netrom/af_netrom.cstatic int nr_listen(struct socket *sock, int backlog)
sock394net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock406net/netrom/af_netrom.cstatic void def_callback1(struct sock *sk)
sock412net/netrom/af_netrom.cstatic void def_callback2(struct sock *sk, int len)
sock418net/netrom/af_netrom.cstatic int nr_create(struct socket *sock, int protocol)
sock420net/netrom/af_netrom.cstruct sock *sk;
sock423net/netrom/af_netrom.cif ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL)
sock431net/netrom/af_netrom.csk->type = sock->type;
sock433net/netrom/af_netrom.cswitch (sock->type) {
sock448net/netrom/af_netrom.csk->socket        = sock;
sock476net/netrom/af_netrom.cif (sock != NULL) {
sock477net/netrom/af_netrom.csock->data = (void *)sk;
sock478net/netrom/af_netrom.csk->sleep  = sock->wait;
sock524net/netrom/af_netrom.cstatic struct sock *nr_make_new(struct sock *osk)
sock526net/netrom/af_netrom.cstruct sock *sk;
sock529net/netrom/af_netrom.cif ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL)
sock615net/netrom/af_netrom.cstruct sock *sk = (struct sock *)oldsock->data;
sock620net/netrom/af_netrom.cstatic int nr_release(struct socket *sock, struct socket *peer)
sock622net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock670net/netrom/af_netrom.csock->data = NULL;  
sock675net/netrom/af_netrom.cstatic int nr_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
sock677net/netrom/af_netrom.cstruct sock *sk;
sock682net/netrom/af_netrom.csk = (struct sock *)sock->data;
sock736net/netrom/af_netrom.cstatic int nr_connect(struct socket *sock, struct sockaddr *uaddr,
sock739net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock744net/netrom/af_netrom.cif (sk->state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) {
sock745net/netrom/af_netrom.csock->state = SS_CONNECTED;
sock749net/netrom/af_netrom.cif (sk->state == TCP_CLOSE && sock->state == SS_CONNECTING) {
sock750net/netrom/af_netrom.csock->state = SS_UNCONNECTED;
sock758net/netrom/af_netrom.csock->state = SS_UNCONNECTED;
sock791net/netrom/af_netrom.csock->state   = SS_CONNECTING;
sock816net/netrom/af_netrom.csock->state = SS_UNCONNECTED;
sock820net/netrom/af_netrom.csock->state = SS_CONNECTED;
sock832net/netrom/af_netrom.cstatic int nr_accept(struct socket *sock, struct socket *newsock, int flags)
sock834net/netrom/af_netrom.cstruct sock *sk;
sock835net/netrom/af_netrom.cstruct sock *newsk;
sock839net/netrom/af_netrom.ckfree_s(newsock->data, sizeof(struct sock));
sock843net/netrom/af_netrom.csk = (struct sock *)sock->data;
sock881net/netrom/af_netrom.cstatic int nr_getname(struct socket *sock, struct sockaddr *uaddr,
sock885net/netrom/af_netrom.cstruct sock *sk;
sock887net/netrom/af_netrom.csk = (struct sock *)sock->data;
sock909net/netrom/af_netrom.cstruct sock *sk;
sock910net/netrom/af_netrom.cstruct sock *make;  
sock1022net/netrom/af_netrom.cstatic int nr_sendto(struct socket *sock, const void *ubuf, int len, int noblock,
sock1025net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock1128net/netrom/af_netrom.cstatic int nr_send(struct socket *sock, const void *ubuf, int size, int noblock, unsigned flags)
sock1130net/netrom/af_netrom.creturn nr_sendto(sock, ubuf, size, noblock, flags, NULL, 0);
sock1133net/netrom/af_netrom.cstatic int nr_write(struct socket *sock, const char *ubuf, int size, int noblock)
sock1135net/netrom/af_netrom.creturn nr_send(sock, ubuf, size, noblock, 0);
sock1138net/netrom/af_netrom.cstatic int nr_recvfrom(struct socket *sock, void *ubuf, int size, int noblock,
sock1141net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock1191net/netrom/af_netrom.cstatic int nr_recv(struct socket *sock, void *ubuf, int size , int noblock,
sock1194net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock1199net/netrom/af_netrom.creturn nr_recvfrom(sock, ubuf, size, noblock, flags, NULL, NULL);
sock1202net/netrom/af_netrom.cstatic int nr_read(struct socket *sock, char *ubuf, int size, int noblock)
sock1204net/netrom/af_netrom.creturn nr_recv(sock, ubuf, size, noblock, 0);
sock1212net/netrom/af_netrom.cstatic int nr_select(struct socket *sock , int sel_type, select_table *wait)
sock1214net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock1219net/netrom/af_netrom.cstatic int nr_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock1221net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock1309net/netrom/af_netrom.cstruct sock *s;
sock51net/netrom/nr_in.cstatic int nr_queue_rx_frame(struct sock *sk, struct sk_buff *skb, int more)
sock95net/netrom/nr_in.cstatic int nr_state1_machine(struct sock *sk, struct sk_buff *skb, int frametype)
sock141net/netrom/nr_in.cstatic int nr_state2_machine(struct sock *sk, struct sk_buff *skb, int frametype)
sock170net/netrom/nr_in.cstatic int nr_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype)
sock324net/netrom/nr_in.cint nr_process_rx_frame(struct sock *sk, struct sk_buff *skb)
sock48net/netrom/nr_out.cvoid nr_output(struct sock *sk, struct sk_buff *skb)
sock103net/netrom/nr_out.cstatic void nr_send_iframe(struct sock *sk, struct sk_buff *skb)
sock117net/netrom/nr_out.cvoid nr_send_nak_frame(struct sock *sk)
sock134net/netrom/nr_out.cvoid nr_kick(struct sock *sk)
sock194net/netrom/nr_out.cvoid nr_transmit_buffer(struct sock *sk, struct sk_buff *skb)
sock235net/netrom/nr_out.cvoid nr_nr_error_recovery(struct sock *sk)
sock240net/netrom/nr_out.cvoid nr_establish_data_link(struct sock *sk)
sock254net/netrom/nr_out.cvoid nr_enquiry_response(struct sock *sk)
sock272net/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)
sock153net/netrom/nr_subr.cvoid nr_write_internal(struct sock *sk, int frametype)
sock294net/netrom/nr_subr.cunsigned short nr_calculate_t1(struct sock *sk)
sock309net/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;
sock235net/socket.cstruct socket * sock;
sock246net/socket.csock = &inode->u.socket_i;
sock247net/socket.csock->state = SS_UNCONNECTED;
sock248net/socket.csock->flags = 0;
sock249net/socket.csock->ops = NULL;
sock250net/socket.csock->data = NULL;
sock251net/socket.csock->conn = NULL;
sock252net/socket.csock->iconn = NULL;
sock253net/socket.csock->next = NULL;
sock254net/socket.csock->wait = &inode->i_wait;
sock255net/socket.csock->inode = inode;    /* "backlink": we could use pointer arithmetic instead */
sock256net/socket.csock->fasync_list = NULL;
sock258net/socket.creturn sock;
sock272net/socket.cvoid sock_release(struct socket *sock)
sock277net/socket.cif ((oldstate = sock->state) != SS_UNCONNECTED)
sock278net/socket.csock->state = SS_DISCONNECTING;
sock284net/socket.cfor (peersock = sock->iconn; peersock; peersock = nextsock) 
sock295net/socket.cpeersock = (oldstate == SS_CONNECTED) ? sock->conn : NULL;
sock296net/socket.cif (sock->ops) 
sock297net/socket.csock->ops->release(sock, peersock);
sock301net/socket.ciput(SOCK_INODE(sock));
sock320net/socket.cstruct socket *sock;
sock323net/socket.csock = socki_lookup(inode); 
sock324net/socket.cif (sock->flags & SO_ACCEPTCON) 
sock333net/socket.creturn(sock->ops->read(sock, ubuf, size, (file->f_flags & O_NONBLOCK)));
sock343net/socket.cstruct socket *sock;
sock346net/socket.csock = socki_lookup(inode); 
sock348net/socket.cif (sock->flags & SO_ACCEPTCON) 
sock358net/socket.creturn(sock->ops->write(sock, ubuf, size,(file->f_flags & O_NONBLOCK)));
sock369net/socket.cstruct socket *sock;
sock370net/socket.csock = socki_lookup(inode); 
sock371net/socket.creturn(sock->ops->ioctl(sock, cmd, arg));
sock377net/socket.cstruct socket *sock;
sock379net/socket.csock = socki_lookup(inode);
sock385net/socket.cif (sock->ops->select)
sock386net/socket.creturn(sock->ops->select(sock, sel_type, wait));
sock410net/socket.cstruct socket *sock;
sock420net/socket.csock = socki_lookup(inode);
sock422net/socket.cprev=&(sock->fasync_list);
sock441net/socket.cfna->fa_next=sock->fasync_list;
sock442net/socket.csock->fasync_list=fna;
sock456net/socket.cint sock_wake_async(struct socket *sock, int how)
sock458net/socket.cif (!sock || !sock->fasync_list)
sock463net/socket.ckill_fasync(sock->fasync_list, SIGIO);
sock466net/socket.cif (!(sock->flags & SO_WAITDATA))
sock467net/socket.ckill_fasync(sock->fasync_list, SIGIO);
sock470net/socket.cif (sock->flags & SO_NOSPACE)
sock472net/socket.ckill_fasync(sock->fasync_list, SIGIO);
sock473net/socket.csock->flags &= ~SO_NOSPACE;
sock566net/socket.cstruct socket *sock;
sock601net/socket.cif (!(sock = sock_alloc())) 
sock608net/socket.csock->type = type;
sock609net/socket.csock->ops = ops;
sock610net/socket.cif ((i = sock->ops->create(sock, protocol)) < 0) 
sock612net/socket.csock_release(sock);
sock616net/socket.cif ((fd = get_fd(SOCK_INODE(sock))) < 0) 
sock618net/socket.csock_release(sock);
sock696net/socket.cstruct socket *sock;
sock704net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock710net/socket.cif ((i = sock->ops->bind(sock, (struct sockaddr *)address, addrlen)) < 0) 
sock726net/socket.cstruct socket *sock;
sock730net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock733net/socket.cif (sock->state != SS_UNCONNECTED) 
sock738net/socket.cif (sock->ops && sock->ops->listen)
sock739net/socket.csock->ops->listen(sock, backlog);
sock740net/socket.csock->flags |= SO_ACCEPTCON;
sock756net/socket.cstruct socket *sock, *newsock;
sock763net/socket.cif (!(sock = sockfd_lookup(fd, &file))) 
sock765net/socket.cif (sock->state != SS_UNCONNECTED) 
sock769net/socket.cif (!(sock->flags & SO_ACCEPTCON)) 
sock780net/socket.cnewsock->type = sock->type;
sock781net/socket.cnewsock->ops = sock->ops;
sock782net/socket.cif ((i = sock->ops->dup(newsock, sock)) < 0) 
sock788net/socket.ci = newsock->ops->accept(sock, newsock, file->f_flags);
sock817net/socket.cstruct socket *sock;
sock825net/socket.cif (!(sock = sockfd_lookup(fd, &file)))
sock831net/socket.cswitch(sock->state) 
sock838net/socket.cif(sock->type == SOCK_DGRAM) /* Hack for now - move this all into the protocol */
sock853net/socket.ci = sock->ops->connect(sock, (struct sockaddr *)address, addrlen, file->f_flags);
sock868net/socket.cstruct socket *sock;
sock875net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock878net/socket.cerr=sock->ops->getname(sock, (struct sockaddr *)address, &len, 0);
sock893net/socket.cstruct socket *sock;
sock900net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock903net/socket.cerr=sock->ops->getname(sock, (struct sockaddr *)address, &len, 1);
sock918net/socket.cstruct socket *sock;
sock924net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock932net/socket.creturn(sock->ops->send(sock, buff, len, (file->f_flags & O_NONBLOCK), flags));
sock944net/socket.cstruct socket *sock;
sock951net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock963net/socket.creturn(sock->ops->sendto(sock, buff, len, (file->f_flags & O_NONBLOCK),
sock978net/socket.cstruct socket *sock;
sock985net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock996net/socket.creturn(sock->ops->recv(sock, buff, len,(file->f_flags & O_NONBLOCK), flags));
sock1008net/socket.cstruct socket *sock;
sock1015net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock1026net/socket.clen=sock->ops->recvfrom(sock, buff, len, (file->f_flags & O_NONBLOCK),
sock1044net/socket.cstruct socket *sock;
sock1049net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock1052net/socket.creturn(sock->ops->setsockopt(sock, level, optname, optval, optlen));
sock1062net/socket.cstruct socket *sock;
sock1067net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock1070net/socket.cif (!sock->ops->getsockopt) 
sock1072net/socket.creturn(sock->ops->getsockopt(sock, level, optname, optval, optlen));
sock1082net/socket.cstruct socket *sock;
sock1087net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock1090net/socket.creturn(sock->ops->shutdown(sock, how));
sock1099net/socket.cstruct socket *sock;
sock1109net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock1123net/socket.cif(sock->ops->sendmsg==NULL)
sock1125net/socket.creturn sock->ops->sendmsg(sock, &msg_sys, total_len, (file->f_flags&O_NONBLOCK), flags);
sock1134net/socket.cstruct socket *sock;
sock1146net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock1160net/socket.cif(sock->ops->recvmsg==NULL)
sock1162net/socket.clen=sock->ops->recvmsg(sock, &msg_sys, total_len, (file->f_flags&O_NONBLOCK), flags, &addr_len);
sock1180net/socket.cstruct socket *sock;
sock1182net/socket.csock = socki_lookup (filp->f_inode);
sock1183net/socket.cif (sock != NULL && sock->ops != NULL && sock->ops->fcntl != NULL)
sock1184net/socket.creturn(sock->ops->fcntl(sock, cmd, arg));
sock199net/unix/af_unix.cstatic int unix_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock208net/unix/af_unix.cstatic int unix_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen)
sock210net/unix/af_unix.cunix_socket *sk=sock->data;
sock216net/unix/af_unix.cstatic int unix_getsockopt(struct socket *sock, int level, int optname, char *optval, int *optlen)
sock218net/unix/af_unix.cunix_socket *sk=sock->data;
sock224net/unix/af_unix.cstatic int unix_listen(struct socket *sock, int backlog)
sock226net/unix/af_unix.cunix_socket *sk=sock->data;
sock234net/unix/af_unix.cstatic void def_callback1(struct sock *sk)
sock240net/unix/af_unix.cstatic void def_callback2(struct sock *sk, int len)
sock249net/unix/af_unix.cstatic void def_callback3(struct sock *sk)
sock258net/unix/af_unix.cstatic int unix_create(struct socket *sock, int protocol)
sock267net/unix/af_unix.csk->type=sock->type;
sock268net/unix/af_unix.cswitch(sock->type)
sock310net/unix/af_unix.csk->socket=sock;
sock311net/unix/af_unix.csock->data=(void *)sk;
sock312net/unix/af_unix.csk->sleep=sock->wait;
sock323net/unix/af_unix.cstatic int unix_release(struct socket *sock, struct socket *peer)
sock325net/unix/af_unix.cunix_socket *sk=sock->data;
sock376net/unix/af_unix.cstatic int unix_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
sock379net/unix/af_unix.cunix_socket *sk=sock->data;
sock420net/unix/af_unix.cstatic int unix_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags)
sock422net/unix/af_unix.cunix_socket *sk=sock->data;
sock430net/unix/af_unix.cif(sock->state==SS_CONNECTING && sk->state==TCP_ESTABLISHED)
sock432net/unix/af_unix.csock->state=SS_CONNECTED;
sock435net/unix/af_unix.cif(sock->state==SS_CONNECTING && sk->state == TCP_CLOSE)
sock437net/unix/af_unix.csock->state=SS_UNCONNECTED;
sock440net/unix/af_unix.cif(sock->state==SS_CONNECTING)
sock454net/unix/af_unix.csock->state=SS_UNCONNECTED;
sock457net/unix/af_unix.cif(sock->type==SOCK_DGRAM)
sock464net/unix/af_unix.csock->state=SS_CONNECTED;
sock470net/unix/af_unix.cif(sock->state==SS_UNCONNECTED)
sock494net/unix/af_unix.csock->state=SS_CONNECTING;
sock526net/unix/af_unix.csock->state=SS_UNCONNECTED;
sock535net/unix/af_unix.csock->state=SS_CONNECTED;
sock570net/unix/af_unix.cstatic int unix_accept(struct socket *sock, struct socket *newsock, int flags)
sock572net/unix/af_unix.cunix_socket *sk=sock->data;
sock631net/unix/af_unix.cstatic int unix_getname(struct socket *sock, struct sockaddr *uaddr, int *uaddr_len, int peer)
sock633net/unix/af_unix.cunix_socket *sk=sock->data;
sock654net/unix/af_unix.cstatic int unix_sendmsg(struct socket *sock, struct msghdr *msg, int len, int nonblock, int flags)
sock656net/unix/af_unix.cunix_socket *sk=sock->data;
sock676net/unix/af_unix.cif(sock->type==SOCK_STREAM)
sock697net/unix/af_unix.cif(sock->type==SOCK_DGRAM)
sock705net/unix/af_unix.cif(len > 4000 && sock->type!=SOCK_DGRAM)
sock722net/unix/af_unix.cif(sock->type==SOCK_DGRAM && other->dead)
sock726net/unix/af_unix.csock->state=SS_UNCONNECTED;
sock748net/unix/af_unix.cstatic int unix_recvmsg(struct socket *sock, struct msghdr *msg, int size, int noblock, int flags, int *addr_len)
sock750net/unix/af_unix.cunix_socket *sk=sock->data;
sock855net/unix/af_unix.cif(sock->type==SOCK_DGRAM)
sock866net/unix/af_unix.cstatic int unix_shutdown(struct socket *sock, int mode)
sock868net/unix/af_unix.cunix_socket *sk=(unix_socket *)sock->data;
sock895net/unix/af_unix.cstatic int unix_select(struct socket *sock,  int sel_type, select_table *wait)
sock897net/unix/af_unix.creturn datagram_select(sock->data,sel_type,wait);
sock900net/unix/af_unix.cstatic int unix_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock902net/unix/af_unix.cunix_socket *sk=sock->data;
sock983net/unix/af_unix.cstatic int unix_recvfrom(struct socket *sock, void *ubuf, int size, int noblock, unsigned flags,
sock997net/unix/af_unix.creturn unix_recvmsg(sock,&msg,size,noblock,flags,addr_len);  
sock1000net/unix/af_unix.cstatic int unix_read(struct socket *sock, char *ubuf, int size, int noblock)
sock1002net/unix/af_unix.creturn unix_recvfrom(sock,ubuf,size,noblock,0,NULL,NULL);
sock1005net/unix/af_unix.cstatic int unix_recv(struct socket *sock, void *ubuf, int size, int noblock, unsigned int flags)
sock1007net/unix/af_unix.creturn unix_recvfrom(sock,ubuf,size,noblock,flags,NULL,NULL);
sock1010net/unix/af_unix.cstatic int unix_sendto(struct socket *sock, const void *ubuf, int size, int noblock, unsigned flags,
sock1022net/unix/af_unix.creturn unix_sendmsg(sock,&msg,size,noblock,flags);  
sock1025net/unix/af_unix.cstatic int unix_write(struct socket *sock, const char *ubuf, int size, int noblock)
sock1027net/unix/af_unix.creturn unix_sendto(sock,ubuf,size,noblock, 0, NULL, 0);
sock1030net/unix/af_unix.cstatic int unix_send(struct socket *sock, const void *ubuf, int size, int noblock, unsigned int flags)
sock1032net/unix/af_unix.creturn unix_sendto(sock,ubuf,size,noblock, flags, NULL, 0);