taglinefilesource code
sk117drivers/net/de600.cstatic unsigned long de600_rspace(struct sock *sk);
sk483drivers/net/de600.cif (skb->sk && (skb->sk->protocol == IPPROTO_TCP) &&
sk484drivers/net/de600.c(skb->sk->prot->rspace != &de600_rspace))
sk485drivers/net/de600.cskb->sk->prot->rspace = de600_rspace; /* Ugh! */
sk814drivers/net/de600.cde600_rspace(struct sock *sk)
sk818drivers/net/de600.cif (sk != NULL) {
sk825drivers/net/de600.cif (sk->rmem_alloc >= sk->rcvbuf-2*DE600_MIN_WINDOW) return(0);
sk826drivers/net/de600.camt = min((sk->rcvbuf-sk->rmem_alloc)/2/*-DE600_MIN_WINDOW*/, DE600_MAX_WINDOW);
sk83drivers/net/loopback.celse if(skb->sk)
sk91drivers/net/loopback.cskb->sk->wmem_alloc-=skb->truesize;
sk92drivers/net/loopback.cskb->sk->write_space(skb->sk);
sk34fs/smbfs/sock.csmb_data_callback(struct sock *sk,int len)
sk36fs/smbfs/sock.cstruct socket *sock = sk->socket;
sk38fs/smbfs/sock.cif(!sk->dead)
sk71fs/smbfs/sock.cwake_up_interruptible(sk->sleep);
sk82fs/smbfs/sock.cstruct sock   *sk;
sk102fs/smbfs/sock.csk   = (struct sock *)(sock->data);
sk104fs/smbfs/sock.cif (sk == NULL) {
sk111fs/smbfs/sock.c(unsigned int)(sk->data_ready),
sk114fs/smbfs/sock.cif (sk->data_ready == smb_data_callback) {
sk119fs/smbfs/sock.cserver->data_ready = sk->data_ready;
sk120fs/smbfs/sock.csk->data_ready = smb_data_callback;
sk130fs/smbfs/sock.cstruct sock   *sk;
sk149fs/smbfs/sock.csk   = (struct sock *)(sock->data);
sk151fs/smbfs/sock.cif (sk == NULL) {
sk162fs/smbfs/sock.cif (sk->data_ready != smb_data_callback) {
sk169fs/smbfs/sock.c(unsigned int)(sk->data_ready),
sk172fs/smbfs/sock.csk->data_ready = server->data_ready;
sk37include/linux/etherdevice.hextern void     eth_header_cache(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr);
sk90include/linux/igmp.hextern int ip_mc_join_group(struct sock *sk, struct device *dev, unsigned long addr);
sk91include/linux/igmp.hextern int ip_mc_leave_group(struct sock *sk, struct device *dev,unsigned long addr);
sk92include/linux/igmp.hextern void ip_mc_drop_socket(struct sock *sk);
sk119include/linux/mroute.hextern int ipmr_ioctl(struct sock *sk, int cmd, unsigned long arg);
sk120include/linux/mroute.hextern void mroute_close(struct sock *sk);
sk168include/linux/netdevice.hvoid        (*header_cache)(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr);
sk47include/linux/skbuff.hstruct sock      *sk;      /* Socket we are owned by       */
sk364include/linux/skbuff.hextern struct sk_buff *    skb_recv_datagram(struct sock *sk,unsigned flags,int noblock, int *err);
sk365include/linux/skbuff.hextern int      datagram_select(struct sock *sk, int sel_type, select_table *wait);
sk159include/net/ax25.hstruct sock    *sk;    /* Backlink to socket */
sk32include/net/icmp.hextern int  icmp_ioctl(struct sock *sk, int cmd,
sk77include/net/ip.hextern int    ip_ioctl(struct sock *sk, int cmd,
sk97include/net/ip.hextern void    ip_queue_xmit(struct sock *sk,
sk100include/net/ip.hextern int     ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen);
sk101include/net/ip.hextern int     ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen);
sk103include/net/ip.hextern int    ip_build_xmit(struct sock *sk,
sk63include/net/netrom.hstruct sock    *sk;    /* Backlink to socket */
sk26include/net/raw.hextern int  raw_recvfrom(struct sock *sk, unsigned char *to,
sk29include/net/raw.hextern int  raw_read(struct sock *sk, unsigned char *buff,
sk232include/net/sock.hvoid      (*state_change)(struct sock *sk);
sk233include/net/sock.hvoid      (*data_ready)(struct sock *sk,int bytes);
sk234include/net/sock.hvoid      (*write_space)(struct sock *sk);
sk235include/net/sock.hvoid      (*error_report)(struct sock *sk);
sk240include/net/sock.hstruct sk_buff *  (*wmalloc)(struct sock *sk,
sk243include/net/sock.hstruct sk_buff *  (*rmalloc)(struct sock *sk,
sk246include/net/sock.hvoid      (*wfree)(struct sock *sk, struct sk_buff *skb);
sk247include/net/sock.hvoid      (*rfree)(struct sock *sk, struct sk_buff *skb);
sk248include/net/sock.hunsigned long    (*rspace)(struct sock *sk);
sk249include/net/sock.hunsigned long    (*wspace)(struct sock *sk);
sk250include/net/sock.hvoid      (*close)(struct sock *sk, int timeout);
sk251include/net/sock.hint      (*read)(struct sock *sk, unsigned char *to,
sk253include/net/sock.hint      (*write)(struct sock *sk, const unsigned char *to,
sk255include/net/sock.hint      (*sendto)(struct sock *sk,
sk259include/net/sock.hint      (*recvfrom)(struct sock *sk,
sk269include/net/sock.hint      (*connect)(struct sock *sk,
sk271include/net/sock.hstruct sock *    (*accept) (struct sock *sk, int flags);
sk272include/net/sock.hvoid      (*queue_xmit)(struct sock *sk,
sk275include/net/sock.hvoid      (*retransmit)(struct sock *sk, int all);
sk276include/net/sock.hvoid      (*write_wakeup)(struct sock *sk);
sk277include/net/sock.hvoid      (*read_wakeup)(struct sock *sk);
sk282include/net/sock.hint      (*select)(struct sock *sk, int which,
sk284include/net/sock.hint      (*ioctl)(struct sock *sk, int cmd,
sk286include/net/sock.hint      (*init)(struct sock *sk);
sk287include/net/sock.hvoid      (*shutdown)(struct sock *sk, int how);
sk288include/net/sock.hint      (*setsockopt)(struct sock *sk, int level, int optname,
sk290include/net/sock.hint      (*getsockopt)(struct sock *sk, int level, int optname,
sk318include/net/sock.hextern void      destroy_sock(struct sock *sk);
sk322include/net/sock.hextern void      release_sock(struct sock *sk);
sk332include/net/sock.hextern struct sk_buff    *sock_wmalloc(struct sock *sk,
sk335include/net/sock.hextern struct sk_buff    *sock_rmalloc(struct sock *sk,
sk338include/net/sock.hextern void      sock_wfree(struct sock *sk,
sk340include/net/sock.hextern void      sock_rfree(struct sock *sk,
sk342include/net/sock.hextern unsigned long    sock_rspace(struct sock *sk);
sk343include/net/sock.hextern unsigned long    sock_wspace(struct sock *sk);
sk345include/net/sock.hextern int      sock_setsockopt(struct sock *sk, int level,
sk349include/net/sock.hextern int      sock_getsockopt(struct sock *sk, int level,
sk367include/net/sock.hextern __inline__ int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
sk370include/net/sock.hif(sk->rmem_alloc + skb->truesize >= sk->rcvbuf)
sk374include/net/sock.hsk->rmem_alloc+=skb->truesize;
sk375include/net/sock.hskb->sk=sk;
sk377include/net/sock.hskb_queue_tail(&sk->receive_queue,skb);
sk378include/net/sock.hif(!sk->dead)
sk379include/net/sock.hsk->data_ready(sk,skb->len);
sk128include/net/tcp.hextern void  tcp_shutdown (struct sock *sk, int how);
sk134include/net/tcp.hextern int  tcp_ioctl(struct sock *sk, int cmd, unsigned long arg);
sk136include/net/tcp.hextern int tcp_select_window(struct sock *sk);
sk138include/net/tcp.hunsigned long daddr, int len, struct sock *sk);
sk139include/net/tcp.hextern void tcp_send_probe0(struct sock *sk);
sk37include/net/udp.h__u32 daddr, int len, struct sock *sk);
sk38include/net/udp.hextern int  udp_recvfrom(struct sock *sk, unsigned char *to,
sk41include/net/udp.hextern int  udp_read(struct sock *sk, unsigned char *buff,
sk43include/net/udp.hextern int  udp_connect(struct sock *sk,
sk49include/net/udp.hextern int  udp_ioctl(struct sock *sk, int cmd, unsigned long arg);
sk6net/802/llc.cint llc_rx_adm(struct sock *sk,struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
sk11net/802/llc.csend_response(sk,DM|pf);
sk14net/802/llc.cif(sk->state!=TCP_LISTEN)
sk15net/802/llc.csend_response(sk. DM|pf);
sk18net/802/llc.csk=ll_rx_accept(sk);
sk19net/802/llc.cif(sk!=NULL)
sk21net/802/llc.csend_response(sk, UA|pf);
sk22net/802/llc.csk->llc.vs=0;
sk23net/802/llc.csk->llc.vr=0;
sk24net/802/llc.csk->llc.p_flag=0;
sk25net/802/llc.csk->llc.remote_busy=0;
sk26net/802/llc.cllc_state(sk,LLC_NORMAL);
sk31net/802/llc.csend_response(sk, DM|PF);
sk36net/802/llc.cint llc_rx_setup(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
sk42net/802/llc.csk->llc.vs=0;
sk43net/802/llc.csk->llc.vr=0;
sk44net/802/llc.csend_response(sk, UA|pf);
sk48net/802/llc.csend_response(sk, DM|pf);
sk49net/802/llc.cllc_error(sk,ECONNRESET);
sk50net/802/llc.cllc_state(sk, LLC_ADM);
sk55net/802/llc.cif(cmd==UA && pf==sk->llc.p_flag)
sk57net/802/llc.cdel_timer(&sk->llc.t1);
sk58net/802/llc.csk->llc.vs=0;
sk59net/802/llc.cllc_update_p_flag(sk,pf);
sk60net/802/llc.cllc_state(sk,LLC_NORMAL);
sk64net/802/llc.cllc_error(sk, ECONNRESET);
sk65net/802/llc.cllc_state(sk, LLC_ADM);
sk70net/802/llc.cint llc_rx_reset(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
sk76net/802/llc.csk->llc.vr=0;
sk77net/802/llc.csk->llc.vs=0;
sk78net/802/llc.csend_response(sk, UA|pf);
sk82net/802/llc.cif(sk->llc.cause_flag==1)
sk83net/802/llc.cllc_shutdown(sk,SHUTDOWN_MASK);
sk85net/802/llc.cllc_eror(sk, ECONNREFUSED);
sk86net/802/llc.csend_response(sk, DM|pf);
sk87net/802/llc.cllc_state(sk, LLC_ADM);
sk94net/802/llc.cif(sk->llc.p_flag==pf)
sk96net/802/llc.cdel_timer(&sk->llc.t1);
sk97net/802/llc.csk->llc.vs=0;
sk98net/802/llc.csk->llc.vr=0;
sk99net/802/llc.cllc_update_p_flag(sk,pf);
sk100net/802/llc.cllc_confirm_reset(sk, sk->llc.cause_flag);
sk101net/802/llc.csk->llc.remote_busy=0;
sk102net/802/llc.cllc_state(sk, LLC_NORMAL);
sk107net/802/llc.cllc_shutdown(sk, SHUTDOWN_MASK);
sk108net/802/llc.cllc_state(sk, LLC_ADM);
sk114net/802/llc.cint llc_rx_d_conn(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
sk120net/802/llc.cllc_error(sk, ECONNRESET);
sk121net/802/llc.cllc_state(sk, ADM);
sk126net/802/llc.cllc_state(sk, LLC_D_CONN);
sk129net/802/llc.csend_response(sk, DM|PF);
sk133net/802/llc.cif(cmd==UA && pf==sk->llc.p_flag)
sk135net/802/llc.cdel_timer(&sk->llc.t1);
sk136net/802/llc.cllc_state(sk, ADM);
sk137net/802/llc.cllc_confirm_reset(sk, sk->llc.cause_flag);
sk141net/802/llc.cdel_timer(&sk->llc.t1);
sk143net/802/llc.cllc_shutdown(sk, SHUTDOWN_MASK);  
sk150net/802/llc.cint llc_rx_error(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
sk156net/802/llc.csk->llc.vs=0;
sk157net/802/llc.csk->llc.vr=0;
sk158net/802/llc.csend_response(sk, UA|pf);
sk159net/802/llc.cllc_error(sk,ECONNRESET);
sk160net/802/llc.csk->llc.p_flag=0;
sk161net/802/llc.csk->llc.remote_busy=0;
sk162net/802/llc.cllc_state(sk, LLC_NORMAL);
sk166net/802/llc.csend_response(sk, UA|pf);
sk167net/802/llc.cllc_shutdown(sk, SHUTDOWN_MASK);
sk168net/802/llc.cllc_state(sk, LLC_ADM);
sk171net/802/llc.cllc_resend_frmr_rsp(sk,pf);
sk177net/802/llc.cllc_error(sk, ECONNRESET);
sk178net/802/llc.cdel_timer(&sk->llc.t1);
sk179net/802/llc.cllc_state(sk, LLC_ADM);
sk183net/802/llc.csend_command(sk, SABM);
sk184net/802/llc.csk->llc.p_flag=pf;
sk186net/802/llc.csk->llc.retry_count=0;
sk187net/802/llc.csk->llc.cause_flag=0;
sk188net/802/llc.cllc_error(sk, EPROTO);
sk189net/802/llc.cllc_state(sk, LLC_RESET);
sk199net/802/llc.cint llc_rx_nr_shared(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
sk208net/802/llc.csend_response(sk,DM|pf);
sk209net/802/llc.cllc_error(sk, ECONNRESET);
sk210net/802/llc.cllc_state(sk, LLC_ADM);
sk214net/802/llc.csend_response(sk,UA|pf);
sk215net/802/llc.cllc_state(sk, LLC_ADM);
sk216net/802/llc.cllc_shutdown(sk, SHUTDOWN_MASK);
sk224net/802/llc.cllc_send_frmr_response(sk, ILLEGAL_TYPE,pf);
sk225net/802/llc.cllc_state(sk, LLC_ERROR);
sk226net/802/llc.cllc_error(sk, EPROTO);
sk241net/802/llc.csend_command(sk, DM|pf);
sk242net/802/llc.csk->llc.p_flag=pf;
sk243net/802/llc.cllc_start_t1(sk);
sk244net/802/llc.cllc_error(sk, EPROTO);
sk245net/802/llc.csk->llc.cause_flag=0;
sk246net/802/llc.cllc_state(sk, LLC_D_CONN):
sk250net/802/llc.cllc_state(sk, LLC_ADM);
sk251net/802/llc.cllc_error(sk, ECONNREFUSED);
sk260net/802/llc.cllc_send_frmr_response(sk, UNEXPECTED_CONTROL, pf);
sk261net/802/llc.cllc_state(sk, LLC_ERROR);
sk262net/802/llc.cllc_error(sk, EPROTO);
sk264net/802/llc.celse if(pf==1 && sk->llc.p_flag==0)
sk266net/802/llc.cllc_send_frmr_response(sk, UNEXPECTED_RESPONSE, pf);
sk267net/802/llc.cllc_state(sk, LLC_ERROR);
sk268net/802/llc.cllc_error(sk, EPROTO);
sk272net/802/llc.cllc_send_frmr_response(sk, ILLEGAL_TYPE,pf);
sk273net/802/llc.cllc_state(sk, LLC_ERROR);
sk274net/802/llc.cllc_error(sk, EPROTO);
sk288net/802/llc.cint llc_rx_normal(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
sk290net/802/llc.cif(llc_rx_nr_shared(sk, skb, type, cmd, pf, nr, ns))
sk294net/802/llc.cif(llc_invalid_ns(sk,ns))
sk296net/802/llc.cif((type==RESP && sk->llc.p_flag==pf)||(type==CMD && pf==0 && sk->llc.p_flag==0))
sk298net/802/llc.cllc_command(sk, REJ|PF);
sk299net/802/llc.cllc_ack_frames(sk,nr);  /* Ack frames and update N(R) */
sk300net/802/llc.csk->llc.p_flag=PF;
sk301net/802/llc.cllc_state(sk, LLC_REJECT);
sk302net/802/llc.csk->llc.retry_count=0;
sk303net/802/llc.cllc_start_t1(sk);
sk304net/802/llc.csk->llc.remote_busy=0;
sk306net/802/llc.celse if((type==CMD && !pf && sk->llc.p_flag==1) || (type==RESP && !pf && sk->llc.p_flag==1))
sk309net/802/llc.cllc_response(sk, REJ);
sk311net/802/llc.cllc_command(sk, REJ);
sk312net/802/llc.cllc_ack_frames(sk,nr);
sk313net/802/llc.csk->llc.retry_count=0;
sk314net/802/llc.cllc_state(sk, LLC_REJECT);
sk315net/802/llc.cllc_start_t1(sk);
sk319net/802/llc.cllc_response(sk, REJ|PF);
sk320net/802/llc.cllc_ack_frames(sk,nr);
sk321net/802/llc.csk->llc.retry_count=0;
sk322net/802/llc.cllc_start_t1(sk);
sk331net/802/llc.cif(sk->llc.p_flag==pf && !(type==CMD && pf))
sk333net/802/llc.csk->llc.vr=(sk->llc.vr+1)&7;
sk334net/802/llc.cllc_queue_rr_cmd(sk, PF);
sk335net/802/llc.csk->llc.retry_count=0;
sk336net/802/llc.cllc_start_t1(sk);
sk337net/802/llc.csk->llc.p_flag=1;
sk338net/802/llc.cllc_ack_frames(sk,nr);
sk339net/802/llc.csk->llc.remote_busy=0;
sk341net/802/llc.celse if(sk->ppc.p_flag!=pf)
sk343net/802/llc.csk->llc.vr=(sk->llc.vr+1)&7;
sk345net/802/llc.cllc_queue_rr_resp(sk, 0);
sk347net/802/llc.cllc_queue_rr_cmd(sk, 0);
sk348net/802/llc.cif(sk->llc.nr!=nr)
sk350net/802/llc.cllc_ack_frames(sk,nr);
sk351net/802/llc.cllc_reset_t1(sk);
sk356net/802/llc.csk->llc.vr=(sk->llc.vr+1)&7;
sk357net/802/llc.cllc_queue_rr_resp(sk,PF);
sk358net/802/llc.cif(sk->llc.nr!=nr)
sk360net/802/llc.cllc_ack_frames(sk,nr);
sk361net/802/llc.cllc_reset_t1(sk);
sk364net/802/llc.cllc_queue_data(sk,skb);
sk370net/802/llc.cif(type==CMD || (type==RESP && (!pf || pf==1 && sk->llc.p_flag==1)))
sk372net/802/llc.cllc_update_p_flag(sk,pf);
sk373net/802/llc.cif(sk->llc.nr!=nr)
sk375net/802/llc.cllc_ack_frames(sk,nr);
sk376net/802/llc.cllc_reset_t1(sk);
sk379net/802/llc.csk->llc.remote_busy=0;
sk381net/802/llc.c{  sk->llc.remote_busy=1;
sk382net/802/llc.cif(!llc_t1_running(sk))
sk383net/802/llc.cllc_start_t1(sk);
sk389net/802/llc.cllc_queue_rr_resp(sk,PF);
sk392net/802/llc.csend_response(sk, RR|PF);
sk393net/802/llc.cif(!llc_t1_running(sk))
sk394net/802/llc.cllc_start_t1(sk);
sk396net/802/llc.cif(sk->llc.nr!=nr)
sk398net/802/llc.cllc_ack_frames(sk,nr);
sk399net/802/llc.cllc_reset_t1(sk);
sk402net/802/llc.csk->llc.remote_busy=0;
sk404net/802/llc.csk->llc.remote_busy=1;
sk41net/802/p8022.cskb->sk = NULL;
sk66net/802/psnap.cskb->sk = NULL;
sk456net/appletalk/aarp.cif(skb->sk==NULL)
sk459net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
sk471net/appletalk/aarp.cif(skb->sk==NULL)
sk474net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
sk553net/appletalk/aarp.cif(skb->sk==NULL)
sk556net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
sk87net/appletalk/ddp.cstatic void atalk_remove_socket(atalk_socket *sk)
sk96net/appletalk/ddp.cif(s==sk)
sk104net/appletalk/ddp.cif(s->next==sk)
sk106net/appletalk/ddp.cs->next=sk->next;
sk115net/appletalk/ddp.cstatic void atalk_insert_socket(atalk_socket *sk)
sk120net/appletalk/ddp.csk->next=atalk_socket_list;
sk121net/appletalk/ddp.catalk_socket_list=sk;
sk180net/appletalk/ddp.cstatic void atalk_destroy_socket(atalk_socket *sk);
sk191net/appletalk/ddp.cstatic void atalk_destroy_socket(atalk_socket *sk)
sk194net/appletalk/ddp.catalk_remove_socket(sk);
sk196net/appletalk/ddp.cwhile((skb=skb_dequeue(&sk->receive_queue))!=NULL)
sk201net/appletalk/ddp.cif(sk->wmem_alloc == 0 && sk->rmem_alloc == 0 && sk->dead)
sk202net/appletalk/ddp.ckfree_s(sk,sizeof(*sk));
sk208net/appletalk/ddp.cinit_timer(&sk->timer);
sk209net/appletalk/ddp.csk->timer.expires=jiffies+10*HZ;
sk210net/appletalk/ddp.csk->timer.function=atalk_destroy_timer;
sk211net/appletalk/ddp.csk->timer.data = (unsigned long)sk;
sk212net/appletalk/ddp.cadd_timer(&sk->timer);
sk948net/appletalk/ddp.catalk_socket *sk;
sk951net/appletalk/ddp.csk=(atalk_socket *)sock->data;
sk972net/appletalk/ddp.creturn sock_setsockopt(sk,level,optname,optval,optlen);
sk987net/appletalk/ddp.catalk_socket *sk;
sk991net/appletalk/ddp.csk=(atalk_socket *)sock->data;
sk1005net/appletalk/ddp.creturn sock_getsockopt(sk,level,optname,optval,optlen);
sk1032net/appletalk/ddp.cstatic void def_callback1(struct sock *sk)
sk1034net/appletalk/ddp.cif(!sk->dead)
sk1035net/appletalk/ddp.cwake_up_interruptible(sk->sleep);
sk1038net/appletalk/ddp.cstatic void def_callback2(struct sock *sk, int len)
sk1040net/appletalk/ddp.cif(!sk->dead)
sk1042net/appletalk/ddp.cwake_up_interruptible(sk->sleep);
sk1043net/appletalk/ddp.csock_wake_async(sk->socket,0);
sk1054net/appletalk/ddp.catalk_socket *sk;
sk1055net/appletalk/ddp.csk=(atalk_socket *)kmalloc(sizeof(*sk),GFP_KERNEL);
sk1056net/appletalk/ddp.cif(sk==NULL)
sk1067net/appletalk/ddp.ckfree_s((void *)sk,sizeof(*sk));
sk1070net/appletalk/ddp.csk->dead=0;
sk1071net/appletalk/ddp.csk->next=NULL;
sk1072net/appletalk/ddp.csk->broadcast=0;
sk1073net/appletalk/ddp.csk->no_check=0;    /* Checksums on by default */
sk1074net/appletalk/ddp.csk->allocation=GFP_KERNEL;
sk1075net/appletalk/ddp.csk->rcvbuf=SK_RMEM_MAX;
sk1076net/appletalk/ddp.csk->sndbuf=SK_WMEM_MAX;
sk1077net/appletalk/ddp.csk->pair=NULL;
sk1078net/appletalk/ddp.csk->wmem_alloc=0;
sk1079net/appletalk/ddp.csk->rmem_alloc=0;
sk1080net/appletalk/ddp.csk->inuse=0;
sk1081net/appletalk/ddp.csk->proc=0;
sk1082net/appletalk/ddp.csk->priority=1;
sk1083net/appletalk/ddp.csk->shutdown=0;
sk1084net/appletalk/ddp.csk->prot=NULL;  /* So we use default free mechanisms */
sk1085net/appletalk/ddp.csk->broadcast=0;
sk1086net/appletalk/ddp.csk->err=0;
sk1087net/appletalk/ddp.cskb_queue_head_init(&sk->receive_queue);
sk1088net/appletalk/ddp.cskb_queue_head_init(&sk->write_queue);
sk1089net/appletalk/ddp.csk->send_head=NULL;
sk1090net/appletalk/ddp.cskb_queue_head_init(&sk->back_log);
sk1091net/appletalk/ddp.csk->state=TCP_CLOSE;
sk1092net/appletalk/ddp.csk->socket=sock;
sk1093net/appletalk/ddp.csk->type=sock->type;
sk1094net/appletalk/ddp.csk->debug=0;
sk1096net/appletalk/ddp.csk->at.src_net=0;
sk1097net/appletalk/ddp.csk->at.src_node=0;
sk1098net/appletalk/ddp.csk->at.src_port=0;
sk1100net/appletalk/ddp.csk->at.dest_net=0;
sk1101net/appletalk/ddp.csk->at.dest_node=0;
sk1102net/appletalk/ddp.csk->at.dest_port=0;
sk1104net/appletalk/ddp.csk->mtu=DDP_MAXSZ;
sk1108net/appletalk/ddp.csock->data=(void *)sk;
sk1109net/appletalk/ddp.csk->sleep=sock->wait;
sk1112net/appletalk/ddp.csk->state_change=def_callback1;
sk1113net/appletalk/ddp.csk->data_ready=def_callback2;
sk1114net/appletalk/ddp.csk->write_space=def_callback1;
sk1115net/appletalk/ddp.csk->error_report=def_callback1;
sk1117net/appletalk/ddp.csk->zapped=1;
sk1136net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sk1137net/appletalk/ddp.cif(sk==NULL)
sk1139net/appletalk/ddp.cif(!sk->dead)
sk1140net/appletalk/ddp.csk->state_change(sk);
sk1141net/appletalk/ddp.csk->dead=1;
sk1143net/appletalk/ddp.catalk_destroy_socket(sk);
sk1161net/appletalk/ddp.cstatic int atalk_autobind(atalk_socket *sk)
sk1169net/appletalk/ddp.csk->at.src_net = sat.sat_addr.s_net = ap->s_net;
sk1170net/appletalk/ddp.csk->at.src_node = sat.sat_addr.s_node = ap->s_node;
sk1174net/appletalk/ddp.csk->at.src_port=n;
sk1175net/appletalk/ddp.catalk_insert_socket(sk);
sk1176net/appletalk/ddp.csk->zapped=0;
sk1186net/appletalk/ddp.catalk_socket *sk;
sk1189net/appletalk/ddp.csk=(atalk_socket *)sock->data;
sk1191net/appletalk/ddp.cif(sk->zapped==0)
sk1205net/appletalk/ddp.csk->at.src_net=addr->sat_addr.s_net=ap->s_net;
sk1206net/appletalk/ddp.csk->at.src_node=addr->sat_addr.s_node=ap->s_node;
sk1213net/appletalk/ddp.csk->at.src_net=addr->sat_addr.s_net;
sk1214net/appletalk/ddp.csk->at.src_node=addr->sat_addr.s_node;
sk1222net/appletalk/ddp.csk->at.src_port=addr->sat_port=n;
sk1225net/appletalk/ddp.csk->at.src_port=addr->sat_port;
sk1230net/appletalk/ddp.catalk_insert_socket(sk);
sk1231net/appletalk/ddp.csk->zapped=0;
sk1242net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sk1245net/appletalk/ddp.csk->state = TCP_CLOSE;  
sk1255net/appletalk/ddp.cif(addr->sat_addr.s_node==ATADDR_BCAST && !sk->broadcast)
sk1258net/appletalk/ddp.cif(sk->zapped)
sk1260net/appletalk/ddp.cif(atalk_autobind(sk)<0)
sk1267net/appletalk/ddp.csk->at.dest_port=addr->sat_port;
sk1268net/appletalk/ddp.csk->at.dest_net=addr->sat_addr.s_net;
sk1269net/appletalk/ddp.csk->at.dest_node=addr->sat_addr.s_node;
sk1271net/appletalk/ddp.csk->state=TCP_ESTABLISHED;
sk1304net/appletalk/ddp.catalk_socket *sk;
sk1306net/appletalk/ddp.csk=(atalk_socket *)sock->data;
sk1307net/appletalk/ddp.cif(sk->zapped)
sk1309net/appletalk/ddp.cif(atalk_autobind(sk)<0)
sk1317net/appletalk/ddp.cif(sk->state!=TCP_ESTABLISHED)
sk1319net/appletalk/ddp.csat.sat_addr.s_net=sk->at.dest_net;
sk1320net/appletalk/ddp.csat.sat_addr.s_node=sk->at.dest_node;
sk1321net/appletalk/ddp.csat.sat_port=sk->at.dest_port;
sk1325net/appletalk/ddp.csat.sat_addr.s_net=sk->at.src_net;
sk1326net/appletalk/ddp.csat.sat_addr.s_node=sk->at.src_node;
sk1327net/appletalk/ddp.csat.sat_port=sk->at.src_port;
sk1461net/appletalk/ddp.cskb->sk = sock;
sk1465net/appletalk/ddp.cskb->sk=NULL;
sk1473net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sk1492net/appletalk/ddp.cif(sk->zapped)
sk1495net/appletalk/ddp.cif(atalk_autobind(sk)<0)
sk1504net/appletalk/ddp.cif(usat->sat_addr.s_node==ATADDR_BCAST && !sk->broadcast)
sk1510net/appletalk/ddp.cif(sk->state!=TCP_ESTABLISHED)
sk1514net/appletalk/ddp.cusat->sat_port=sk->at.dest_port;
sk1515net/appletalk/ddp.cusat->sat_addr.s_node=sk->at.dest_node;
sk1516net/appletalk/ddp.cusat->sat_addr.s_net=sk->at.dest_net;
sk1521net/appletalk/ddp.cif(sk->debug)
sk1522net/appletalk/ddp.cprintk("SK %p: Got address.\n",sk);
sk1537net/appletalk/ddp.cat_hint.s_net=sk->at.src_net;
sk1544net/appletalk/ddp.cif(sk->debug)
sk1545net/appletalk/ddp.cprintk("SK %p: Size needed %d, device %s\n", sk, size, dev->name);
sk1549net/appletalk/ddp.cskb = sock_alloc_send_skb(sk, size, 0, 0 , &err);
sk1553net/appletalk/ddp.cskb->sk=sk;
sk1561net/appletalk/ddp.cif(sk->debug)
sk1562net/appletalk/ddp.cprintk("SK %p: Begin build.\n", sk);
sk1576net/appletalk/ddp.cddp->deh_snet=sk->at.src_net;
sk1578net/appletalk/ddp.cddp->deh_snode=sk->at.src_node;
sk1580net/appletalk/ddp.cddp->deh_sport=sk->at.src_port;
sk1582net/appletalk/ddp.cif(sk->debug)
sk1583net/appletalk/ddp.cprintk("SK %p: Copy user data (%d bytes).\n", sk, len);
sk1587net/appletalk/ddp.cif(sk->no_check==1)
sk1605net/appletalk/ddp.cif(sk->debug)
sk1606net/appletalk/ddp.cprintk("SK %p: send out(copy).\n", sk);
sk1616net/appletalk/ddp.cif(sk->debug)
sk1617net/appletalk/ddp.cprintk("SK %p: Loop back.\n", sk);
sk1619net/appletalk/ddp.csk->wmem_alloc-=skb->truesize;
sk1621net/appletalk/ddp.cskb->sk = NULL;
sk1630net/appletalk/ddp.cif(sk->debug)
sk1631net/appletalk/ddp.cprintk("SK %p: send out.\n", sk);
sk1642net/appletalk/ddp.cif(sk->debug)
sk1643net/appletalk/ddp.cprintk("SK %p: Done write (%d).\n", sk, len);
sk1671net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sk1678net/appletalk/ddp.cif(sk->err)
sk1680net/appletalk/ddp.cer= -sk->err;
sk1681net/appletalk/ddp.csk->err=0;
sk1688net/appletalk/ddp.cskb=skb_recv_datagram(sk,flags,noblock,&er);
sk1693net/appletalk/ddp.cif(sk->type==SOCK_RAW)
sk1745net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sk1746net/appletalk/ddp.cif(sk->zapped)
sk1757net/appletalk/ddp.cstatic int atalk_shutdown(struct socket *sk,int how)
sk1764net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sk1766net/appletalk/ddp.creturn datagram_select(sk,sel_type,wait);
sk1777net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sk1785net/appletalk/ddp.camount=sk->sndbuf-sk->wmem_alloc;
sk1793net/appletalk/ddp.cif((skb=skb_peek(&sk->receive_queue))!=NULL)
sk1798net/appletalk/ddp.cif (sk)
sk1800net/appletalk/ddp.cif(sk->stamp.tv_sec==0)
sk1805net/appletalk/ddp.cmemcpy_tofs((void *)arg,&sk->stamp,sizeof(struct timeval));
sk210net/ax25/af_ax25.cif (s->sk != NULL) {
sk211net/ax25/af_ax25.cs->sk->state = TCP_CLOSE;
sk212net/ax25/af_ax25.cs->sk->err   = ENETUNREACH;
sk213net/ax25/af_ax25.cif (!s->sk->dead)
sk214net/ax25/af_ax25.cs->sk->state_change(s->sk);
sk215net/ax25/af_ax25.cs->sk->dead  = 1;
sk273net/ax25/af_ax25.cif (s->sk != NULL && ax25cmp(&s->source_addr, addr) == 0 && s->sk->type == type && s->sk->state == TCP_LISTEN) {
sk277net/ax25/af_ax25.creturn s->sk;
sk298net/ax25/af_ax25.cif (s->sk != NULL && ax25cmp(&s->source_addr, my_addr) == 0 && ax25cmp(&s->dest_addr, dest_addr) == 0 && s->sk->type == type) {
sk300net/ax25/af_ax25.creturn s->sk;
sk322net/ax25/af_ax25.cif (s->sk != NULL && s->sk->type != SOCK_SEQPACKET)
sk347net/ax25/af_ax25.cif (s->sk != NULL && ax25cmp(&s->source_addr, addr) == 0 && s->sk->type == SOCK_RAW) {
sk349net/ax25/af_ax25.creturn s->sk;
sk358net/ax25/af_ax25.cstatic void ax25_send_to_raw(struct sock *sk, struct sk_buff *skb, int proto)
sk362net/ax25/af_ax25.cwhile (sk != NULL) {
sk363net/ax25/af_ax25.cif (sk->type == SOCK_RAW && sk->protocol == proto && sk->rmem_alloc <= sk->rcvbuf) {
sk367net/ax25/af_ax25.ccopy->sk = sk;
sk368net/ax25/af_ax25.csk->rmem_alloc += copy->truesize;
sk369net/ax25/af_ax25.cskb_queue_tail(&sk->receive_queue, copy);
sk370net/ax25/af_ax25.cif (!sk->dead)
sk371net/ax25/af_ax25.csk->data_ready(sk, skb->len);
sk374net/ax25/af_ax25.csk = sk->next;
sk410net/ax25/af_ax25.cif (ax25->sk != NULL) {
sk411net/ax25/af_ax25.cwhile ((skb = skb_dequeue(&ax25->sk->receive_queue)) != NULL) {
sk412net/ax25/af_ax25.cif (skb->sk != ax25->sk) {      /* A pending connection */
sk413net/ax25/af_ax25.cskb->sk->dead = 1;  /* Queue the unaccepted socket for death */
sk414net/ax25/af_ax25.cax25_set_timer(skb->sk->ax25);
sk415net/ax25/af_ax25.cskb->sk->ax25->state = AX25_STATE_0;
sk427net/ax25/af_ax25.cif (ax25->sk != NULL) {
sk428net/ax25/af_ax25.cif (ax25->sk->wmem_alloc || ax25->sk->rmem_alloc) { /* Defer: outstanding buffers */
sk435net/ax25/af_ax25.ckfree_s(ax25->sk, sizeof(*ax25->sk));
sk558net/ax25/af_ax25.cax25->sk       = NULL;
sk605net/ax25/af_ax25.cif (ax25->sk != NULL && ax25->sk->type != SOCK_SEQPACKET)
sk692net/ax25/af_ax25.cstruct sock *sk;
sk695net/ax25/af_ax25.csk = (struct sock *)sock->data;
sk698net/ax25/af_ax25.creturn sock_setsockopt(sk, level, optname, optval, optlen);
sk713net/ax25/af_ax25.cif (sk->ax25->modulus == MODULUS) {
sk720net/ax25/af_ax25.csk->ax25->window = opt;
sk726net/ax25/af_ax25.csk->ax25->rtt = (opt * PR_SLOWHZ) / 2;
sk732net/ax25/af_ax25.csk->ax25->t2 = opt * PR_SLOWHZ;
sk738net/ax25/af_ax25.csk->ax25->n2 = opt;
sk744net/ax25/af_ax25.csk->ax25->t3 = opt * PR_SLOWHZ;
sk748net/ax25/af_ax25.csk->ax25->backoff = opt ? 1 : 0;
sk752net/ax25/af_ax25.csk->ax25->modulus = opt ? EMODULUS : MODULUS;
sk756net/ax25/af_ax25.csk->ax25->hdrincl = opt ? 1 : 0;
sk767net/ax25/af_ax25.cstruct sock *sk;
sk771net/ax25/af_ax25.csk = (struct sock *)sock->data;
sk774net/ax25/af_ax25.creturn sock_getsockopt(sk, level, optname, optval, optlen);
sk781net/ax25/af_ax25.cval = sk->ax25->window;
sk785net/ax25/af_ax25.cval = (sk->ax25->t1 * 2) / PR_SLOWHZ;
sk789net/ax25/af_ax25.cval = sk->ax25->t2 / PR_SLOWHZ;
sk793net/ax25/af_ax25.cval = sk->ax25->n2;
sk797net/ax25/af_ax25.cval = sk->ax25->t3 / PR_SLOWHZ;
sk801net/ax25/af_ax25.cval = sk->ax25->backoff;
sk805net/ax25/af_ax25.cval = (sk->ax25->modulus == EMODULUS);
sk809net/ax25/af_ax25.cval = sk->ax25->hdrincl;
sk831net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sk833net/ax25/af_ax25.cif (sk->type == SOCK_SEQPACKET && sk->state != TCP_LISTEN) {
sk834net/ax25/af_ax25.csk->max_ack_backlog = backlog;
sk835net/ax25/af_ax25.csk->state           = TCP_LISTEN;
sk842net/ax25/af_ax25.cstatic void def_callback1(struct sock *sk)
sk844net/ax25/af_ax25.cif (!sk->dead)
sk845net/ax25/af_ax25.cwake_up_interruptible(sk->sleep);
sk848net/ax25/af_ax25.cstatic void def_callback2(struct sock *sk, int len)
sk850net/ax25/af_ax25.cif (!sk->dead)
sk851net/ax25/af_ax25.cwake_up_interruptible(sk->sleep);
sk856net/ax25/af_ax25.cstruct sock *sk;
sk889net/ax25/af_ax25.cif ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL)
sk893net/ax25/af_ax25.ckfree_s(sk, sizeof(*sk));
sk897net/ax25/af_ax25.cskb_queue_head_init(&sk->receive_queue);
sk898net/ax25/af_ax25.cskb_queue_head_init(&sk->write_queue);
sk899net/ax25/af_ax25.cskb_queue_head_init(&sk->back_log);
sk901net/ax25/af_ax25.csk->socket        = sock;
sk902net/ax25/af_ax25.csk->type          = sock->type;
sk903net/ax25/af_ax25.csk->protocol      = protocol;
sk904net/ax25/af_ax25.csk->dead          = 0;
sk905net/ax25/af_ax25.csk->next          = NULL;
sk906net/ax25/af_ax25.csk->broadcast     = 0;
sk907net/ax25/af_ax25.csk->allocation    = GFP_KERNEL;
sk908net/ax25/af_ax25.csk->rcvbuf        = SK_RMEM_MAX;
sk909net/ax25/af_ax25.csk->sndbuf        = SK_WMEM_MAX;
sk910net/ax25/af_ax25.csk->wmem_alloc    = 0;
sk911net/ax25/af_ax25.csk->rmem_alloc    = 0;
sk912net/ax25/af_ax25.csk->inuse         = 0;
sk913net/ax25/af_ax25.csk->debug         = 0;
sk914net/ax25/af_ax25.csk->destroy       = 0;
sk915net/ax25/af_ax25.csk->prot          = NULL;  /* So we use default free mechanisms */
sk916net/ax25/af_ax25.csk->err           = 0;
sk917net/ax25/af_ax25.csk->localroute    = 0;
sk918net/ax25/af_ax25.csk->send_head     = NULL;
sk919net/ax25/af_ax25.csk->state         = TCP_CLOSE;
sk920net/ax25/af_ax25.csk->shutdown      = 0;
sk921net/ax25/af_ax25.csk->priority      = SOPRI_NORMAL;
sk922net/ax25/af_ax25.csk->ack_backlog   = 0;
sk923net/ax25/af_ax25.csk->mtu           = AX25_MTU;  /* 256 */
sk924net/ax25/af_ax25.csk->zapped        = 1;
sk926net/ax25/af_ax25.csk->state_change = def_callback1;
sk927net/ax25/af_ax25.csk->data_ready   = def_callback2;
sk928net/ax25/af_ax25.csk->write_space  = def_callback1;
sk929net/ax25/af_ax25.csk->error_report = def_callback1;
sk932net/ax25/af_ax25.csock->data = (void *)sk;
sk933net/ax25/af_ax25.csk->sleep  = sock->wait;
sk936net/ax25/af_ax25.cax25->sk = sk;
sk937net/ax25/af_ax25.csk->ax25 = ax25;
sk944net/ax25/af_ax25.cstruct sock *sk;
sk947net/ax25/af_ax25.cif ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL)
sk951net/ax25/af_ax25.ckfree_s(sk, sizeof(*sk));
sk957net/ax25/af_ax25.csk->type   = osk->type;
sk958net/ax25/af_ax25.csk->socket = osk->socket;
sk967net/ax25/af_ax25.ckfree_s((void *)sk, sizeof(*sk));
sk972net/ax25/af_ax25.cskb_queue_head_init(&sk->receive_queue);
sk973net/ax25/af_ax25.cskb_queue_head_init(&sk->write_queue);
sk974net/ax25/af_ax25.cskb_queue_head_init(&sk->back_log);
sk976net/ax25/af_ax25.csk->dead        = 0;
sk977net/ax25/af_ax25.csk->next        = NULL;
sk978net/ax25/af_ax25.csk->priority    = osk->priority;
sk979net/ax25/af_ax25.csk->broadcast   = 0;
sk980net/ax25/af_ax25.csk->protocol    = osk->protocol;
sk981net/ax25/af_ax25.csk->rcvbuf      = osk->rcvbuf;
sk982net/ax25/af_ax25.csk->sndbuf      = osk->sndbuf;
sk983net/ax25/af_ax25.csk->wmem_alloc  = 0;
sk984net/ax25/af_ax25.csk->rmem_alloc  = 0;
sk985net/ax25/af_ax25.csk->inuse       = 0;
sk986net/ax25/af_ax25.csk->ack_backlog = 0;
sk987net/ax25/af_ax25.csk->destroy     = 0;
sk988net/ax25/af_ax25.csk->prot        = NULL;  /* So we use default free mechanisms */
sk989net/ax25/af_ax25.csk->err         = 0;
sk990net/ax25/af_ax25.csk->localroute  = 0;
sk991net/ax25/af_ax25.csk->send_head   = NULL;
sk992net/ax25/af_ax25.csk->debug       = osk->debug;
sk993net/ax25/af_ax25.csk->state       = TCP_ESTABLISHED;
sk994net/ax25/af_ax25.csk->window      = osk->window;
sk995net/ax25/af_ax25.csk->shutdown    = 0;
sk996net/ax25/af_ax25.csk->mtu         = osk->mtu;
sk997net/ax25/af_ax25.csk->sleep       = osk->sleep;
sk998net/ax25/af_ax25.csk->zapped      = osk->zapped;
sk1000net/ax25/af_ax25.csk->state_change = def_callback1;
sk1001net/ax25/af_ax25.csk->data_ready   = def_callback2;
sk1002net/ax25/af_ax25.csk->write_space  = def_callback1;
sk1003net/ax25/af_ax25.csk->error_report = def_callback1;
sk1020net/ax25/af_ax25.ckfree_s(sk, sizeof(*sk));
sk1026net/ax25/af_ax25.csk->ax25 = ax25;
sk1027net/ax25/af_ax25.cax25->sk = sk;
sk1029net/ax25/af_ax25.creturn sk;
sk1034net/ax25/af_ax25.cstruct sock *sk = (struct sock *)oldsock->data;
sk1036net/ax25/af_ax25.creturn ax25_create(newsock, sk->protocol);
sk1041net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sk1043net/ax25/af_ax25.cif (sk == NULL) return 0;
sk1045net/ax25/af_ax25.cif (sk->type == SOCK_SEQPACKET) {
sk1046net/ax25/af_ax25.cswitch (sk->ax25->state) {
sk1048net/ax25/af_ax25.csk->state       = TCP_CLOSE;
sk1049net/ax25/af_ax25.csk->state_change(sk);
sk1050net/ax25/af_ax25.csk->dead        = 1;
sk1051net/ax25/af_ax25.cax25_destroy_socket(sk->ax25);
sk1055net/ax25/af_ax25.cax25_send_control(sk->ax25, DISC, POLLON, C_COMMAND);
sk1056net/ax25/af_ax25.csk->ax25->state = AX25_STATE_0;
sk1057net/ax25/af_ax25.csk->state       = TCP_CLOSE;
sk1058net/ax25/af_ax25.csk->state_change(sk);
sk1059net/ax25/af_ax25.csk->dead        = 1;
sk1060net/ax25/af_ax25.cax25_destroy_socket(sk->ax25);
sk1064net/ax25/af_ax25.cax25_send_control(sk->ax25, DM, POLLON, C_RESPONSE);
sk1065net/ax25/af_ax25.csk->ax25->state = AX25_STATE_0;
sk1066net/ax25/af_ax25.csk->state       = TCP_CLOSE;
sk1067net/ax25/af_ax25.csk->state_change(sk);
sk1068net/ax25/af_ax25.csk->dead        = 1;
sk1069net/ax25/af_ax25.cax25_destroy_socket(sk->ax25);
sk1074net/ax25/af_ax25.cax25_clear_queues(sk->ax25);
sk1075net/ax25/af_ax25.csk->ax25->n2count = 0;
sk1076net/ax25/af_ax25.cax25_send_control(sk->ax25, DISC, POLLON, C_COMMAND);
sk1077net/ax25/af_ax25.csk->ax25->t3timer = 0;
sk1078net/ax25/af_ax25.csk->ax25->t1timer = sk->ax25->t1 = ax25_calculate_t1(sk->ax25);
sk1079net/ax25/af_ax25.csk->ax25->state   = AX25_STATE_2;
sk1080net/ax25/af_ax25.csk->state         = TCP_CLOSE;
sk1081net/ax25/af_ax25.csk->state_change(sk);
sk1082net/ax25/af_ax25.csk->dead          = 1;
sk1083net/ax25/af_ax25.csk->destroy       = 1;
sk1090net/ax25/af_ax25.csk->state       = TCP_CLOSE;
sk1091net/ax25/af_ax25.csk->state_change(sk);
sk1092net/ax25/af_ax25.csk->dead = 1;
sk1093net/ax25/af_ax25.cax25_destroy_socket(sk->ax25);
sk1097net/ax25/af_ax25.csk->socket = NULL;  /* Not used, but we should do this. **/
sk1110net/ax25/af_ax25.cstruct sock *sk;
sk1115net/ax25/af_ax25.csk = (struct sock *)sock->data;
sk1117net/ax25/af_ax25.cif (sk->zapped == 0)
sk1124net/ax25/af_ax25.cif (ax25_find_socket(&addr->fsa_ax25.sax25_call, sk->type) != NULL) {
sk1125net/ax25/af_ax25.cif (sk->debug)
sk1136net/ax25/af_ax25.cmemcpy(&sk->ax25->source_addr, &addr->fsa_ax25.sax25_call, sizeof(ax25_address));
sk1138net/ax25/af_ax25.cmemcpy(&sk->ax25->source_addr, call, sizeof(ax25_address));
sk1149net/ax25/af_ax25.cif (sk->debug)
sk1154net/ax25/af_ax25.cax25_fillin_cb(sk->ax25, dev);
sk1155net/ax25/af_ax25.cax25_insert_socket(sk->ax25);
sk1157net/ax25/af_ax25.csk->zapped = 0;
sk1159net/ax25/af_ax25.cif (sk->debug)
sk1168net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sk1172net/ax25/af_ax25.cif (sk->state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) {
sk1177net/ax25/af_ax25.cif (sk->state == TCP_CLOSE && sock->state == SS_CONNECTING) {
sk1182net/ax25/af_ax25.cif (sk->state == TCP_ESTABLISHED && sk->type == SOCK_SEQPACKET)
sk1185net/ax25/af_ax25.csk->state   = TCP_CLOSE;  
sk1198net/ax25/af_ax25.cif (sk->ax25->digipeat == NULL) {
sk1199net/ax25/af_ax25.cif ((sk->ax25->digipeat = (ax25_digi *)kmalloc(sizeof(ax25_digi), GFP_KERNEL)) == NULL)
sk1203net/ax25/af_ax25.csk->ax25->digipeat->ndigi = addr->sax25_ndigis;
sk1206net/ax25/af_ax25.csk->ax25->digipeat->repeated[ct] = 0;
sk1207net/ax25/af_ax25.cmemcpy(&sk->ax25->digipeat->calls[ct], &fsa->fsa_digipeater[ct], sizeof(ax25_address));
sk1211net/ax25/af_ax25.csk->ax25->digipeat->lastrepeat = 0;
sk1214net/ax25/af_ax25.cif (sk->zapped) {  /* Must bind first - autobinding in this may or may not work */
sk1215net/ax25/af_ax25.cif ((err = ax25_rt_autobind(sk->ax25, &addr->sax25_call)) < 0)
sk1217net/ax25/af_ax25.cax25_insert_socket(sk->ax25);    /* Finish the bind */
sk1220net/ax25/af_ax25.cif (sk->type == SOCK_SEQPACKET && ax25_find_cb(&sk->ax25->source_addr, &addr->sax25_call, sk->ax25->device) != NULL)
sk1223net/ax25/af_ax25.cmemcpy(&sk->ax25->dest_addr, &addr->sax25_call, sizeof(ax25_address));
sk1226net/ax25/af_ax25.cif (sk->type != SOCK_SEQPACKET) {
sk1228net/ax25/af_ax25.csk->state   = TCP_ESTABLISHED;
sk1234net/ax25/af_ax25.csk->state          = TCP_SYN_SENT;
sk1235net/ax25/af_ax25.cax25_establish_data_link(sk->ax25);
sk1236net/ax25/af_ax25.csk->ax25->state     = AX25_STATE_1;
sk1237net/ax25/af_ax25.cax25_set_timer(sk->ax25);    /* Start going SABM SABM until a UA or a give up and DM */
sk1240net/ax25/af_ax25.cif (sk->state != TCP_ESTABLISHED && (flags & O_NONBLOCK))
sk1246net/ax25/af_ax25.cwhile (sk->state == TCP_SYN_SENT) {
sk1247net/ax25/af_ax25.cinterruptible_sleep_on(sk->sleep);
sk1254net/ax25/af_ax25.cif (sk->state != TCP_ESTABLISHED) {  /* Not in ABM, not in WAIT_UA -> failed */
sk1257net/ax25/af_ax25.creturn -sk->err;  /* Always set at this point */
sk1274net/ax25/af_ax25.cstruct sock *sk;
sk1283net/ax25/af_ax25.csk = (struct sock *)sock->data;
sk1285net/ax25/af_ax25.cif (sk->type != SOCK_SEQPACKET)
sk1288net/ax25/af_ax25.cif (sk->state != TCP_LISTEN)
sk1295net/ax25/af_ax25.cif ((skb = skb_dequeue(&sk->receive_queue)) == NULL) {
sk1300net/ax25/af_ax25.cinterruptible_sleep_on(sk->sleep);
sk1308net/ax25/af_ax25.cnewsk = skb->sk;
sk1313net/ax25/af_ax25.cskb->sk = NULL;
sk1315net/ax25/af_ax25.csk->ack_backlog--;
sk1326net/ax25/af_ax25.cstruct sock *sk;
sk1329net/ax25/af_ax25.csk = (struct sock *)sock->data;
sk1332net/ax25/af_ax25.cif (sk->state != TCP_ESTABLISHED)
sk1334net/ax25/af_ax25.caddr = &sk->ax25->dest_addr;
sk1336net/ax25/af_ax25.caddr = &sk->ax25->source_addr;
sk1345net/ax25/af_ax25.cif (sk->ax25->digipeat != NULL) {
sk1346net/ax25/af_ax25.cndigi = sk->ax25->digipeat->ndigi;
sk1350net/ax25/af_ax25.cmemcpy(&sax->fsa_digipeater[i], &sk->ax25->digipeat->calls[i], sizeof(ax25_address));
sk1359net/ax25/af_ax25.cstruct sock *sk;
sk1465net/ax25/af_ax25.cif ((sk = ax25_find_socket(&dest, &src, SOCK_DGRAM)) != NULL) {
sk1466net/ax25/af_ax25.cif (sk->rmem_alloc >= sk->rcvbuf) {
sk1473net/ax25/af_ax25.cskb_queue_tail(&sk->receive_queue, skb);
sk1474net/ax25/af_ax25.cskb->sk = sk;
sk1475net/ax25/af_ax25.csk->rmem_alloc += skb->truesize;
sk1476net/ax25/af_ax25.cif (!sk->dead)
sk1477net/ax25/af_ax25.csk->data_ready(sk, skb->len);
sk1527net/ax25/af_ax25.cif ((sk = ax25_find_listener(&dest, dev, SOCK_SEQPACKET)) != NULL) {
sk1528net/ax25/af_ax25.cif (sk->ack_backlog == sk->max_ack_backlog || (make = ax25_make_new(sk, dev)) == NULL) {
sk1538net/ax25/af_ax25.cskb_queue_head(&sk->receive_queue, skb);
sk1540net/ax25/af_ax25.cskb->sk     = make;
sk1542net/ax25/af_ax25.cmake->pair  = sk;
sk1544net/ax25/af_ax25.csk->ack_backlog++;
sk1609net/ax25/af_ax25.cif (sk != NULL) {
sk1610net/ax25/af_ax25.cif (!sk->dead)
sk1611net/ax25/af_ax25.csk->data_ready(sk, skb->len );
sk1624net/ax25/af_ax25.cskb->sk = NULL;    /* Initially we don't know who its for */
sk1644net/ax25/af_ax25.cskb->sk = NULL;    /* Initially we don't know who its for */
sk1661net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sk1673net/ax25/af_ax25.cif (sk->err) {
sk1675net/ax25/af_ax25.cerr     = sk->err;
sk1676net/ax25/af_ax25.csk->err = 0;
sk1684net/ax25/af_ax25.cif (sk->zapped)
sk1687net/ax25/af_ax25.cif (sk->ax25->device == NULL)
sk1715net/ax25/af_ax25.cif (sk->type == SOCK_SEQPACKET && memcmp(&sk->ax25->dest_addr, &sax.sax25_call, sizeof(ax25_address)) != 0)
sk1722net/ax25/af_ax25.cif (sk->state != TCP_ESTABLISHED)
sk1725net/ax25/af_ax25.cmemcpy(&sax.sax25_call, &sk->ax25->dest_addr, sizeof(ax25_address));
sk1726net/ax25/af_ax25.cdp = sk->ax25->digipeat;
sk1729net/ax25/af_ax25.cif (sk->debug)
sk1733net/ax25/af_ax25.cif (sk->debug)
sk1739net/ax25/af_ax25.cif ((skb = sock_alloc_send_skb(sk, size, 0, 0, &err)) == NULL)
sk1742net/ax25/af_ax25.cskb->sk   = sk;
sk1748net/ax25/af_ax25.cif (sk->debug)
sk1756net/ax25/af_ax25.c*asmptr = sk->protocol;
sk1758net/ax25/af_ax25.cif (sk->debug)
sk1761net/ax25/af_ax25.cif (sk->type == SOCK_SEQPACKET) {
sk1763net/ax25/af_ax25.cif (sk->state != TCP_ESTABLISHED) {
sk1768net/ax25/af_ax25.cax25_output(sk->ax25, skb);  /* Shove it onto the queue and kick */
sk1774net/ax25/af_ax25.cif (sk->debug) {
sk1781net/ax25/af_ax25.casmptr += (lv = build_ax25_addr(asmptr, &sk->ax25->source_addr, &sax.sax25_call, dp, C_COMMAND, MODULUS));
sk1783net/ax25/af_ax25.cif (sk->debug)
sk1788net/ax25/af_ax25.cif (sk->debug)
sk1794net/ax25/af_ax25.cax25_queue_xmit(skb, sk->ax25->device, SOPRI_NORMAL);
sk1831net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sk1837net/ax25/af_ax25.cif (sk->err) {
sk1839net/ax25/af_ax25.cer      = -sk->err;
sk1840net/ax25/af_ax25.csk->err = 0;
sk1852net/ax25/af_ax25.cif (sk->type == SOCK_SEQPACKET && sk->state != TCP_ESTABLISHED)
sk1856net/ax25/af_ax25.cif ((skb = skb_recv_datagram(sk, flags, noblock, &er)) == NULL)
sk1859net/ax25/af_ax25.cif (sk->ax25->hdrincl) {
sk1862net/ax25/af_ax25.cif (sk->type == SOCK_SEQPACKET)
sk1932net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sk1934net/ax25/af_ax25.cif (sk->zapped)
sk1945net/ax25/af_ax25.cstatic int ax25_shutdown(struct socket *sk, int how)
sk1953net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sk1955net/ax25/af_ax25.creturn datagram_select(sk, sel_type, wait);
sk1960net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sk1968net/ax25/af_ax25.camount = sk->sndbuf - sk->wmem_alloc;
sk1978net/ax25/af_ax25.cif ((skb = skb_peek(&sk->receive_queue)) != NULL)
sk1987net/ax25/af_ax25.cif (sk != NULL) {
sk1988net/ax25/af_ax25.cif (sk->stamp.tv_sec==0)
sk1992net/ax25/af_ax25.cmemcpy_tofs((void *)arg, &sk->stamp, sizeof(struct timeval));
sk2084net/ax25/af_ax25.cif (ax25->sk != NULL) {
sk2086net/ax25/af_ax25.cax25->sk->wmem_alloc,
sk2087net/ax25/af_ax25.cax25->sk->rmem_alloc);
sk84net/ax25/ax25_in.cif (ax25->sk != NULL) {
sk85net/ax25/ax25_in.cskbn->sk = ax25->sk;
sk86net/ax25/ax25_in.cax25->sk->rmem_alloc += skbn->truesize;
sk159net/ax25/ax25_in.cif (ax25->sk != NULL && ax25_dev_get_value(ax25->device, AX25_VALUES_TEXT) && ax25->sk->protocol == pid) {
sk160net/ax25/ax25_in.cif (sock_queue_rcv_skb(ax25->sk, skb) == 0) {
sk206net/ax25/ax25_in.cif (ax25->sk != NULL) {
sk207net/ax25/ax25_in.cax25->sk->state = TCP_ESTABLISHED;
sk209net/ax25/ax25_in.cif (!ax25->sk->dead)
sk210net/ax25/ax25_in.cax25->sk->state_change(ax25->sk);
sk220net/ax25/ax25_in.cif (ax25->sk != NULL) {
sk221net/ax25/ax25_in.cax25->sk->state = TCP_CLOSE;
sk222net/ax25/ax25_in.cax25->sk->err   = ECONNREFUSED;
sk223net/ax25/ax25_in.cif (!ax25->sk->dead)
sk224net/ax25/ax25_in.cax25->sk->state_change(ax25->sk);
sk225net/ax25/ax25_in.cax25->sk->dead  = 1;
sk261net/ax25/ax25_in.cif (ax25->sk != NULL) {
sk262net/ax25/ax25_in.cax25->sk->state = TCP_CLOSE;
sk263net/ax25/ax25_in.cax25->sk->err   = 0;
sk264net/ax25/ax25_in.cif (!ax25->sk->dead)
sk265net/ax25/ax25_in.cax25->sk->state_change(ax25->sk);
sk266net/ax25/ax25_in.cax25->sk->dead  = 1;
sk274net/ax25/ax25_in.cif (ax25->sk != NULL) {
sk275net/ax25/ax25_in.cax25->sk->state = TCP_CLOSE;
sk276net/ax25/ax25_in.cax25->sk->err   = 0;
sk277net/ax25/ax25_in.cif (!ax25->sk->dead)
sk278net/ax25/ax25_in.cax25->sk->state_change(ax25->sk);
sk279net/ax25/ax25_in.cax25->sk->dead  = 1;
sk338net/ax25/ax25_in.cif (ax25->sk != NULL) {
sk339net/ax25/ax25_in.cax25->sk->state = TCP_CLOSE;
sk340net/ax25/ax25_in.cax25->sk->err   = 0;
sk341net/ax25/ax25_in.cif (!ax25->sk->dead)
sk342net/ax25/ax25_in.cax25->sk->state_change(ax25->sk);
sk343net/ax25/ax25_in.cax25->sk->dead  = 1;
sk351net/ax25/ax25_in.cif (ax25->sk) {
sk352net/ax25/ax25_in.cax25->sk->state = TCP_CLOSE;
sk353net/ax25/ax25_in.cax25->sk->err   = ECONNRESET;
sk354net/ax25/ax25_in.cif (!ax25->sk->dead)
sk355net/ax25/ax25_in.cax25->sk->state_change(ax25->sk);
sk356net/ax25/ax25_in.cax25->sk->dead         = 1;
sk499net/ax25/ax25_in.cif (ax25->sk != NULL) {
sk500net/ax25/ax25_in.cax25->sk->state = TCP_CLOSE;
sk501net/ax25/ax25_in.cax25->sk->err   = 0;
sk502net/ax25/ax25_in.cif (!ax25->sk->dead)
sk503net/ax25/ax25_in.cax25->sk->state_change(ax25->sk);
sk504net/ax25/ax25_in.cax25->sk->dead  = 1;
sk512net/ax25/ax25_in.cif (ax25->sk != NULL) {
sk513net/ax25/ax25_in.cax25->sk->state = TCP_CLOSE;
sk514net/ax25/ax25_in.cax25->sk->err   = ECONNRESET;
sk515net/ax25/ax25_in.cif (!ax25->sk->dead)
sk516net/ax25/ax25_in.cax25->sk->state_change(ax25->sk);
sk517net/ax25/ax25_in.cax25->sk->dead  = 1;
sk671net/ax25/ax25_in.cif (ax25->sk != NULL && ax25->state == AX25_STATE_0 && ax25->sk->dead)
sk73net/ax25/ax25_out.cif (skb->sk != NULL) {
sk74net/ax25/ax25_out.cif ((skbn = sock_alloc_send_skb(skb->sk, mtu + 2 + frontlen, 0, 0, &err)) == NULL)
sk81net/ax25/ax25_out.cskbn->sk   = skb->sk;
sk217net/ax25/ax25_out.cif (ax25->sk != NULL) {
sk218net/ax25/ax25_out.cax25->sk->state = TCP_CLOSE;
sk219net/ax25/ax25_out.cax25->sk->err   = ENETUNREACH;
sk220net/ax25/ax25_out.cif (!ax25->sk->dead)
sk221net/ax25/ax25_out.cax25->sk->state_change(ax25->sk);
sk222net/ax25/ax25_out.cax25->sk->dead  = 1;
sk387net/ax25/ax25_route.cif (ax25->sk != NULL)
sk388net/ax25/ax25_route.cax25->sk->zapped = 0;
sk209net/ax25/ax25_subr.cif (ax25->sk != NULL) {
sk210net/ax25/ax25_subr.cskb->sk = ax25->sk;
sk211net/ax25/ax25_subr.cax25->sk->wmem_alloc += skb->truesize;
sk261net/ax25/ax25_subr.cskb->sk = NULL;
sk99net/ax25/ax25_timer.cif (ax25->sk == NULL || ax25->sk->destroy || (ax25->sk->state == TCP_LISTEN && ax25->sk->dead)) {
sk111net/ax25/ax25_timer.cif (ax25->sk != NULL) {
sk112net/ax25/ax25_timer.cif (ax25->sk->rmem_alloc < (ax25->sk->rcvbuf / 2) && (ax25->condition & OWN_RX_BUSY_CONDITION)) {
sk161net/ax25/ax25_timer.cif (ax25->sk != NULL) {
sk162net/ax25/ax25_timer.cax25->sk->state = TCP_CLOSE;
sk163net/ax25/ax25_timer.cax25->sk->err   = ETIMEDOUT;
sk164net/ax25/ax25_timer.cif (!ax25->sk->dead)
sk165net/ax25/ax25_timer.cax25->sk->state_change(ax25->sk);
sk166net/ax25/ax25_timer.cax25->sk->dead  = 1;
sk191net/ax25/ax25_timer.cif (ax25->sk != NULL) {
sk192net/ax25/ax25_timer.cax25->sk->state = TCP_CLOSE;
sk193net/ax25/ax25_timer.cax25->sk->err   = ETIMEDOUT;
sk194net/ax25/ax25_timer.cif (!ax25->sk->dead)
sk195net/ax25/ax25_timer.cax25->sk->state_change(ax25->sk);
sk196net/ax25/ax25_timer.cax25->sk->dead  = 1;
sk218net/ax25/ax25_timer.cif (ax25->sk != NULL) {
sk219net/ax25/ax25_timer.cax25->sk->state = TCP_CLOSE;
sk220net/ax25/ax25_timer.cax25->sk->err   = ETIMEDOUT;
sk221net/ax25/ax25_timer.cif (!ax25->sk->dead)
sk222net/ax25/ax25_timer.cax25->sk->state_change(ax25->sk);
sk223net/ax25/ax25_timer.cax25->sk->dead  = 1;
sk55net/core/datagram.cstruct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags, int noblock, int *err)
sk63net/core/datagram.csk->inuse = 1;
sk64net/core/datagram.cwhile(skb_peek(&sk->receive_queue) == NULL)  /* No data */
sk67net/core/datagram.cif (sk->shutdown & RCV_SHUTDOWN)
sk69net/core/datagram.crelease_sock(sk);
sk74net/core/datagram.cif(sk->err)
sk76net/core/datagram.crelease_sock(sk);
sk78net/core/datagram.c*err=-sk->err;
sk79net/core/datagram.csk->err=0;
sk85net/core/datagram.cif(sk->type==SOCK_SEQPACKET && sk->state!=TCP_ESTABLISHED)
sk87net/core/datagram.crelease_sock(sk);
sk95net/core/datagram.crelease_sock(sk);
sk99net/core/datagram.crelease_sock(sk);
sk104net/core/datagram.cif (skb_peek(&sk->receive_queue) == NULL)
sk106net/core/datagram.cinterruptible_sleep_on(sk->sleep);
sk114net/core/datagram.cif(sk->err != 0)  /* Error while waiting for packet
sk118net/core/datagram.c*err = -sk->err;
sk119net/core/datagram.csk->err=0;
sk124net/core/datagram.csk->inuse = 1;
sk131net/core/datagram.cskb=skb_dequeue(&sk->receive_queue);
sk140net/core/datagram.cskb=skb_peek(&sk->receive_queue);
sk192net/core/datagram.cint datagram_select(struct sock *sk, int sel_type, select_table *wait)
sk194net/core/datagram.cselect_wait(sk->sleep, wait);
sk198net/core/datagram.cif (sk->err)
sk200net/core/datagram.cif (sk->shutdown & RCV_SHUTDOWN)
sk202net/core/datagram.cif (sk->type==SOCK_SEQPACKET && sk->state==TCP_CLOSE)
sk207net/core/datagram.cif (skb_peek(&sk->receive_queue) != NULL)
sk215net/core/datagram.cif (sk->err)
sk217net/core/datagram.cif (sk->shutdown & SEND_SHUTDOWN)
sk219net/core/datagram.cif (sk->type==SOCK_SEQPACKET && sk->state==TCP_SYN_SENT)
sk224net/core/datagram.cif (sk->prot && sk->prot->wspace(sk) >= MIN_WRITE_SPACE)
sk228net/core/datagram.cif (sk->prot==NULL && sk->sndbuf-sk->wmem_alloc >= MIN_WRITE_SPACE)
sk235net/core/datagram.cif (sk->err)
sk384net/core/dev.c((struct sock *)ptype->data != skb->sk))
sk430net/core/dev.cskb->sk = NULL;
sk458net/core/skbuff.cif (skb->sk)
sk460net/core/skbuff.cif(skb->sk->prot!=NULL)
sk463net/core/skbuff.cskb->sk->prot->rfree(skb->sk, skb);
sk465net/core/skbuff.cskb->sk->prot->wfree(skb->sk, skb);
sk475net/core/skbuff.cskb->sk->rmem_alloc-=skb->truesize;
sk477net/core/skbuff.cskb->sk->wmem_alloc-=skb->truesize;
sk479net/core/skbuff.cif(!skb->sk->dead)
sk480net/core/skbuff.cskb->sk->write_space(skb->sk);
sk542net/core/skbuff.cskb->sk = NULL;
sk613net/core/skbuff.cn->sk=NULL;
sk119net/core/sock.cint sock_setsockopt(struct sock *sk, int level, int optname,
sk142net/core/sock.csk->debug=valbool;
sk145net/core/sock.csk->reuse = valbool;
sk151net/core/sock.csk->localroute=valbool;
sk154net/core/sock.csk->broadcast=valbool;
sk161net/core/sock.csk->sndbuf=val;
sk169net/core/sock.csk->rcvbuf=val;
sk173net/core/sock.csk->keepopen = valbool;
sk177net/core/sock.csk->urginline = valbool;
sk181net/core/sock.csk->no_check = valbool;
sk187net/core/sock.csk->priority = val;
sk202net/core/sock.csk->linger=0;
sk205net/core/sock.csk->lingertime=ling.l_linger;
sk206net/core/sock.csk->linger=1;
sk217net/core/sock.cint sock_getsockopt(struct sock *sk, int level, int optname,
sk227net/core/sock.cval = sk->debug;
sk231net/core/sock.cval = sk->localroute;
sk235net/core/sock.cval= sk->broadcast;
sk239net/core/sock.cval=sk->sndbuf;
sk243net/core/sock.cval =sk->rcvbuf;
sk247net/core/sock.cval = sk->reuse;
sk251net/core/sock.cval = sk->keepopen;
sk255net/core/sock.cval = sk->type;          
sk259net/core/sock.cval = sk->err;
sk260net/core/sock.csk->err = 0;
sk264net/core/sock.cval = sk->urginline;
sk268net/core/sock.cval = sk->no_check;
sk272net/core/sock.cval = sk->priority;
sk283net/core/sock.cling.l_onoff=sk->linger;
sk284net/core/sock.cling.l_linger=sk->lingertime;
sk307net/core/sock.cstruct sk_buff *sock_wmalloc(struct sock *sk, unsigned long size, int force, int priority)
sk309net/core/sock.cif (sk) 
sk311net/core/sock.cif (sk->wmem_alloc + size < sk->sndbuf || force) 
sk319net/core/sock.csk->wmem_alloc+= c->truesize;
sk330net/core/sock.cstruct sk_buff *sock_rmalloc(struct sock *sk, unsigned long size, int force, int priority)
sk332net/core/sock.cif (sk) 
sk334net/core/sock.cif (sk->rmem_alloc + size < sk->rcvbuf || force) 
sk342net/core/sock.csk->rmem_alloc += c->truesize;
sk353net/core/sock.cunsigned long sock_rspace(struct sock *sk)
sk357net/core/sock.cif (sk != NULL) 
sk359net/core/sock.cif (sk->rmem_alloc >= sk->rcvbuf-2*MIN_WINDOW) 
sk361net/core/sock.camt = min((sk->rcvbuf-sk->rmem_alloc)/2-MIN_WINDOW, MAX_WINDOW);
sk370net/core/sock.cunsigned long sock_wspace(struct sock *sk)
sk372net/core/sock.cif (sk != NULL) 
sk374net/core/sock.cif (sk->shutdown & SEND_SHUTDOWN)
sk376net/core/sock.cif (sk->wmem_alloc >= sk->sndbuf)
sk378net/core/sock.creturn(sk->sndbuf-sk->wmem_alloc );
sk384net/core/sock.cvoid sock_wfree(struct sock *sk, struct sk_buff *skb)
sk391net/core/sock.cif (sk) 
sk396net/core/sock.csk->wmem_alloc -= s;
sk399net/core/sock.csk->write_space(sk);
sk405net/core/sock.cvoid sock_rfree(struct sock *sk, struct sk_buff *skb)
sk412net/core/sock.cif (sk) 
sk417net/core/sock.csk->rmem_alloc -= s;
sk426net/core/sock.cstruct sk_buff *sock_alloc_send_skb(struct sock *sk, unsigned long size, unsigned long fallback, int noblock, int *errcode)
sk431net/core/sock.csk->inuse=1;
sk435net/core/sock.cif(sk->err!=0)
sk438net/core/sock.cerr= -sk->err;
sk439net/core/sock.csk->err=0;
sk445net/core/sock.cif(sk->shutdown&SEND_SHUTDOWN)
sk452net/core/sock.cskb = sock_wmalloc(sk, size, 0, sk->allocation);
sk457net/core/sock.cskb = sock_wmalloc(sk, size, 0 , GFP_BUFFER);
sk459net/core/sock.cskb=sock_wmalloc(sk, fallback, 0, GFP_KERNEL);
sk470net/core/sock.csk->socket->flags |= SO_NOSPACE;
sk476net/core/sock.cif(sk->shutdown&SEND_SHUTDOWN)
sk481net/core/sock.ctmp = sk->wmem_alloc;
sk483net/core/sock.cif(sk->shutdown&SEND_SHUTDOWN)
sk491net/core/sock.cif( tmp <= sk->wmem_alloc)
sk501net/core/sock.cif (sk->wmem_alloc + size >= sk->sndbuf) 
sk504net/core/sock.cif (sk->wmem_alloc <= 0)
sk505net/core/sock.cprintk("sock.c: Look where I am %ld<%ld\n", tmp, sk->wmem_alloc);
sk506net/core/sock.csk->socket->flags &= ~SO_NOSPACE;
sk507net/core/sock.cinterruptible_sleep_on(sk->sleep);
sk524net/core/sock.cvoid release_sock(struct sock *sk)
sk531net/core/sock.cif (!sk->prot)
sk542net/core/sock.cif (sk->blog) 
sk547net/core/sock.csk->blog=1;
sk548net/core/sock.csk->inuse = 1;
sk552net/core/sock.cwhile((skb = skb_dequeue(&sk->back_log)) != NULL) 
sk554net/core/sock.csk->blog = 1;
sk555net/core/sock.cif (sk->prot->rcv) 
sk556net/core/sock.csk->prot->rcv(skb, skb->dev, (struct options*)skb->proto_priv,
sk559net/core/sock.c(struct inet_protocol *)sk->pair); 
sk562net/core/sock.csk->blog = 0;
sk563net/core/sock.csk->inuse = 0;
sk565net/core/sock.cif (sk->dead && sk->state == TCP_CLOSE) 
sk568net/core/sock.creset_timer(sk, TIME_DONE, min(sk->rtt * 2, TCP_DONE_TIME));
sk224net/ethernet/eth.cvoid eth_header_cache(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr)
sk226net/ethernet/eth.cint v=arp_find_cache(sk->ip_hcache_data, daddr, dev);
sk228net/ethernet/eth.csk->ip_hcache_state=0;  /* Try when arp resolves */
sk231net/ethernet/eth.cmemcpy(sk->ip_hcache_data+6, dev->dev_addr, ETH_ALEN);
sk232net/ethernet/eth.csk->ip_hcache_data[12]=ETH_P_IP>>8;
sk233net/ethernet/eth.csk->ip_hcache_data[13]=ETH_P_IP&0xFF;
sk234net/ethernet/eth.csk->ip_hcache_state=1;
sk235net/ethernet/eth.csk->ip_hcache_stamp=arp_cache_stamp;
sk236net/ethernet/eth.csk->ip_hcache_ver=&arp_cache_stamp;
sk107net/ipv4/af_inet.cstruct sock *sk;
sk109net/ipv4/af_inet.cfor(sk = prot->sock_array[num & (SOCK_ARRAY_SIZE -1 )];
sk110net/ipv4/af_inet.csk != NULL;  sk=sk->next) 
sk112net/ipv4/af_inet.cif (sk->num == num) 
sk135net/ipv4/af_inet.cstruct sock *sk;
sk148net/ipv4/af_inet.csk = prot->sock_array[(i+base+1) &(SOCK_ARRAY_SIZE -1)];
sk149net/ipv4/af_inet.cwhile(sk != NULL) 
sk151net/ipv4/af_inet.csk = sk->next;
sk179net/ipv4/af_inet.cvoid put_sock(unsigned short num, struct sock *sk)
sk186net/ipv4/af_inet.cif(sk->type==SOCK_PACKET)
sk189net/ipv4/af_inet.csk->num = num;
sk190net/ipv4/af_inet.csk->next = NULL;
sk197net/ipv4/af_inet.csk->prot->inuse += 1;
sk198net/ipv4/af_inet.cif (sk->prot->highestinuse < sk->prot->inuse)
sk199net/ipv4/af_inet.csk->prot->highestinuse = sk->prot->inuse;
sk201net/ipv4/af_inet.cif (sk->prot->sock_array[num] == NULL) 
sk203net/ipv4/af_inet.csk->prot->sock_array[num] = sk;
sk210net/ipv4/af_inet.cif ((mask & sk->saddr) &&
sk211net/ipv4/af_inet.c(mask & sk->saddr) != (mask & 0xffffffff)) 
sk218net/ipv4/af_inet.csk1 = sk->prot->sock_array[num];
sk225net/ipv4/af_inet.csk->next = sk->prot->sock_array[num];
sk226net/ipv4/af_inet.csk->prot->sock_array[num] = sk;
sk230net/ipv4/af_inet.csk->next = sk2;
sk231net/ipv4/af_inet.csk1->next= sk;
sk239net/ipv4/af_inet.csk->next = NULL;
sk240net/ipv4/af_inet.csk1->next = sk;
sk285net/ipv4/af_inet.cvoid destroy_sock(struct sock *sk)
sk289net/ipv4/af_inet.csk->inuse = 1;      /* just to be safe. */
sk292net/ipv4/af_inet.cif (!sk->dead) 
sk293net/ipv4/af_inet.csk->write_space(sk);
sk295net/ipv4/af_inet.cremove_sock(sk);
sk298net/ipv4/af_inet.cdelete_timer(sk);
sk300net/ipv4/af_inet.cdel_timer(&sk->retransmit_timer);
sk302net/ipv4/af_inet.cwhile ((skb = tcp_dequeue_partial(sk)) != NULL) {
sk308net/ipv4/af_inet.cwhile((skb = skb_dequeue(&sk->write_queue)) != NULL) {
sk318net/ipv4/af_inet.cif (sk->dead) 
sk320net/ipv4/af_inet.cwhile((skb=skb_dequeue(&sk->receive_queue))!=NULL) 
sk326net/ipv4/af_inet.cif (skb->sk != NULL && skb->sk != sk) 
sk329net/ipv4/af_inet.cskb->sk->dead = 1;
sk330net/ipv4/af_inet.cskb->sk->prot->close(skb->sk, 0);
sk339net/ipv4/af_inet.cfor(skb = sk->send_head; skb != NULL; )
sk357net/ipv4/af_inet.csk->send_head = NULL;
sk361net/ipv4/af_inet.cwhile((skb=skb_dequeue(&sk->back_log))!=NULL) 
sk369net/ipv4/af_inet.cif (sk->pair) 
sk371net/ipv4/af_inet.csk->pair->dead = 1;
sk372net/ipv4/af_inet.csk->pair->prot->close(sk->pair, 0);
sk373net/ipv4/af_inet.csk->pair = NULL;
sk382net/ipv4/af_inet.cif (sk->dead && sk->rmem_alloc == 0 && sk->wmem_alloc == 0) 
sk384net/ipv4/af_inet.cif(sk->opt)
sk385net/ipv4/af_inet.ckfree(sk->opt);
sk391net/ipv4/af_inet.ckfree_s((void *)sk,sizeof(*sk));
sk397net/ipv4/af_inet.csk->destroy = 1;
sk398net/ipv4/af_inet.csk->ack_backlog = 0;
sk399net/ipv4/af_inet.csk->inuse = 0;
sk400net/ipv4/af_inet.creset_timer(sk, TIME_DESTROY, SOCK_DESTROY_TIME);
sk412net/ipv4/af_inet.cstruct sock *sk;
sk414net/ipv4/af_inet.csk = (struct sock *) sock->data;
sk426net/ipv4/af_inet.csk->proc = arg;
sk429net/ipv4/af_inet.creturn(sk->proc);
sk442net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;  
sk444net/ipv4/af_inet.creturn sock_setsockopt(sk,level,optname,optval,optlen);
sk445net/ipv4/af_inet.cif (sk->prot->setsockopt==NULL)
sk448net/ipv4/af_inet.creturn sk->prot->setsockopt(sk,level,optname,optval,optlen);
sk458net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;    
sk460net/ipv4/af_inet.creturn sock_getsockopt(sk,level,optname,optval,optlen);
sk461net/ipv4/af_inet.cif(sk->prot->getsockopt==NULL)    
sk464net/ipv4/af_inet.creturn sk->prot->getsockopt(sk,level,optname,optval,optlen);
sk471net/ipv4/af_inet.cstatic int inet_autobind(struct sock *sk)
sk474net/ipv4/af_inet.cif (sk->num == 0) 
sk476net/ipv4/af_inet.csk->num = get_new_socknum(sk->prot, 0);
sk477net/ipv4/af_inet.cif (sk->num == 0) 
sk481net/ipv4/af_inet.cput_sock(sk->num, sk);
sk482net/ipv4/af_inet.csk->dummy_th.source = ntohs(sk->num);
sk493net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sk495net/ipv4/af_inet.cif(inet_autobind(sk)!=0)
sk509net/ipv4/af_inet.csk->max_ack_backlog = backlog;
sk510net/ipv4/af_inet.cif (sk->state != TCP_LISTEN)
sk512net/ipv4/af_inet.csk->ack_backlog = 0;
sk513net/ipv4/af_inet.csk->state = TCP_LISTEN;
sk523net/ipv4/af_inet.cstatic void def_callback1(struct sock *sk)
sk525net/ipv4/af_inet.cif(!sk->dead)
sk526net/ipv4/af_inet.cwake_up_interruptible(sk->sleep);
sk529net/ipv4/af_inet.cstatic void def_callback2(struct sock *sk,int len)
sk531net/ipv4/af_inet.cif(!sk->dead)
sk533net/ipv4/af_inet.cwake_up_interruptible(sk->sleep);
sk534net/ipv4/af_inet.csock_wake_async(sk->socket, 1);
sk538net/ipv4/af_inet.cstatic void def_callback3(struct sock *sk)
sk540net/ipv4/af_inet.cif(!sk->dead)
sk542net/ipv4/af_inet.cwake_up_interruptible(sk->sleep);
sk543net/ipv4/af_inet.csock_wake_async(sk->socket, 2);
sk556net/ipv4/af_inet.cstruct sock *sk;
sk560net/ipv4/af_inet.csk = (struct sock *) kmalloc(sizeof(*sk), GFP_KERNEL);
sk561net/ipv4/af_inet.cif (sk == NULL) 
sk563net/ipv4/af_inet.cmemset(sk,0,sizeof(*sk));  /* Efficient way to set most fields to zero */
sk572net/ipv4/af_inet.ckfree_s((void *)sk, sizeof(*sk));
sk576net/ipv4/af_inet.csk->no_check = TCP_NO_CHECK;
sk583net/ipv4/af_inet.ckfree_s((void *)sk, sizeof(*sk));
sk587net/ipv4/af_inet.csk->no_check = UDP_NO_CHECK;
sk594net/ipv4/af_inet.ckfree_s((void *)sk, sizeof(*sk));
sk599net/ipv4/af_inet.ckfree_s((void *)sk, sizeof(*sk));
sk603net/ipv4/af_inet.csk->reuse = 1;
sk604net/ipv4/af_inet.csk->num = protocol;
sk610net/ipv4/af_inet.ckfree_s((void *)sk, sizeof(*sk));
sk615net/ipv4/af_inet.ckfree_s((void *)sk, sizeof(*sk));
sk619net/ipv4/af_inet.csk->reuse = 1;
sk620net/ipv4/af_inet.csk->num = protocol;
sk624net/ipv4/af_inet.ckfree_s((void *)sk, sizeof(*sk));
sk627net/ipv4/af_inet.csk->socket = sock;
sk629net/ipv4/af_inet.csk->nonagle = 1;
sk633net/ipv4/af_inet.csk->type = sock->type;
sk634net/ipv4/af_inet.csk->protocol = protocol;
sk635net/ipv4/af_inet.csk->allocation = GFP_KERNEL;
sk636net/ipv4/af_inet.csk->sndbuf = SK_WMEM_MAX;
sk637net/ipv4/af_inet.csk->rcvbuf = SK_RMEM_MAX;
sk638net/ipv4/af_inet.csk->rto = TCP_TIMEOUT_INIT;    /*TCP_WRITE_TIME*/
sk639net/ipv4/af_inet.csk->cong_window = 1; /* start with only sending one packet at a time. */
sk640net/ipv4/af_inet.csk->priority = 1;
sk641net/ipv4/af_inet.csk->state = TCP_CLOSE;
sk643net/ipv4/af_inet.csk->stamp.tv_sec=0;
sk644net/ipv4/af_inet.csk->wmem_alloc = 0;
sk645net/ipv4/af_inet.csk->rmem_alloc = 0;
sk646net/ipv4/af_inet.csk->pair = NULL;
sk647net/ipv4/af_inet.csk->opt = NULL;
sk648net/ipv4/af_inet.csk->write_seq = 0;
sk649net/ipv4/af_inet.csk->acked_seq = 0;
sk650net/ipv4/af_inet.csk->copied_seq = 0;
sk651net/ipv4/af_inet.csk->fin_seq = 0;
sk652net/ipv4/af_inet.csk->urg_seq = 0;
sk653net/ipv4/af_inet.csk->urg_data = 0;
sk654net/ipv4/af_inet.csk->proc = 0;
sk655net/ipv4/af_inet.csk->rtt = 0;        /*TCP_WRITE_TIME << 3;*/
sk656net/ipv4/af_inet.csk->mdev = 0;
sk657net/ipv4/af_inet.csk->backoff = 0;
sk658net/ipv4/af_inet.csk->packets_out = 0;
sk659net/ipv4/af_inet.csk->cong_count = 0;
sk660net/ipv4/af_inet.csk->ssthresh = 0;
sk661net/ipv4/af_inet.csk->max_window = 0;
sk662net/ipv4/af_inet.csk->urginline = 0;
sk663net/ipv4/af_inet.csk->intr = 0;
sk664net/ipv4/af_inet.csk->linger = 0;
sk665net/ipv4/af_inet.csk->destroy = 0;
sk666net/ipv4/af_inet.csk->shutdown = 0;
sk667net/ipv4/af_inet.csk->keepopen = 0;
sk668net/ipv4/af_inet.csk->zapped = 0;
sk669net/ipv4/af_inet.csk->done = 0;
sk670net/ipv4/af_inet.csk->ack_backlog = 0;
sk671net/ipv4/af_inet.csk->window = 0;
sk672net/ipv4/af_inet.csk->bytes_rcv = 0;
sk673net/ipv4/af_inet.csk->dead = 0;
sk674net/ipv4/af_inet.csk->ack_timed = 0;
sk675net/ipv4/af_inet.csk->partial = NULL;
sk676net/ipv4/af_inet.csk->user_mss = 0;
sk677net/ipv4/af_inet.csk->debug = 0;
sk680net/ipv4/af_inet.csk->max_ack_backlog = 0;
sk681net/ipv4/af_inet.csk->inuse = 0;
sk682net/ipv4/af_inet.csk->delay_acks = 0;
sk683net/ipv4/af_inet.csk->daddr = 0;
sk684net/ipv4/af_inet.csk->saddr = 0 /* ip_my_addr() */;
sk685net/ipv4/af_inet.csk->err = 0;
sk686net/ipv4/af_inet.csk->next = NULL;
sk687net/ipv4/af_inet.csk->pair = NULL;
sk688net/ipv4/af_inet.csk->send_tail = NULL;
sk689net/ipv4/af_inet.csk->send_head = NULL;
sk690net/ipv4/af_inet.csk->timeout = 0;
sk691net/ipv4/af_inet.csk->broadcast = 0;
sk692net/ipv4/af_inet.csk->localroute = 0;
sk693net/ipv4/af_inet.csk->blog = 0;
sk694net/ipv4/af_inet.csk->dummy_th.res1=0;
sk695net/ipv4/af_inet.csk->dummy_th.res2=0;
sk696net/ipv4/af_inet.csk->dummy_th.urg_ptr = 0;
sk697net/ipv4/af_inet.csk->dummy_th.fin = 0;
sk698net/ipv4/af_inet.csk->dummy_th.syn = 0;
sk699net/ipv4/af_inet.csk->dummy_th.rst = 0;
sk700net/ipv4/af_inet.csk->dummy_th.psh = 0;
sk701net/ipv4/af_inet.csk->dummy_th.ack = 0;
sk702net/ipv4/af_inet.csk->dummy_th.urg = 0;
sk703net/ipv4/af_inet.csk->dummy_th.dest = 0;
sk704net/ipv4/af_inet.csk->ip_tos=0;
sk705net/ipv4/af_inet.csk->ip_route_cache=NULL;
sk706net/ipv4/af_inet.csk->ip_hcache_ver= 0;
sk707net/ipv4/af_inet.csk->ip_option_len=0;
sk708net/ipv4/af_inet.csk->ip_option_flen=0;
sk709net/ipv4/af_inet.csk->ip_opt_next_hop=0;
sk710net/ipv4/af_inet.csk->ip_opt_ptr[0]=NULL;
sk711net/ipv4/af_inet.csk->ip_opt_ptr[1]=NULL;
sk715net/ipv4/af_inet.csk->max_unacked = 2048; /* needs to be at most 2 full packets. */
sk717net/ipv4/af_inet.cskb_queue_head_init(&sk->write_queue);
sk718net/ipv4/af_inet.cskb_queue_head_init(&sk->receive_queue);
sk719net/ipv4/af_inet.csk->mtu = 576;
sk720net/ipv4/af_inet.csk->prot = prot;
sk721net/ipv4/af_inet.csk->sleep = sock->wait;
sk722net/ipv4/af_inet.cinit_timer(&sk->timer);
sk723net/ipv4/af_inet.cinit_timer(&sk->retransmit_timer);
sk724net/ipv4/af_inet.csk->timer.data = (unsigned long)sk;
sk725net/ipv4/af_inet.csk->timer.function = &net_timer;
sk726net/ipv4/af_inet.cskb_queue_head_init(&sk->back_log);
sk727net/ipv4/af_inet.csock->data =(void *) sk;
sk728net/ipv4/af_inet.csk->dummy_th.doff = sizeof(sk->dummy_th)/4;
sk729net/ipv4/af_inet.csk->ip_ttl=64;
sk730net/ipv4/af_inet.cif(sk->type==SOCK_RAW && protocol==IPPROTO_RAW)
sk731net/ipv4/af_inet.csk->ip_hdrincl=1;
sk733net/ipv4/af_inet.csk->ip_hdrincl=0;
sk735net/ipv4/af_inet.csk->ip_mc_loop=1;
sk736net/ipv4/af_inet.csk->ip_mc_ttl=1;
sk737net/ipv4/af_inet.c*sk->ip_mc_name=0;
sk738net/ipv4/af_inet.csk->ip_mc_list=NULL;
sk741net/ipv4/af_inet.csk->state_change = def_callback1;
sk742net/ipv4/af_inet.csk->data_ready = def_callback2;
sk743net/ipv4/af_inet.csk->write_space = def_callback3;
sk744net/ipv4/af_inet.csk->error_report = def_callback1;
sk746net/ipv4/af_inet.cif (sk->num) 
sk754net/ipv4/af_inet.cput_sock(sk->num, sk);
sk755net/ipv4/af_inet.csk->dummy_th.source = ntohs(sk->num);
sk758net/ipv4/af_inet.cif (sk->prot->init) 
sk760net/ipv4/af_inet.cerr = sk->prot->init(sk);
sk763net/ipv4/af_inet.cdestroy_sock(sk);
sk784net/ipv4/af_inet.cstatic inline int closing(struct sock * sk)
sk786net/ipv4/af_inet.cswitch (sk->state) {
sk804net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sk805net/ipv4/af_inet.cif (sk == NULL) 
sk808net/ipv4/af_inet.csk->state_change(sk);
sk814net/ipv4/af_inet.cip_mc_drop_socket(sk);
sk825net/ipv4/af_inet.cif (sk->linger == 0 || (current->flags & PF_EXITING))
sk827net/ipv4/af_inet.csk->prot->close(sk,0);
sk828net/ipv4/af_inet.csk->dead = 1;
sk832net/ipv4/af_inet.csk->prot->close(sk, 0);
sk834net/ipv4/af_inet.cif (sk->lingertime)
sk835net/ipv4/af_inet.ccurrent->timeout = jiffies + HZ*sk->lingertime;
sk836net/ipv4/af_inet.cwhile(closing(sk) && current->timeout>0) 
sk838net/ipv4/af_inet.cinterruptible_sleep_on(sk->sleep);
sk852net/ipv4/af_inet.csk->dead = 1;
sk854net/ipv4/af_inet.csk->inuse = 1;
sk863net/ipv4/af_inet.crelease_sock(sk);
sk865net/ipv4/af_inet.csk->socket = NULL;
sk874net/ipv4/af_inet.cstruct sock *sk=(struct sock *)sock->data, *sk2;
sk879net/ipv4/af_inet.cif (sk->state != TCP_CLOSE)
sk886net/ipv4/af_inet.cif (sk->num != 0) 
sk900net/ipv4/af_inet.csnum = get_new_socknum(sk->prot, 0);
sk910net/ipv4/af_inet.csk->saddr = addr->sin_addr.s_addr;
sk916net/ipv4/af_inet.cfor(sk2 = sk->prot->sock_array[snum & (SOCK_ARRAY_SIZE -1)];
sk922net/ipv4/af_inet.cif (!sk->reuse)
sk930net/ipv4/af_inet.cif (sk2->saddr != sk->saddr) 
sk940net/ipv4/af_inet.cremove_sock(sk);
sk945net/ipv4/af_inet.cput_sock(snum, sk);
sk946net/ipv4/af_inet.csk->dummy_th.source = ntohs(sk->num);
sk947net/ipv4/af_inet.csk->daddr = 0;
sk948net/ipv4/af_inet.csk->dummy_th.dest = 0;
sk950net/ipv4/af_inet.csk->ip_route_cache=NULL;
sk958net/ipv4/af_inet.cstatic int inet_error(struct sock *sk)
sk964net/ipv4/af_inet.cerr=sk->err;
sk965net/ipv4/af_inet.csk->err=0;
sk978net/ipv4/af_inet.cstruct sock *sk=(struct sock *)sock->data;
sk982net/ipv4/af_inet.cif (sock->state == SS_CONNECTING && tcp_connected(sk->state))
sk989net/ipv4/af_inet.cif (sock->state == SS_CONNECTING && sk->protocol == IPPROTO_TCP && (flags & O_NONBLOCK))
sk991net/ipv4/af_inet.cif(sk->err!=0)
sk992net/ipv4/af_inet.creturn inet_error(sk);
sk998net/ipv4/af_inet.cif(inet_autobind(sk)!=0)
sk1000net/ipv4/af_inet.cif (sk->prot->connect == NULL) 
sk1002net/ipv4/af_inet.cerr = sk->prot->connect(sk, (struct sockaddr_in *)uaddr, addr_len);
sk1008net/ipv4/af_inet.cif (sk->state > TCP_FIN_WAIT2 && sock->state==SS_CONNECTING)
sk1011net/ipv4/af_inet.creturn inet_error(sk);
sk1014net/ipv4/af_inet.cif (sk->state != TCP_ESTABLISHED &&(flags & O_NONBLOCK)) 
sk1018net/ipv4/af_inet.cwhile(sk->state == TCP_SYN_SENT || sk->state == TCP_SYN_RECV) 
sk1020net/ipv4/af_inet.cinterruptible_sleep_on(sk->sleep);
sk1028net/ipv4/af_inet.cif(sk->err && sk->protocol == IPPROTO_TCP)
sk1032net/ipv4/af_inet.creturn inet_error(sk); /* set by tcp_err() */
sk1038net/ipv4/af_inet.cif (sk->state != TCP_ESTABLISHED && sk->err) 
sk1041net/ipv4/af_inet.creturn inet_error(sk);
sk1071net/ipv4/af_inet.cstruct sock *sk=(struct sock *)newsock->data;
sk1073net/ipv4/af_inet.csk->dead = 1;
sk1074net/ipv4/af_inet.cdestroy_sock(sk);
sk1138net/ipv4/af_inet.cstruct sock *sk;
sk1141net/ipv4/af_inet.csk = (struct sock *) sock->data;
sk1144net/ipv4/af_inet.cif (!tcp_connected(sk->state)) 
sk1146net/ipv4/af_inet.csin->sin_port = sk->dummy_th.dest;
sk1147net/ipv4/af_inet.csin->sin_addr.s_addr = sk->daddr;
sk1151net/ipv4/af_inet.csin->sin_port = sk->dummy_th.source;
sk1152net/ipv4/af_inet.cif (sk->saddr == 0) 
sk1155net/ipv4/af_inet.csin->sin_addr.s_addr = sk->saddr;
sk1169net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sk1171net/ipv4/af_inet.cif (sk->prot->recvfrom == NULL) 
sk1173net/ipv4/af_inet.cif(sk->err)
sk1174net/ipv4/af_inet.creturn inet_error(sk);
sk1176net/ipv4/af_inet.cif(inet_autobind(sk)!=0)
sk1178net/ipv4/af_inet.creturn(sk->prot->recvfrom(sk, (unsigned char *) ubuf, size, noblock, flags,
sk1192net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sk1194net/ipv4/af_inet.cif(sk->err)
sk1195net/ipv4/af_inet.creturn inet_error(sk);
sk1197net/ipv4/af_inet.cif(inet_autobind(sk))
sk1199net/ipv4/af_inet.creturn(sk->prot->read(sk, (unsigned char *) ubuf, size, noblock, 0));
sk1205net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sk1206net/ipv4/af_inet.cif (sk->shutdown & SEND_SHUTDOWN) 
sk1211net/ipv4/af_inet.cif(sk->err)
sk1212net/ipv4/af_inet.creturn inet_error(sk);
sk1214net/ipv4/af_inet.cif(inet_autobind(sk)!=0)
sk1216net/ipv4/af_inet.creturn(sk->prot->write(sk, (const unsigned char *) ubuf, size, noblock, flags));
sk1227net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sk1228net/ipv4/af_inet.cif (sk->shutdown & SEND_SHUTDOWN) 
sk1233net/ipv4/af_inet.cif (sk->prot->sendto == NULL) 
sk1235net/ipv4/af_inet.cif(sk->err)
sk1236net/ipv4/af_inet.creturn inet_error(sk);
sk1238net/ipv4/af_inet.cif(inet_autobind(sk)!=0)
sk1240net/ipv4/af_inet.creturn(sk->prot->sendto(sk, (const unsigned char *) ubuf, size, noblock, flags, 
sk1247net/ipv4/af_inet.cstruct sock *sk=(struct sock*)sock->data;
sk1258net/ipv4/af_inet.cif (sock->state == SS_CONNECTING && sk->state == TCP_ESTABLISHED)
sk1260net/ipv4/af_inet.cif (!tcp_connected(sk->state)) 
sk1262net/ipv4/af_inet.csk->shutdown |= how;
sk1263net/ipv4/af_inet.cif (sk->prot->shutdown)
sk1264net/ipv4/af_inet.csk->prot->shutdown(sk, how);
sk1271net/ipv4/af_inet.cstruct sock *sk=(struct sock *) sock->data;
sk1272net/ipv4/af_inet.cif (sk->prot->select == NULL) 
sk1276net/ipv4/af_inet.creturn(sk->prot->select(sk, sel_type, wait));
sk1291net/ipv4/af_inet.cstruct sock *sk=(struct sock *)sock->data;
sk1306net/ipv4/af_inet.csk->proc = pid;
sk1313net/ipv4/af_inet.cput_fs_long(sk->proc,(int *)arg);
sk1316net/ipv4/af_inet.cif(sk->stamp.tv_sec==0)
sk1321net/ipv4/af_inet.cmemcpy_tofs((void *)arg,&sk->stamp,sizeof(struct timeval));
sk1369net/ipv4/af_inet.cif (sk->prot->ioctl==NULL) 
sk1371net/ipv4/af_inet.creturn(sk->prot->ioctl(sk, cmd, arg));
sk1450net/ipv4/af_inet.cstruct sock *get_sock_raw(struct sock *sk, 
sk1457net/ipv4/af_inet.cs=sk;
sk1479net/ipv4/af_inet.cstruct sock *get_sock_mcast(struct sock *sk, 
sk1498net/ipv4/af_inet.cs=sk;
sk532net/ipv4/arp.cif(skb->sk==NULL)
sk535net/ipv4/arp.cdev_queue_xmit(skb,skb->dev,skb->sk->priority);
sk231net/ipv4/icmp.cstruct sock *sk=icmp_socket.data;
sk235net/ipv4/icmp.cip_build_xmit(sk, icmp_glue_bits, icmp_param, 
sk709net/ipv4/icmp.cstruct sock *sk;
sk716net/ipv4/icmp.csk=icmp_socket.data;
sk717net/ipv4/icmp.csk->allocation=GFP_ATOMIC;
sk718net/ipv4/icmp.csk->num = 256;      /* Don't receive any data */
sk346net/ipv4/igmp.cint ip_mc_join_group(struct sock *sk , struct device *dev, unsigned long addr)
sk354net/ipv4/igmp.cif(sk->ip_mc_list==NULL)
sk356net/ipv4/igmp.cif((sk->ip_mc_list=(struct ip_mc_socklist *)kmalloc(sizeof(*sk->ip_mc_list), GFP_KERNEL))==NULL)
sk358net/ipv4/igmp.cmemset(sk->ip_mc_list,'\0',sizeof(*sk->ip_mc_list));
sk362net/ipv4/igmp.cif(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev)
sk364net/ipv4/igmp.cif(sk->ip_mc_list->multidev[i]==NULL)
sk370net/ipv4/igmp.csk->ip_mc_list->multiaddr[unused]=addr;
sk371net/ipv4/igmp.csk->ip_mc_list->multidev[unused]=dev;
sk380net/ipv4/igmp.cint ip_mc_leave_group(struct sock *sk, struct device *dev, unsigned long addr)
sk387net/ipv4/igmp.cif(sk->ip_mc_list==NULL)
sk392net/ipv4/igmp.cif(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev)
sk394net/ipv4/igmp.csk->ip_mc_list->multidev[i]=NULL;
sk406net/ipv4/igmp.cvoid ip_mc_drop_socket(struct sock *sk)
sk410net/ipv4/igmp.cif(sk->ip_mc_list==NULL)
sk415net/ipv4/igmp.cif(sk->ip_mc_list->multidev[i])
sk417net/ipv4/igmp.cip_mc_dec_group(sk->ip_mc_list->multidev[i], sk->ip_mc_list->multiaddr[i]);
sk418net/ipv4/igmp.csk->ip_mc_list->multidev[i]=NULL;
sk421net/ipv4/igmp.ckfree_s(sk->ip_mc_list,sizeof(*sk->ip_mc_list));
sk422net/ipv4/igmp.csk->ip_mc_list=NULL;
sk159net/ipv4/ip.cextern void sort_send(struct sock *sk);
sk576net/ipv4/ip.cint ip_ioctl(struct sock *sk, int cmd, unsigned long arg)
sk660net/ipv4/ip.cif(MULTICAST(daddr) && *dev==NULL && skb->sk && *skb->sk->ip_mc_name)
sk661net/ipv4/ip.c*dev=dev_get(skb->sk->ip_mc_name);
sk1152net/ipv4/ip.cskb->sk = NULL;
sk1253net/ipv4/ip.cskb->sk = NULL;
sk1294net/ipv4/ip.cstatic void ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag)
sk1410net/ipv4/ip.cif (sk)
sk1413net/ipv4/ip.csk->wmem_alloc += skb2->truesize;
sk1414net/ipv4/ip.cskb2->sk=sk;
sk1464net/ipv4/ip.cip_queue_xmit(sk, dev, skb2, 2);
sk2316net/ipv4/ip.cnewskb->sk=NULL;
sk2357net/ipv4/ip.cvoid ip_queue_xmit(struct sock *sk, struct device *dev,
sk2407net/ipv4/ip.cif (sk == NULL)
sk2420net/ipv4/ip.cip_fragment(sk,skb,dev,0);
sk2458net/ipv4/ip.csk->packets_out++;
sk2469net/ipv4/ip.cif (sk->send_head == NULL)
sk2471net/ipv4/ip.csk->send_tail = skb;
sk2472net/ipv4/ip.csk->send_head = skb;
sk2476net/ipv4/ip.csk->send_tail->link3 = skb;
sk2477net/ipv4/ip.csk->send_tail = skb;
sk2486net/ipv4/ip.cskb->sk = sk;
sk2505net/ipv4/ip.cif(sk==NULL || sk->ip_mc_loop)
sk2544net/ipv4/ip.cif (sk != NULL)
sk2546net/ipv4/ip.cdev_queue_xmit(skb, dev, sk->priority);
sk2555net/ipv4/ip.cif(sk)
sk2556net/ipv4/ip.csk->err = ENETDOWN;
sk2640net/ipv4/ip.cint ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen)
sk2666net/ipv4/ip.creturn ip_mroute_setsockopt(sk,optname,optval,optlen);
sk2701net/ipv4/ip.cold_opt = sk->opt;
sk2702net/ipv4/ip.csk->opt = opt;
sk2711net/ipv4/ip.csk->ip_tos=val;
sk2713net/ipv4/ip.csk->priority=SOPRI_INTERACTIVE;
sk2715net/ipv4/ip.csk->priority=SOPRI_BACKGROUND;
sk2720net/ipv4/ip.csk->ip_ttl=val;
sk2723net/ipv4/ip.cif(sk->type!=SOCK_RAW)
sk2725net/ipv4/ip.csk->ip_hdrincl=val?1:0;
sk2730net/ipv4/ip.csk->ip_mc_ttl=(int)ucval;
sk2737net/ipv4/ip.csk->ip_mc_loop=(int)ucval;
sk2762net/ipv4/ip.csk->ip_mc_name[0]=0;
sk2778net/ipv4/ip.cstrcpy(sk->ip_mc_name,dev->name);
sk2840net/ipv4/ip.creturn ip_mc_join_group(sk,dev,mreq.imr_multiaddr.s_addr);
sk2889net/ipv4/ip.creturn ip_mc_leave_group(sk,dev,mreq.imr_multiaddr.s_addr);
sk2944net/ipv4/ip.cint ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen)
sk2957net/ipv4/ip.creturn ip_mroute_getsockopt(sk,optname,optval,optlen);
sk2972net/ipv4/ip.cif (sk->opt)
sk2973net/ipv4/ip.cmemcpy(optbuf, sk->opt, sizeof(struct options)+sk->opt->optlen);
sk3011net/ipv4/ip.cval=sk->ip_tos;
sk3014net/ipv4/ip.cval=sk->ip_ttl;
sk3017net/ipv4/ip.cval=sk->ip_hdrincl;
sk3021net/ipv4/ip.cval=sk->ip_mc_ttl;
sk3024net/ipv4/ip.cval=sk->ip_mc_loop;
sk3030net/ipv4/ip.clen=strlen(sk->ip_mc_name);
sk3035net/ipv4/ip.cmemcpy_tofs((void *)optval,sk->ip_mc_name, len);
sk3074net/ipv4/ip.cint ip_build_xmit(struct sock *sk,
sk3099net/ipv4/ip.cif (opt && opt->srr && !sk->ip_hdrincl)
sk3105net/ipv4/ip.cif(sk && MULTICAST(daddr) && *sk->ip_mc_name)
sk3107net/ipv4/ip.cdev=dev_get(sk->ip_mc_name);
sk3111net/ipv4/ip.cif (sk->saddr && (!LOOPBACK(sk->saddr) || LOOPBACK(daddr)))
sk3112net/ipv4/ip.csaddr = sk->saddr;
sk3123net/ipv4/ip.cif(sk->localroute || flags&MSG_DONTROUTE)
sk3126net/ipv4/ip.crt = sk->ip_route_cache;
sk3133net/ipv4/ip.csaddr=sk->ip_route_saddr;   
sk3134net/ipv4/ip.cif(!rt || sk->ip_route_stamp != rt_stamp ||
sk3135net/ipv4/ip.cdaddr!=sk->ip_route_daddr || sk->ip_route_local!=local ||
sk3136net/ipv4/ip.c(sk->saddr && sk->saddr != saddr))
sk3142net/ipv4/ip.csk->ip_route_local=local;
sk3143net/ipv4/ip.csk->ip_route_daddr=daddr;
sk3144net/ipv4/ip.csk->ip_route_saddr=saddr;
sk3145net/ipv4/ip.csk->ip_route_stamp=rt_stamp;
sk3146net/ipv4/ip.csk->ip_route_cache=rt;
sk3147net/ipv4/ip.csk->ip_hcache_ver=NULL;
sk3148net/ipv4/ip.csk->ip_hcache_state= 0;
sk3158net/ipv4/ip.cif(rt->rt_dev->header_cache && sk->ip_hcache_state!= -1)
sk3160net/ipv4/ip.cif(sk->ip_hcache_ver==NULL || sk->ip_hcache_stamp!=*sk->ip_hcache_ver)
sk3161net/ipv4/ip.crt->rt_dev->header_cache(rt->rt_dev,sk,saddr,daddr);
sk3164net/ipv4/ip.csk->ip_hcache_state= -1;
sk3174net/ipv4/ip.cif (sk->saddr && (!LOOPBACK(sk->saddr) || LOOPBACK(daddr)))
sk3175net/ipv4/ip.csaddr = sk->saddr;
sk3194net/ipv4/ip.cif (!sk->ip_hdrincl && opt) {
sk3204net/ipv4/ip.cstruct sk_buff *skb=sock_alloc_send_skb(sk, length+15+dev->hard_header_len,0, 0,&error);
sk3213net/ipv4/ip.cskb->sk=sk;
sk3218net/ipv4/ip.cif(sk->ip_hcache_state>0)
sk3220net/ipv4/ip.cmemcpy(skb_push(skb,dev->hard_header_len),sk->ip_hcache_data,dev->hard_header_len);
sk3232net/ipv4/ip.cif(!sk->ip_hdrincl)
sk3236net/ipv4/ip.ciph->tos=sk->ip_tos;
sk3240net/ipv4/ip.ciph->ttl=sk->ip_ttl;
sk3267net/ipv4/ip.cdev_queue_xmit(skb,dev,sk->priority);
sk3276net/ipv4/ip.cif (sk && !sk->ip_hdrincl && opt) {
sk3282net/ipv4/ip.cif(!sk->ip_hdrincl)
sk3322net/ipv4/ip.cif (sk->ip_hdrincl && offset > 0)
sk3351net/ipv4/ip.cskb = sock_alloc_send_skb(sk, fraglen+15, 0, 0, &error);
sk3369net/ipv4/ip.cskb->sk = sk;
sk3383net/ipv4/ip.cif(sk->ip_hcache_state>0)
sk3385net/ipv4/ip.cmemcpy(skb_push(skb,dev->hard_header_len),sk->ip_hcache_data, dev->hard_header_len);
sk3405net/ipv4/ip.cif(!sk->ip_hdrincl) 
sk3415net/ipv4/ip.ciph->tos = sk->ip_tos;
sk3422net/ipv4/ip.ciph->ttl = sk->ip_mc_ttl;
sk3425net/ipv4/ip.ciph->ttl = sk->ip_ttl;
sk3480net/ipv4/ip.cif(sk==NULL || sk->ip_mc_loop)
sk3524net/ipv4/ip.cdev_queue_xmit(skb, dev, sk->priority);
sk3540net/ipv4/ip.cif(sk!=NULL)
sk3541net/ipv4/ip.csk->err=ENETDOWN;
sk873net/ipv4/ip_fw.ctcp_send_check(th,iph->saddr,iph->daddr,size,skb->sk);
sk978net/ipv4/ip_fw.ctcp_send_check((struct tcphdr *)portptr,iph->saddr,iph->daddr,size,skb_ptr->sk);
sk287net/ipv4/ipmr.cskb->sk=NULL;
sk427net/ipv4/ipmr.cint ip_mroute_setsockopt(struct sock *sk,int optname,char *optval,int optlen)
sk435net/ipv4/ipmr.cif(sk!=mroute_socket)
sk442net/ipv4/ipmr.cif(sk->type!=SOCK_RAW || sk->num!=IPPROTO_IGMP)
sk452net/ipv4/ipmr.cmroute_socket=sk;
sk456net/ipv4/ipmr.cmroute_close(sk);
sk568net/ipv4/ipmr.cint ip_mroute_getsockopt(struct sock *sk,int optname,char *optval,int *optlen)
sk573net/ipv4/ipmr.cif(sk!=mroute_socket)
sk596net/ipv4/ipmr.cint ipmr_ioctl(struct sock *sk, int cmd, unsigned long arg)
sk639net/ipv4/ipmr.cvoid mroute_close(struct sock *sk)
sk75net/ipv4/packet.cstruct sock *sk;
sk83net/ipv4/packet.csk = (struct sock *) pt->data;  
sk102net/ipv4/packet.cif (sk->rmem_alloc & 0xFF000000) {
sk103net/ipv4/packet.cprintk("packet_rcv: sk->rmem_alloc = %ld\n", sk->rmem_alloc);
sk104net/ipv4/packet.csk->rmem_alloc = 0;
sk107net/ipv4/packet.cif (sk->rmem_alloc + skb->truesize >= sk->rcvbuf) 
sk110net/ipv4/packet.cskb->sk = NULL;
sk118net/ipv4/packet.cskb->sk = sk;
sk119net/ipv4/packet.csk->rmem_alloc += skb->truesize;  
sk125net/ipv4/packet.cskb_queue_tail(&sk->receive_queue,skb);
sk126net/ipv4/packet.cif(!sk->dead)
sk127net/ipv4/packet.csk->data_ready(sk,skb->len);
sk144net/ipv4/packet.cstatic int packet_sendto(struct sock *sk, const unsigned char *from, int len,
sk190net/ipv4/packet.cskb = sk->prot->wmalloc(sk, len, 0, GFP_KERNEL);
sk206net/ipv4/packet.cskb->sk = sk;
sk216net/ipv4/packet.cdev_queue_xmit(skb, dev, sk->priority);
sk227net/ipv4/packet.cstatic int packet_write(struct sock *sk, const unsigned char *buff, 
sk230net/ipv4/packet.creturn(packet_sendto(sk, buff, len, noblock, flags, NULL, 0));
sk240net/ipv4/packet.cstatic void packet_close(struct sock *sk, int timeout)
sk242net/ipv4/packet.csk->inuse = 1;
sk243net/ipv4/packet.csk->state = TCP_CLOSE;
sk244net/ipv4/packet.cdev_remove_pack((struct packet_type *)sk->pair);
sk245net/ipv4/packet.ckfree_s((void *)sk->pair, sizeof(struct packet_type));
sk246net/ipv4/packet.csk->pair = NULL;
sk247net/ipv4/packet.crelease_sock(sk);
sk258net/ipv4/packet.cstatic int packet_init(struct sock *sk)
sk267net/ipv4/packet.cp->type = sk->num;
sk268net/ipv4/packet.cp->data = (void *)sk;
sk276net/ipv4/packet.csk->pair = (struct sock *)p;
sk287net/ipv4/packet.cint packet_recvfrom(struct sock *sk, unsigned char *to, int len,
sk298net/ipv4/packet.cif (sk->shutdown & RCV_SHUTDOWN) 
sk315net/ipv4/packet.cskb=skb_recv_datagram(sk,flags,noblock,&err);
sk334net/ipv4/packet.csk->stamp=skb->stamp;
sk357net/ipv4/packet.crelease_sock(sk);
sk367net/ipv4/packet.cint packet_read(struct sock *sk, unsigned char *buff,
sk370net/ipv4/packet.creturn(packet_recvfrom(sk, buff, len, noblock, flags, NULL, NULL));
sk79net/ipv4/raw.cstruct sock *sk;
sk83net/ipv4/raw.csk = (struct sock *) protocol->data;
sk84net/ipv4/raw.cif (sk == NULL) 
sk90net/ipv4/raw.cif (sk->cong_window > 1) sk->cong_window = sk->cong_window/2;
sk96net/ipv4/raw.csk->err = EPROTO;
sk97net/ipv4/raw.csk->error_report(sk);
sk102net/ipv4/raw.csk->err = icmp_err_convert[code & 0xff].errno;
sk103net/ipv4/raw.csk->error_report(sk);
sk116net/ipv4/raw.cint raw_rcv(struct sock *sk, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr)
sk119net/ipv4/raw.cskb->sk = sk;
sk129net/ipv4/raw.cif(sock_queue_rcv_skb(sk,skb)<0)
sk132net/ipv4/raw.cskb->sk=NULL;
sk138net/ipv4/raw.crelease_sock(sk);
sk178net/ipv4/raw.cstatic int raw_sendto(struct sock *sk, const unsigned char *from, 
sk207net/ipv4/raw.cif (sk->state != TCP_ESTABLISHED) 
sk210net/ipv4/raw.csin.sin_port = sk->protocol;
sk211net/ipv4/raw.csin.sin_addr.s_addr = sk->daddr;
sk214net/ipv4/raw.csin.sin_port = sk->protocol;
sk219net/ipv4/raw.cif (sk->broadcast == 0 && ip_chk_addr(sin.sin_addr.s_addr)==IS_BROADCAST)
sk222net/ipv4/raw.cif(sk->ip_hdrincl)
sk226net/ipv4/raw.cerr=ip_build_xmit(sk, raw_getrawfrag, from, len, sin.sin_addr.s_addr, 0, sk->opt, flags, sin.sin_port);
sk232net/ipv4/raw.cerr=ip_build_xmit(sk, raw_getfrag, from, len, sin.sin_addr.s_addr, 0, sk->opt, flags, sin.sin_port);
sk238net/ipv4/raw.cstatic int raw_write(struct sock *sk, const unsigned char *buff, int len, int noblock,
sk241net/ipv4/raw.creturn(raw_sendto(sk, buff, len, noblock, flags, NULL, 0));
sk245net/ipv4/raw.cstatic void raw_close(struct sock *sk, int timeout)
sk247net/ipv4/raw.csk->state = TCP_CLOSE;
sk249net/ipv4/raw.cif(sk==mroute_socket)
sk251net/ipv4/raw.cmroute_close(sk);
sk258net/ipv4/raw.cstatic int raw_init(struct sock *sk)
sk269net/ipv4/raw.cint raw_recvfrom(struct sock *sk, unsigned char *to, int len,
sk280net/ipv4/raw.cif (sk->shutdown & RCV_SHUTDOWN) 
sk286net/ipv4/raw.cskb=skb_recv_datagram(sk,flags,noblock,&err);
sk293net/ipv4/raw.csk->stamp=skb->stamp;
sk302net/ipv4/raw.crelease_sock(sk);
sk307net/ipv4/raw.cint raw_read (struct sock *sk, unsigned char *buff, int len, int noblock,unsigned flags)
sk309net/ipv4/raw.creturn(raw_recvfrom(sk, buff, len, noblock, flags, NULL, NULL));
sk468net/ipv4/tcp.cstatic void tcp_close(struct sock *sk, int timeout);
sk494net/ipv4/tcp.cstatic __inline__ void tcp_set_state(struct sock *sk, int state)
sk496net/ipv4/tcp.cif(sk->state==TCP_ESTABLISHED)
sk499net/ipv4/tcp.cif(sk->debug)
sk500net/ipv4/tcp.cprintk("TCP sk=%p, State %s -> %s\n",sk, statename[sk->state],statename[state]);
sk505net/ipv4/tcp.cif(state==TCP_ESTABLISHED && sk->state==TCP_SYN_RECV)
sk509net/ipv4/tcp.csk->state=state;
sk512net/ipv4/tcp.cif(sk->state==TCP_CLOSE)
sk531net/ipv4/tcp.cint tcp_select_window(struct sock *sk)
sk533net/ipv4/tcp.cint new_window = sk->prot->rspace(sk);
sk535net/ipv4/tcp.cif(sk->window_clamp)
sk536net/ipv4/tcp.cnew_window=min(sk->window_clamp,new_window);
sk550net/ipv4/tcp.cif (new_window < min(sk->mss, MAX_WINDOW/2) || new_window < sk->window)
sk551net/ipv4/tcp.creturn(sk->window);
sk567net/ipv4/tcp.cif(p->sk->state == TCP_ESTABLISHED || p->sk->state >= TCP_FIN_WAIT1)
sk599net/ipv4/tcp.cstatic void tcp_close_pending (struct sock *sk) 
sk603net/ipv4/tcp.cwhile ((skb = skb_dequeue(&sk->receive_queue)) != NULL) 
sk605net/ipv4/tcp.cskb->sk->dead=1;
sk606net/ipv4/tcp.ctcp_close(skb->sk, 0);
sk616net/ipv4/tcp.cstatic void tcp_time_wait(struct sock *sk)
sk618net/ipv4/tcp.ctcp_set_state(sk,TCP_TIME_WAIT);
sk619net/ipv4/tcp.csk->shutdown = SHUTDOWN_MASK;
sk620net/ipv4/tcp.cif (!sk->dead)
sk621net/ipv4/tcp.csk->state_change(sk);
sk622net/ipv4/tcp.creset_msl_timer(sk, TIME_CLOSE, TCP_TIMEWAIT_LEN);
sk630net/ipv4/tcp.cvoid tcp_do_retransmit(struct sock *sk, int all)
sk638net/ipv4/tcp.cprot = sk->prot;
sk639net/ipv4/tcp.cskb = sk->send_head;
sk689net/ipv4/tcp.cif(skb->sk)
sk691net/ipv4/tcp.cskb->sk->err=ENETUNREACH;
sk692net/ipv4/tcp.cskb->sk->error_report(skb->sk);
sk720net/ipv4/tcp.cth->ack_seq = ntohl(sk->acked_seq);
sk721net/ipv4/tcp.cth->window = ntohs(tcp_select_window(sk));
sk722net/ipv4/tcp.ctcp_send_check(th, sk->saddr, sk->daddr, size, sk);
sk738net/ipv4/tcp.cif (sk && !skb_device_locked(skb))
sk744net/ipv4/tcp.cdev_queue_xmit(skb, dev, sk->priority);
sk754net/ipv4/tcp.csk->prot->retransmits ++;
sk769net/ipv4/tcp.cif (ct >= sk->cong_window)
sk779net/ipv4/tcp.cstatic void reset_xmit_timer(struct sock *sk, int why, unsigned long when)
sk781net/ipv4/tcp.cdel_timer(&sk->retransmit_timer);
sk782net/ipv4/tcp.csk->ip_xmit_timeout = why;
sk788net/ipv4/tcp.csk->retransmit_timer.expires=jiffies+when;
sk789net/ipv4/tcp.cadd_timer(&sk->retransmit_timer);
sk800net/ipv4/tcp.cvoid tcp_retransmit_time(struct sock *sk, int all)
sk802net/ipv4/tcp.ctcp_do_retransmit(sk, all);
sk821net/ipv4/tcp.csk->retransmits++;
sk822net/ipv4/tcp.csk->prot->retransmits++;
sk823net/ipv4/tcp.csk->backoff++;
sk824net/ipv4/tcp.csk->rto = min(sk->rto << 1, 120*HZ);
sk825net/ipv4/tcp.creset_xmit_timer(sk, TIME_WRITE, sk->rto);
sk836net/ipv4/tcp.cstatic void tcp_retransmit(struct sock *sk, int all)
sk840net/ipv4/tcp.ctcp_retransmit_time(sk, all);
sk844net/ipv4/tcp.csk->ssthresh = sk->cong_window >> 1; /* remember window where we lost */
sk846net/ipv4/tcp.csk->cong_count = 0;
sk848net/ipv4/tcp.csk->cong_window = 1;
sk851net/ipv4/tcp.ctcp_retransmit_time(sk, all);
sk858net/ipv4/tcp.cstatic int tcp_write_timeout(struct sock *sk)
sk863net/ipv4/tcp.cif ((sk->state == TCP_ESTABLISHED && sk->retransmits && !(sk->retransmits & 7))
sk864net/ipv4/tcp.c|| (sk->state != TCP_ESTABLISHED && sk->retransmits > TCP_RETR1)) 
sk870net/ipv4/tcp.carp_destroy (sk->daddr, 0);
sk878net/ipv4/tcp.cif(sk->retransmits > TCP_SYN_RETRIES && sk->state==TCP_SYN_SENT)
sk880net/ipv4/tcp.csk->err=ETIMEDOUT;
sk881net/ipv4/tcp.csk->error_report(sk);
sk882net/ipv4/tcp.cdel_timer(&sk->retransmit_timer);
sk884net/ipv4/tcp.ctcp_set_state(sk,TCP_CLOSE);
sk886net/ipv4/tcp.crelease_sock(sk);
sk892net/ipv4/tcp.cif (sk->retransmits > TCP_RETR2) 
sk894net/ipv4/tcp.csk->err = ETIMEDOUT;
sk895net/ipv4/tcp.csk->error_report(sk);
sk896net/ipv4/tcp.cdel_timer(&sk->retransmit_timer);
sk900net/ipv4/tcp.cif (sk->state == TCP_FIN_WAIT1 || sk->state == TCP_FIN_WAIT2 || sk->state == TCP_CLOSING ) 
sk902net/ipv4/tcp.ctcp_set_state(sk,TCP_TIME_WAIT);
sk903net/ipv4/tcp.creset_msl_timer (sk, TIME_CLOSE, TCP_TIMEWAIT_LEN);
sk910net/ipv4/tcp.ctcp_set_state(sk, TCP_CLOSE);
sk911net/ipv4/tcp.crelease_sock(sk);
sk930net/ipv4/tcp.cstruct sock *sk = (struct sock*)data;
sk931net/ipv4/tcp.cint why = sk->ip_xmit_timeout;
sk938net/ipv4/tcp.cif (sk->inuse || in_bh) 
sk941net/ipv4/tcp.csk->retransmit_timer.expires = jiffies+HZ;
sk942net/ipv4/tcp.cadd_timer(&sk->retransmit_timer);
sk947net/ipv4/tcp.csk->inuse = 1;
sk952net/ipv4/tcp.cif (sk->ack_backlog && !sk->zapped) 
sk954net/ipv4/tcp.csk->prot->read_wakeup (sk);
sk955net/ipv4/tcp.cif (! sk->dead)
sk956net/ipv4/tcp.csk->data_ready(sk,0);
sk965net/ipv4/tcp.ctcp_send_probe0(sk);
sk966net/ipv4/tcp.ctcp_write_timeout(sk);
sk979net/ipv4/tcp.cskb = sk->send_head;
sk990net/ipv4/tcp.cif (jiffies < skb->when + sk->rto) 
sk992net/ipv4/tcp.creset_xmit_timer (sk, TIME_WRITE, skb->when + sk->rto - jiffies);
sk1000net/ipv4/tcp.csk->retransmits++;
sk1001net/ipv4/tcp.csk->prot->retransmits++;
sk1002net/ipv4/tcp.csk->prot->retransmit (sk, 0);
sk1003net/ipv4/tcp.ctcp_write_timeout(sk);
sk1013net/ipv4/tcp.creset_xmit_timer (sk, TIME_KEEPOPEN, TCP_TIMEOUT_LEN);
sk1016net/ipv4/tcp.cif (sk->prot->write_wakeup)
sk1017net/ipv4/tcp.csk->prot->write_wakeup (sk);
sk1018net/ipv4/tcp.csk->retransmits++;
sk1019net/ipv4/tcp.csk->prot->retransmits++;
sk1020net/ipv4/tcp.ctcp_write_timeout(sk);
sk1026net/ipv4/tcp.crelease_sock(sk);
sk1042net/ipv4/tcp.cstruct sock *sk;
sk1049net/ipv4/tcp.csk = get_sock(&tcp_prot, th->source, daddr, th->dest, saddr);
sk1051net/ipv4/tcp.cif (sk == NULL) 
sk1061net/ipv4/tcp.cif (sk->cong_window > 4)
sk1062net/ipv4/tcp.csk->cong_window--;
sk1068net/ipv4/tcp.csk->err=EPROTO;
sk1069net/ipv4/tcp.csk->error_report(sk);
sk1077net/ipv4/tcp.cif (code < 13 && (icmp_err_convert[code].fatal || sk->state == TCP_SYN_SENT || sk->state == TCP_SYN_RECV))
sk1079net/ipv4/tcp.csk->err = icmp_err_convert[code].errno;
sk1080net/ipv4/tcp.cif (sk->state == TCP_SYN_SENT || sk->state == TCP_SYN_RECV) 
sk1083net/ipv4/tcp.ctcp_set_state(sk,TCP_CLOSE);
sk1084net/ipv4/tcp.csk->error_report(sk);    /* Wake people up to see the error (see connect in sock.c) */
sk1097net/ipv4/tcp.cstatic int tcp_readable(struct sock *sk)
sk1105net/ipv4/tcp.cif(sk && sk->debug)
sk1106net/ipv4/tcp.cprintk("tcp_readable: %p - ",sk);
sk1110net/ipv4/tcp.cif (sk == NULL || (skb = skb_peek(&sk->receive_queue)) == NULL)
sk1113net/ipv4/tcp.cif(sk && sk->debug) 
sk1118net/ipv4/tcp.ccounted = sk->copied_seq;  /* Where we are at the moment */
sk1160net/ipv4/tcp.cwhile(skb != (struct sk_buff *)&sk->receive_queue);
sk1163net/ipv4/tcp.cif(sk->debug)
sk1171net/ipv4/tcp.cstatic int tcp_listen_select(struct sock *sk, int sel_type, select_table *wait)
sk1176net/ipv4/tcp.csk->inuse = 1;
sk1177net/ipv4/tcp.cretval = (tcp_find_established(sk) != NULL);
sk1178net/ipv4/tcp.crelease_sock(sk);
sk1194net/ipv4/tcp.cstatic int tcp_select(struct sock *sk, int sel_type, select_table *wait)
sk1196net/ipv4/tcp.cif (sk->state == TCP_LISTEN)
sk1197net/ipv4/tcp.creturn tcp_listen_select(sk, sel_type, wait);
sk1201net/ipv4/tcp.cif (sk->err)
sk1203net/ipv4/tcp.cif (sk->state == TCP_SYN_SENT || sk->state == TCP_SYN_RECV)
sk1206net/ipv4/tcp.cif (sk->shutdown & RCV_SHUTDOWN)
sk1209net/ipv4/tcp.cif (sk->acked_seq == sk->copied_seq)
sk1212net/ipv4/tcp.cif (sk->urg_seq != sk->copied_seq ||
sk1213net/ipv4/tcp.csk->acked_seq != sk->copied_seq+1 ||
sk1214net/ipv4/tcp.csk->urginline || !sk->urg_data)
sk1219net/ipv4/tcp.cif (sk->err)
sk1221net/ipv4/tcp.cif (sk->shutdown & SEND_SHUTDOWN) 
sk1223net/ipv4/tcp.cif (sk->state == TCP_SYN_SENT || sk->state == TCP_SYN_RECV)
sk1230net/ipv4/tcp.cif (sk->prot->wspace(sk) < sk->mtu+128+sk->prot->max_header)
sk1235net/ipv4/tcp.cif (sk->urg_data)
sk1239net/ipv4/tcp.cselect_wait(sk->sleep, wait);
sk1243net/ipv4/tcp.cint tcp_ioctl(struct sock *sk, int cmd, unsigned long arg)
sk1256net/ipv4/tcp.cif (sk->state == TCP_LISTEN) 
sk1259net/ipv4/tcp.csk->inuse = 1;
sk1260net/ipv4/tcp.camount = tcp_readable(sk);
sk1261net/ipv4/tcp.crelease_sock(sk);
sk1270net/ipv4/tcp.cint answ = sk->urg_data && sk->urg_seq == sk->copied_seq;
sk1282net/ipv4/tcp.cif (sk->state == TCP_LISTEN) return(-EINVAL);
sk1283net/ipv4/tcp.camount = sk->prot->wspace(sk);
sk1312net/ipv4/tcp.cunsigned long daddr, int len, struct sock *sk)
sk1325net/ipv4/tcp.cstatic void tcp_send_skb(struct sock *sk, struct sk_buff *skb)
sk1379net/ipv4/tcp.cif (after(skb->h.seq, sk->window_seq) ||
sk1380net/ipv4/tcp.c(sk->retransmits && sk->ip_xmit_timeout == TIME_WRITE) ||
sk1381net/ipv4/tcp.csk->packets_out >= sk->cong_window) 
sk1391net/ipv4/tcp.cskb_queue_tail(&sk->write_queue, skb);
sk1400net/ipv4/tcp.cif (before(sk->window_seq, sk->write_queue.next->h.seq) &&
sk1401net/ipv4/tcp.csk->send_head == NULL && sk->ack_backlog == 0)
sk1402net/ipv4/tcp.creset_xmit_timer(sk, TIME_PROBE0, sk->rto);
sk1410net/ipv4/tcp.cth->ack_seq = ntohl(sk->acked_seq);
sk1411net/ipv4/tcp.cth->window = ntohs(tcp_select_window(sk));
sk1413net/ipv4/tcp.ctcp_send_check(th, sk->saddr, sk->daddr, size, sk);
sk1415net/ipv4/tcp.csk->sent_seq = sk->write_seq;
sk1423net/ipv4/tcp.csk->prot->queue_xmit(sk, skb->dev, skb, 0);
sk1431net/ipv4/tcp.creset_xmit_timer(sk, TIME_WRITE, sk->rto);
sk1444net/ipv4/tcp.cstruct sk_buff * tcp_dequeue_partial(struct sock * sk)
sk1451net/ipv4/tcp.cskb = sk->partial;
sk1453net/ipv4/tcp.csk->partial = NULL;
sk1454net/ipv4/tcp.cdel_timer(&sk->partial_timer);
sk1464net/ipv4/tcp.cstatic void tcp_send_partial(struct sock *sk)
sk1468net/ipv4/tcp.cif (sk == NULL)
sk1470net/ipv4/tcp.cwhile ((skb = tcp_dequeue_partial(sk)) != NULL)
sk1471net/ipv4/tcp.ctcp_send_skb(sk, skb);
sk1478net/ipv4/tcp.cvoid tcp_enqueue_partial(struct sk_buff * skb, struct sock * sk)
sk1485net/ipv4/tcp.ctmp = sk->partial;
sk1487net/ipv4/tcp.cdel_timer(&sk->partial_timer);
sk1488net/ipv4/tcp.csk->partial = skb;
sk1489net/ipv4/tcp.cinit_timer(&sk->partial_timer);
sk1493net/ipv4/tcp.csk->partial_timer.expires = jiffies+HZ;
sk1494net/ipv4/tcp.csk->partial_timer.function = (void (*)(unsigned long)) tcp_send_partial;
sk1495net/ipv4/tcp.csk->partial_timer.data = (unsigned long) sk;
sk1496net/ipv4/tcp.cadd_timer(&sk->partial_timer);
sk1499net/ipv4/tcp.ctcp_send_skb(sk, tmp);
sk1508net/ipv4/tcp.cstruct sock *sk,
sk1516net/ipv4/tcp.cif(sk->zapped)
sk1524net/ipv4/tcp.cbuff = sk->prot->wmalloc(sk, MAX_ACK_SIZE, 1, GFP_ATOMIC);
sk1534net/ipv4/tcp.csk->ack_backlog++;
sk1535net/ipv4/tcp.cif (sk->ip_xmit_timeout != TIME_WRITE && tcp_connected(sk->state)) 
sk1537net/ipv4/tcp.creset_xmit_timer(sk, TIME_WRITE, HZ);
sk1546net/ipv4/tcp.cbuff->sk = sk;
sk1547net/ipv4/tcp.cbuff->localroute = sk->localroute;
sk1553net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, daddr, &dev,
sk1554net/ipv4/tcp.cIPPROTO_TCP, sk->opt, MAX_ACK_SIZE,sk->ip_tos,sk->ip_ttl);
sk1558net/ipv4/tcp.csk->prot->wfree(sk, buff);
sk1573net/ipv4/tcp.csk->window = tcp_select_window(sk);
sk1574net/ipv4/tcp.ct1->window = ntohs(sk->window);
sk1589net/ipv4/tcp.cif (ack == sk->acked_seq) 
sk1591net/ipv4/tcp.csk->ack_backlog = 0;
sk1592net/ipv4/tcp.csk->bytes_rcv = 0;
sk1593net/ipv4/tcp.csk->ack_timed = 0;
sk1594net/ipv4/tcp.cif (sk->send_head == NULL && skb_peek(&sk->write_queue) == NULL
sk1595net/ipv4/tcp.c&& sk->ip_xmit_timeout == TIME_WRITE) 
sk1597net/ipv4/tcp.cif(sk->keepopen) {
sk1598net/ipv4/tcp.creset_xmit_timer(sk,TIME_KEEPOPEN,TCP_TIMEOUT_LEN);
sk1600net/ipv4/tcp.cdelete_timer(sk);
sk1611net/ipv4/tcp.ctcp_send_check(t1, sk->saddr, daddr, sizeof(*t1), sk);
sk1612net/ipv4/tcp.cif (sk->debug)
sk1615net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
sk1623net/ipv4/tcp.cextern __inline int tcp_build_header(struct tcphdr *th, struct sock *sk, int push)
sk1626net/ipv4/tcp.cmemcpy(th,(void *) &(sk->dummy_th), sizeof(*th));
sk1627net/ipv4/tcp.cth->seq = htonl(sk->write_seq);
sk1632net/ipv4/tcp.csk->ack_backlog = 0;
sk1633net/ipv4/tcp.csk->bytes_rcv = 0;
sk1634net/ipv4/tcp.csk->ack_timed = 0;
sk1635net/ipv4/tcp.cth->ack_seq = htonl(sk->acked_seq);
sk1636net/ipv4/tcp.csk->window = tcp_select_window(sk);
sk1637net/ipv4/tcp.cth->window = htons(sk->window);
sk1647net/ipv4/tcp.cstatic int tcp_write(struct sock *sk, const unsigned char *from,
sk1658net/ipv4/tcp.csk->inuse=1;
sk1659net/ipv4/tcp.cprot = sk->prot;
sk1662net/ipv4/tcp.cif (sk->err) 
sk1664net/ipv4/tcp.crelease_sock(sk);
sk1667net/ipv4/tcp.ctmp = -sk->err;
sk1668net/ipv4/tcp.csk->err = 0;
sk1676net/ipv4/tcp.cif (sk->shutdown & SEND_SHUTDOWN) 
sk1678net/ipv4/tcp.crelease_sock(sk);
sk1679net/ipv4/tcp.csk->err = EPIPE;
sk1682net/ipv4/tcp.csk->err = 0;
sk1690net/ipv4/tcp.cwhile(sk->state != TCP_ESTABLISHED && sk->state != TCP_CLOSE_WAIT) 
sk1692net/ipv4/tcp.cif (sk->err) 
sk1694net/ipv4/tcp.crelease_sock(sk);
sk1697net/ipv4/tcp.ctmp = -sk->err;
sk1698net/ipv4/tcp.csk->err = 0;
sk1702net/ipv4/tcp.cif (sk->state != TCP_SYN_SENT && sk->state != TCP_SYN_RECV) 
sk1704net/ipv4/tcp.crelease_sock(sk);
sk1708net/ipv4/tcp.cif (sk->err) 
sk1710net/ipv4/tcp.ctmp = -sk->err;
sk1711net/ipv4/tcp.csk->err = 0;
sk1715net/ipv4/tcp.cif (sk->keepopen) 
sk1724net/ipv4/tcp.crelease_sock(sk);
sk1730net/ipv4/tcp.crelease_sock(sk);
sk1733net/ipv4/tcp.cif (sk->state != TCP_ESTABLISHED &&
sk1734net/ipv4/tcp.csk->state != TCP_CLOSE_WAIT && sk->err == 0) 
sk1736net/ipv4/tcp.cinterruptible_sleep_on(sk->sleep);
sk1745net/ipv4/tcp.csk->inuse = 1;
sk1765net/ipv4/tcp.cif ((skb = tcp_dequeue_partial(sk)) != NULL) 
sk1776net/ipv4/tcp.ccopy = min(sk->mss - (skb->len - hdrlen), len);
sk1788net/ipv4/tcp.csk->write_seq += copy;
sk1790net/ipv4/tcp.cif ((skb->len - hdrlen) >= sk->mss ||
sk1791net/ipv4/tcp.c(flags & MSG_OOB) || !sk->packets_out)
sk1792net/ipv4/tcp.ctcp_send_skb(sk, skb);
sk1794net/ipv4/tcp.ctcp_enqueue_partial(skb, sk);
sk1810net/ipv4/tcp.ccopy = sk->window_seq - sk->write_seq;
sk1811net/ipv4/tcp.cif (copy <= 0 || copy < (sk->max_window >> 1) || copy > sk->mss)
sk1812net/ipv4/tcp.ccopy = sk->mss;
sk1821net/ipv4/tcp.cif (copy < sk->mss && !(flags & MSG_OOB)) 
sk1826net/ipv4/tcp.crelease_sock(sk);
sk1831net/ipv4/tcp.cskb = prot->wmalloc(sk, sk->mtu + 128 + prot->max_header + 15, 0, GFP_KERNEL);
sk1832net/ipv4/tcp.csk->inuse = 1;
sk1840net/ipv4/tcp.crelease_sock(sk);
sk1841net/ipv4/tcp.cskb = prot->wmalloc(sk, copy + prot->max_header + 15 , 0, GFP_KERNEL);
sk1842net/ipv4/tcp.csk->inuse = 1;
sk1851net/ipv4/tcp.csk->socket->flags |= SO_NOSPACE;
sk1854net/ipv4/tcp.crelease_sock(sk);
sk1864net/ipv4/tcp.ctmp = sk->wmem_alloc;
sk1865net/ipv4/tcp.crelease_sock(sk);
sk1870net/ipv4/tcp.cif (tmp <= sk->wmem_alloc &&
sk1871net/ipv4/tcp.c(sk->state == TCP_ESTABLISHED||sk->state == TCP_CLOSE_WAIT)
sk1872net/ipv4/tcp.c&& sk->err == 0) 
sk1874net/ipv4/tcp.csk->socket->flags &= ~SO_NOSPACE;
sk1875net/ipv4/tcp.cinterruptible_sleep_on(sk->sleep);
sk1884net/ipv4/tcp.csk->inuse = 1;
sk1889net/ipv4/tcp.cskb->sk = sk;
sk1891net/ipv4/tcp.cskb->localroute = sk->localroute|(flags&MSG_DONTROUTE);
sk1898net/ipv4/tcp.ctmp = prot->build_header(skb, sk->saddr, sk->daddr, &dev,
sk1899net/ipv4/tcp.cIPPROTO_TCP, sk->opt, skb->truesize,sk->ip_tos,sk->ip_ttl);
sk1902net/ipv4/tcp.cprot->wfree(sk, skb);
sk1903net/ipv4/tcp.crelease_sock(sk);
sk1910net/ipv4/tcp.ctmp = tcp_build_header(skb->h.th, sk, len-copy);
sk1913net/ipv4/tcp.cprot->wfree(sk, skb);
sk1914net/ipv4/tcp.crelease_sock(sk);
sk1932net/ipv4/tcp.csk->write_seq += copy;
sk1934net/ipv4/tcp.cif (send_tmp != NULL && sk->packets_out) 
sk1936net/ipv4/tcp.ctcp_enqueue_partial(send_tmp, sk);
sk1939net/ipv4/tcp.ctcp_send_skb(sk, skb);
sk1941net/ipv4/tcp.csk->err = 0;
sk1954net/ipv4/tcp.cif(sk->partial && ((!sk->packets_out) 
sk1956net/ipv4/tcp.c|| (sk->nonagle && before(sk->write_seq , sk->window_seq))
sk1958net/ipv4/tcp.ctcp_send_partial(sk);
sk1960net/ipv4/tcp.crelease_sock(sk);
sk1968net/ipv4/tcp.cstatic int tcp_sendto(struct sock *sk, const unsigned char *from,
sk1974net/ipv4/tcp.cif (sk->state == TCP_CLOSE)
sk1980net/ipv4/tcp.cif (addr->sin_port != sk->dummy_th.dest) 
sk1982net/ipv4/tcp.cif (addr->sin_addr.s_addr != sk->daddr) 
sk1984net/ipv4/tcp.creturn tcp_write(sk, from, len, nonblock, flags);
sk1993net/ipv4/tcp.cstatic void tcp_read_wakeup(struct sock *sk)
sk2000net/ipv4/tcp.cif (!sk->ack_backlog) 
sk2007net/ipv4/tcp.cif ((sk->state == TCP_CLOSE) || (sk->state == TCP_TIME_WAIT))
sk2021net/ipv4/tcp.cbuff = sk->prot->wmalloc(sk,MAX_ACK_SIZE,1, GFP_ATOMIC);
sk2025net/ipv4/tcp.creset_xmit_timer(sk, TIME_WRITE, HZ);
sk2029net/ipv4/tcp.cbuff->sk = sk;
sk2030net/ipv4/tcp.cbuff->localroute = sk->localroute;
sk2036net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
sk2037net/ipv4/tcp.cIPPROTO_TCP, sk->opt, MAX_ACK_SIZE,sk->ip_tos,sk->ip_ttl);
sk2041net/ipv4/tcp.csk->prot->wfree(sk, buff);
sk2047net/ipv4/tcp.cmemcpy(t1,(void *) &sk->dummy_th, sizeof(*t1));
sk2048net/ipv4/tcp.ct1->seq = htonl(sk->sent_seq);
sk2056net/ipv4/tcp.csk->ack_backlog = 0;
sk2057net/ipv4/tcp.csk->bytes_rcv = 0;
sk2058net/ipv4/tcp.csk->window = tcp_select_window(sk);
sk2059net/ipv4/tcp.ct1->window = ntohs(sk->window);
sk2060net/ipv4/tcp.ct1->ack_seq = ntohl(sk->acked_seq);
sk2062net/ipv4/tcp.ctcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), sk);
sk2063net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
sk2075net/ipv4/tcp.cstatic void cleanup_rbuf(struct sock *sk)
sk2082net/ipv4/tcp.cif(sk->debug)
sk2083net/ipv4/tcp.cprintk("cleaning rbuf for sk=%p\n", sk);
sk2088net/ipv4/tcp.cleft = sk->prot->rspace(sk);
sk2095net/ipv4/tcp.cwhile((skb=skb_peek(&sk->receive_queue)) != NULL) 
sk2100net/ipv4/tcp.cskb->sk = sk;
sk2113net/ipv4/tcp.cif(sk->debug)
sk2114net/ipv4/tcp.cprintk("sk->rspace = %lu, was %lu\n", sk->prot->rspace(sk),
sk2116net/ipv4/tcp.cif ((rspace=sk->prot->rspace(sk)) != left) 
sk2128net/ipv4/tcp.csk->ack_backlog++;
sk2138net/ipv4/tcp.cif (rspace > (sk->window - sk->bytes_rcv + sk->mtu)) 
sk2141net/ipv4/tcp.ctcp_read_wakeup(sk);
sk2146net/ipv4/tcp.cint was_active = del_timer(&sk->retransmit_timer);
sk2147net/ipv4/tcp.cif (!was_active || jiffies+TCP_ACK_TIME < sk->timer.expires) 
sk2149net/ipv4/tcp.creset_xmit_timer(sk, TIME_WRITE, TCP_ACK_TIME);
sk2152net/ipv4/tcp.cadd_timer(&sk->retransmit_timer);
sk2163net/ipv4/tcp.cstatic int tcp_read_urg(struct sock * sk, int nonblock,
sk2169net/ipv4/tcp.cif (sk->urginline || !sk->urg_data || sk->urg_data == URG_READ)
sk2172net/ipv4/tcp.cif (sk->err) 
sk2174net/ipv4/tcp.cint tmp = -sk->err;
sk2175net/ipv4/tcp.csk->err = 0;
sk2179net/ipv4/tcp.cif (sk->state == TCP_CLOSE || sk->done) 
sk2181net/ipv4/tcp.cif (!sk->done) {
sk2182net/ipv4/tcp.csk->done = 1;
sk2188net/ipv4/tcp.cif (sk->shutdown & RCV_SHUTDOWN) 
sk2190net/ipv4/tcp.csk->done = 1;
sk2193net/ipv4/tcp.csk->inuse = 1;
sk2194net/ipv4/tcp.cif (sk->urg_data & URG_VALID) 
sk2196net/ipv4/tcp.cchar c = sk->urg_data;
sk2198net/ipv4/tcp.csk->urg_data = URG_READ;
sk2200net/ipv4/tcp.crelease_sock(sk);
sk2203net/ipv4/tcp.crelease_sock(sk);
sk2220net/ipv4/tcp.cstatic int tcp_read(struct sock *sk, unsigned char *to,
sk2233net/ipv4/tcp.cif (sk->state == TCP_LISTEN)
sk2241net/ipv4/tcp.creturn tcp_read_urg(sk, nonblock, to, len, flags);
sk2249net/ipv4/tcp.cpeek_seq = sk->copied_seq;
sk2250net/ipv4/tcp.cseq = &sk->copied_seq;
sk2254net/ipv4/tcp.cadd_wait_queue(sk->sleep, &wait);
sk2255net/ipv4/tcp.csk->inuse = 1;
sk2265net/ipv4/tcp.cif (copied && sk->urg_data && sk->urg_seq == *seq)
sk2274net/ipv4/tcp.cskb = skb_peek(&sk->receive_queue);
sk2292net/ipv4/tcp.cwhile (skb != (struct sk_buff *)&sk->receive_queue);
sk2297net/ipv4/tcp.cif (sk->err) 
sk2299net/ipv4/tcp.ccopied = -sk->err;
sk2300net/ipv4/tcp.csk->err = 0;
sk2304net/ipv4/tcp.cif (sk->state == TCP_CLOSE) 
sk2306net/ipv4/tcp.cif (!sk->done) 
sk2308net/ipv4/tcp.csk->done = 1;
sk2315net/ipv4/tcp.cif (sk->shutdown & RCV_SHUTDOWN) 
sk2317net/ipv4/tcp.csk->done = 1;
sk2327net/ipv4/tcp.ccleanup_rbuf(sk);
sk2328net/ipv4/tcp.crelease_sock(sk);
sk2329net/ipv4/tcp.csk->socket->flags |= SO_WAITDATA;
sk2331net/ipv4/tcp.csk->socket->flags &= ~SO_WAITDATA;
sk2332net/ipv4/tcp.csk->inuse = 1;
sk2362net/ipv4/tcp.cif (sk->urg_data) 
sk2364net/ipv4/tcp.cu32 urg_offset = sk->urg_seq - *seq;
sk2369net/ipv4/tcp.cif (!sk->urginline) 
sk2408net/ipv4/tcp.cif (after(sk->copied_seq,sk->urg_seq))
sk2409net/ipv4/tcp.csk->urg_data = 0;
sk2434net/ipv4/tcp.csk->shutdown |= RCV_SHUTDOWN;
sk2438net/ipv4/tcp.cremove_wait_queue(sk->sleep, &wait);
sk2442net/ipv4/tcp.ccleanup_rbuf(sk);
sk2443net/ipv4/tcp.crelease_sock(sk);
sk2454net/ipv4/tcp.cstatic int tcp_close_state(struct sock *sk, int dead)
sk2458net/ipv4/tcp.cswitch(sk->state)
sk2470net/ipv4/tcp.cns=sk->state;
sk2481net/ipv4/tcp.ctcp_set_state(sk,ns);
sk2494net/ipv4/tcp.cint timer_active=del_timer(&sk->timer);
sk2496net/ipv4/tcp.cadd_timer(&sk->timer);
sk2498net/ipv4/tcp.creset_msl_timer(sk, TIME_CLOSE, TCP_FIN_TIMEOUT);
sk2508net/ipv4/tcp.cstatic void tcp_send_fin(struct sock *sk)
sk2510net/ipv4/tcp.cstruct proto *prot =(struct proto *)sk->prot;
sk2511net/ipv4/tcp.cstruct tcphdr *th =(struct tcphdr *)&sk->dummy_th;
sk2517net/ipv4/tcp.crelease_sock(sk); /* in case the malloc sleeps. */
sk2519net/ipv4/tcp.cbuff = prot->wmalloc(sk, MAX_RESET_SIZE,1 , GFP_KERNEL);
sk2520net/ipv4/tcp.csk->inuse = 1;
sk2533net/ipv4/tcp.cbuff->sk = sk;
sk2534net/ipv4/tcp.cbuff->localroute = sk->localroute;
sk2540net/ipv4/tcp.ctmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev,
sk2541net/ipv4/tcp.cIPPROTO_TCP, sk->opt,
sk2542net/ipv4/tcp.csizeof(struct tcphdr),sk->ip_tos,sk->ip_ttl);
sk2552net/ipv4/tcp.cprot->wfree(sk,buff);
sk2553net/ipv4/tcp.csk->write_seq++;
sk2554net/ipv4/tcp.ct=del_timer(&sk->timer);
sk2556net/ipv4/tcp.cadd_timer(&sk->timer);
sk2558net/ipv4/tcp.creset_msl_timer(sk, TIME_CLOSE, TCP_TIMEWAIT_LEN);
sk2570net/ipv4/tcp.ct1->seq = ntohl(sk->write_seq);
sk2571net/ipv4/tcp.csk->write_seq++;
sk2572net/ipv4/tcp.cbuff->h.seq = sk->write_seq;
sk2574net/ipv4/tcp.ct1->ack_seq = ntohl(sk->acked_seq);
sk2575net/ipv4/tcp.ct1->window = ntohs(sk->window=tcp_select_window(sk));
sk2579net/ipv4/tcp.ctcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), sk);
sk2586net/ipv4/tcp.cif (skb_peek(&sk->write_queue) != NULL) 
sk2594net/ipv4/tcp.cskb_queue_tail(&sk->write_queue, buff);
sk2598net/ipv4/tcp.csk->sent_seq = sk->write_seq;
sk2599net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 0);
sk2600net/ipv4/tcp.creset_xmit_timer(sk, TIME_WRITE, sk->rto);
sk2609net/ipv4/tcp.cvoid tcp_shutdown(struct sock *sk, int how)
sk2624net/ipv4/tcp.cif (sk->state == TCP_FIN_WAIT1 ||
sk2625net/ipv4/tcp.csk->state == TCP_FIN_WAIT2 ||
sk2626net/ipv4/tcp.csk->state == TCP_CLOSING ||
sk2627net/ipv4/tcp.csk->state == TCP_LAST_ACK ||
sk2628net/ipv4/tcp.csk->state == TCP_TIME_WAIT || 
sk2629net/ipv4/tcp.csk->state == TCP_CLOSE ||
sk2630net/ipv4/tcp.csk->state == TCP_LISTEN
sk2635net/ipv4/tcp.csk->inuse = 1;
sk2641net/ipv4/tcp.csk->shutdown |= SEND_SHUTDOWN;
sk2647net/ipv4/tcp.cif (sk->partial)
sk2648net/ipv4/tcp.ctcp_send_partial(sk);
sk2654net/ipv4/tcp.cif(tcp_close_state(sk,0))
sk2655net/ipv4/tcp.ctcp_send_fin(sk);
sk2657net/ipv4/tcp.crelease_sock(sk);
sk2662net/ipv4/tcp.ctcp_recvfrom(struct sock *sk, unsigned char *to,
sk2676net/ipv4/tcp.cresult=tcp_read(sk, to, to_len, nonblock, flags);
sk2684net/ipv4/tcp.caddr->sin_port = sk->dummy_th.dest;
sk2685net/ipv4/tcp.caddr->sin_addr.s_addr = sk->daddr;
sk2719net/ipv4/tcp.cbuff->sk = NULL;
sk2786net/ipv4/tcp.cstatic void tcp_options(struct sock *sk, struct tcphdr *th)
sk2815net/ipv4/tcp.csk->mtu=min(sk->mtu,ntohs(*(unsigned short *)ptr));
sk2828net/ipv4/tcp.csk->mtu=min(sk->mtu, 536);  /* default MSS if none sent */
sk2831net/ipv4/tcp.csk->mss = min(sk->max_window >> 1, sk->mtu);
sk2833net/ipv4/tcp.csk->mss = min(sk->max_window, sk->mtu);
sk2871net/ipv4/tcp.cstatic void tcp_conn_request(struct sock *sk, struct sk_buff *skb,
sk2887net/ipv4/tcp.cif (!sk->dead) 
sk2889net/ipv4/tcp.csk->data_ready(sk,0);
sk2893net/ipv4/tcp.cif(sk->debug)
sk2894net/ipv4/tcp.cprintk("Reset on %p: Connect on dead socket.\n",sk);
sk2895net/ipv4/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl);
sk2906net/ipv4/tcp.cif (sk->ack_backlog >= sk->max_ack_backlog) 
sk2930net/ipv4/tcp.cmemcpy(newsk, sk, sizeof(*newsk));
sk2933net/ipv4/tcp.csk->opt = (struct options*)kmalloc(sizeof(struct options)+opt->optlen, GFP_ATOMIC);
sk2934net/ipv4/tcp.cif (!sk->opt) {
sk2940net/ipv4/tcp.cif (ip_options_echo(sk->opt, opt, daddr, saddr, skb)) {
sk2941net/ipv4/tcp.ckfree_s(sk->opt, sizeof(struct options)+opt->optlen);
sk2969net/ipv4/tcp.cnewsk->localroute = sk->localroute;
sk3023net/ipv4/tcp.cnewsk->ip_ttl=sk->ip_ttl;
sk3041net/ipv4/tcp.cif (sk->user_mss)
sk3042net/ipv4/tcp.cnewsk->mtu = sk->user_mss;
sk3074net/ipv4/tcp.csk->err = ENOMEM;
sk3084net/ipv4/tcp.cbuff->sk = newsk;
sk3091net/ipv4/tcp.ctmp = sk->prot->build_header(buff, newsk->saddr, newsk->daddr, &ndev,
sk3092net/ipv4/tcp.cIPPROTO_TCP, NULL, MAX_SYN_SIZE,sk->ip_tos,sk->ip_ttl);
sk3100net/ipv4/tcp.csk->err = tmp;
sk3106net/ipv4/tcp.cskb->sk = sk;
sk3143net/ipv4/tcp.cskb->sk = newsk;
sk3149net/ipv4/tcp.csk->rmem_alloc -= skb->truesize;
sk3152net/ipv4/tcp.cskb_queue_tail(&sk->receive_queue,skb);
sk3153net/ipv4/tcp.csk->ack_backlog++;
sk3159net/ipv4/tcp.cstatic void tcp_close(struct sock *sk, int timeout)
sk3166net/ipv4/tcp.csk->inuse = 1;
sk3168net/ipv4/tcp.cif(th_cache_sk==sk)
sk3170net/ipv4/tcp.cif(sk->state == TCP_LISTEN)
sk3173net/ipv4/tcp.ctcp_set_state(sk, TCP_CLOSE);
sk3174net/ipv4/tcp.ctcp_close_pending(sk);
sk3175net/ipv4/tcp.crelease_sock(sk);
sk3179net/ipv4/tcp.csk->keepopen = 1;
sk3180net/ipv4/tcp.csk->shutdown = SHUTDOWN_MASK;
sk3182net/ipv4/tcp.cif (!sk->dead) 
sk3183net/ipv4/tcp.csk->state_change(sk);
sk3195net/ipv4/tcp.cwhile((skb=skb_dequeue(&sk->receive_queue))!=NULL)
sk3201net/ipv4/tcp.cif (sk->partial) 
sk3202net/ipv4/tcp.ctcp_send_partial(sk);
sk3213net/ipv4/tcp.ctcp_set_state(sk, TCP_CLOSE);  /* Dead */
sk3217net/ipv4/tcp.cif(tcp_close_state(sk,1)==1)
sk3219net/ipv4/tcp.ctcp_send_fin(sk);
sk3222net/ipv4/tcp.crelease_sock(sk);
sk3232net/ipv4/tcp.cstatic void tcp_write_xmit(struct sock *sk)
sk3241net/ipv4/tcp.cif(sk->zapped)
sk3252net/ipv4/tcp.cwhile((skb = skb_peek(&sk->write_queue)) != NULL &&
sk3253net/ipv4/tcp.cbefore(skb->h.seq, sk->window_seq + 1) &&
sk3254net/ipv4/tcp.c(sk->retransmits == 0 ||
sk3255net/ipv4/tcp.csk->ip_xmit_timeout != TIME_WRITE ||
sk3256net/ipv4/tcp.cbefore(skb->h.seq, sk->rcv_ack_seq + 1))
sk3257net/ipv4/tcp.c&& sk->packets_out < sk->cong_window) 
sk3266net/ipv4/tcp.cif (before(skb->h.seq, sk->rcv_ack_seq +1)) 
sk3273net/ipv4/tcp.csk->retransmits = 0;
sk3275net/ipv4/tcp.cif (!sk->dead) 
sk3276net/ipv4/tcp.csk->write_space(sk);
sk3294net/ipv4/tcp.cth->ack_seq = ntohl(sk->acked_seq);
sk3295net/ipv4/tcp.cth->window = ntohs(tcp_select_window(sk));
sk3297net/ipv4/tcp.ctcp_send_check(th, sk->saddr, sk->daddr, size, sk);
sk3299net/ipv4/tcp.csk->sent_seq = skb->h.seq;
sk3305net/ipv4/tcp.csk->prot->queue_xmit(sk, skb->dev, skb, skb->free);
sk3311net/ipv4/tcp.creset_xmit_timer(sk, TIME_WRITE, sk->rto);
sk3321net/ipv4/tcp.cextern __inline__ int tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len)
sk3333net/ipv4/tcp.cif(sk->zapped)
sk3342net/ipv4/tcp.cif (ntohs(th->window) > sk->max_window) 
sk3344net/ipv4/tcp.csk->max_window = ntohs(th->window);
sk3348net/ipv4/tcp.csk->mss = min(sk->max_window>>1, sk->mtu);
sk3350net/ipv4/tcp.csk->mss = min(sk->max_window, sk->mtu);
sk3359net/ipv4/tcp.cif (sk->retransmits && sk->ip_xmit_timeout == TIME_KEEPOPEN)
sk3360net/ipv4/tcp.csk->retransmits = 0;
sk3367net/ipv4/tcp.cif (after(ack, sk->sent_seq) || before(ack, sk->rcv_ack_seq)) 
sk3369net/ipv4/tcp.cif(sk->debug)
sk3370net/ipv4/tcp.cprintk("Ack ignored %u %u\n",ack,sk->sent_seq);
sk3376net/ipv4/tcp.cif (after(ack, sk->sent_seq)) 
sk3385net/ipv4/tcp.cif (sk->keepopen) 
sk3387net/ipv4/tcp.cif(sk->ip_xmit_timeout==TIME_KEEPOPEN)
sk3388net/ipv4/tcp.creset_xmit_timer(sk, TIME_KEEPOPEN, TCP_TIMEOUT_LEN);
sk3404net/ipv4/tcp.cif (after(sk->window_seq, ack+ntohs(th->window))) 
sk3417net/ipv4/tcp.cskb2 = sk->send_head;
sk3418net/ipv4/tcp.csk->send_head = NULL;
sk3419net/ipv4/tcp.csk->send_tail = NULL;
sk3428net/ipv4/tcp.csk->window_seq = ack + ntohs(th->window);
sk3435net/ipv4/tcp.cif (after(skb->h.seq, sk->window_seq)) 
sk3437net/ipv4/tcp.cif (sk->packets_out > 0) 
sk3438net/ipv4/tcp.csk->packets_out--;
sk3446net/ipv4/tcp.cskb_queue_head(&sk->write_queue,skb);
sk3453net/ipv4/tcp.cif (sk->send_head == NULL) 
sk3455net/ipv4/tcp.csk->send_head = skb;
sk3456net/ipv4/tcp.csk->send_tail = skb;
sk3460net/ipv4/tcp.csk->send_tail->link3 = skb;
sk3461net/ipv4/tcp.csk->send_tail = skb;
sk3473net/ipv4/tcp.cif (sk->send_tail == NULL || sk->send_head == NULL) 
sk3475net/ipv4/tcp.csk->send_head = NULL;
sk3476net/ipv4/tcp.csk->send_tail = NULL;
sk3477net/ipv4/tcp.csk->packets_out= 0;
sk3484net/ipv4/tcp.csk->window_seq = ack + ntohs(th->window);
sk3490net/ipv4/tcp.cif (sk->ip_xmit_timeout == TIME_WRITE && 
sk3491net/ipv4/tcp.csk->cong_window < 2048 && after(ack, sk->rcv_ack_seq)) 
sk3502net/ipv4/tcp.cif (sk->cong_window < sk->ssthresh)  
sk3506net/ipv4/tcp.csk->cong_window++;
sk3513net/ipv4/tcp.cif (sk->cong_count >= sk->cong_window) 
sk3515net/ipv4/tcp.csk->cong_window++;
sk3516net/ipv4/tcp.csk->cong_count = 0;
sk3519net/ipv4/tcp.csk->cong_count++;
sk3527net/ipv4/tcp.csk->rcv_ack_seq = ack;
sk3535net/ipv4/tcp.cif (sk->ip_xmit_timeout == TIME_PROBE0) 
sk3537net/ipv4/tcp.csk->retransmits = 0;  /* Our probe was answered */
sk3543net/ipv4/tcp.cif (skb_peek(&sk->write_queue) != NULL &&   /* should always be non-null */
sk3544net/ipv4/tcp.c! before (sk->window_seq, sk->write_queue.next->h.seq)) 
sk3546net/ipv4/tcp.csk->backoff = 0;
sk3552net/ipv4/tcp.csk->rto = ((sk->rtt >> 2) + sk->mdev) >> 1;
sk3553net/ipv4/tcp.cif (sk->rto > 120*HZ)
sk3554net/ipv4/tcp.csk->rto = 120*HZ;
sk3555net/ipv4/tcp.cif (sk->rto < 20)  /* Was 1*HZ, then 1 - turns out we must allow about
sk3558net/ipv4/tcp.csk->rto = 20;
sk3566net/ipv4/tcp.cwhile(sk->send_head != NULL) 
sk3569net/ipv4/tcp.cif (sk->send_head->link3 &&
sk3570net/ipv4/tcp.cafter(sk->send_head->h.seq, sk->send_head->link3->h.seq)) 
sk3578net/ipv4/tcp.cif (before(sk->send_head->h.seq, ack+1)) 
sk3581net/ipv4/tcp.cif (sk->retransmits) 
sk3596net/ipv4/tcp.cif (sk->send_head->link3)  /* Any more queued retransmits? */
sk3597net/ipv4/tcp.csk->retransmits = 1;
sk3599net/ipv4/tcp.csk->retransmits = 0;
sk3617net/ipv4/tcp.cif (sk->packets_out > 0) 
sk3618net/ipv4/tcp.csk->packets_out --;
sk3622net/ipv4/tcp.cif (!sk->dead) 
sk3623net/ipv4/tcp.csk->write_space(sk);
sk3624net/ipv4/tcp.coskb = sk->send_head;
sk3641net/ipv4/tcp.cm -= (sk->rtt >> 3);    /* m is now error in rtt est */
sk3642net/ipv4/tcp.csk->rtt += m;           /* rtt = 7/8 rtt + 1/8 new */
sk3645net/ipv4/tcp.cm -= (sk->mdev >> 2);   /* similar update on mdev */
sk3646net/ipv4/tcp.csk->mdev += m;        /* mdev = 3/4 mdev + 1/4 new */
sk3652net/ipv4/tcp.csk->rto = ((sk->rtt >> 2) + sk->mdev) >> 1;
sk3653net/ipv4/tcp.cif (sk->rto > 120*HZ)
sk3654net/ipv4/tcp.csk->rto = 120*HZ;
sk3655net/ipv4/tcp.cif (sk->rto < 20)  /* Was 1*HZ - keep .2 as minimum cos of the BSD delayed acks */
sk3656net/ipv4/tcp.csk->rto = 20;
sk3657net/ipv4/tcp.csk->backoff = 0;
sk3662net/ipv4/tcp.coskb = sk->send_head;
sk3664net/ipv4/tcp.csk->send_head = oskb->link3;
sk3665net/ipv4/tcp.cif (sk->send_head == NULL) 
sk3667net/ipv4/tcp.csk->send_tail = NULL;
sk3678net/ipv4/tcp.cif (!sk->dead) 
sk3679net/ipv4/tcp.csk->write_space(sk);
sk3700net/ipv4/tcp.cif (skb_peek(&sk->write_queue) != NULL) 
sk3702net/ipv4/tcp.cif (after (sk->window_seq+1, sk->write_queue.next->h.seq) &&
sk3703net/ipv4/tcp.c(sk->retransmits == 0 || 
sk3704net/ipv4/tcp.csk->ip_xmit_timeout != TIME_WRITE ||
sk3705net/ipv4/tcp.cbefore(sk->write_queue.next->h.seq, sk->rcv_ack_seq + 1))
sk3706net/ipv4/tcp.c&& sk->packets_out < sk->cong_window) 
sk3712net/ipv4/tcp.ctcp_write_xmit(sk);
sk3714net/ipv4/tcp.celse if (before(sk->window_seq, sk->write_queue.next->h.seq) &&
sk3715net/ipv4/tcp.csk->send_head == NULL &&
sk3716net/ipv4/tcp.csk->ack_backlog == 0 &&
sk3717net/ipv4/tcp.csk->state != TCP_TIME_WAIT) 
sk3722net/ipv4/tcp.creset_xmit_timer(sk, TIME_PROBE0, sk->rto);
sk3740net/ipv4/tcp.cswitch(sk->state) {
sk3746net/ipv4/tcp.creset_msl_timer(sk, TIME_CLOSE, TCP_TIMEWAIT_LEN);
sk3758net/ipv4/tcp.cif (sk->send_head || skb_peek(&sk->write_queue) != NULL || sk->ack_backlog) {
sk3759net/ipv4/tcp.creset_xmit_timer(sk, TIME_WRITE, sk->rto);
sk3760net/ipv4/tcp.c} else if (sk->keepopen) {
sk3761net/ipv4/tcp.creset_xmit_timer(sk, TIME_KEEPOPEN, TCP_TIMEOUT_LEN);
sk3763net/ipv4/tcp.cdel_timer(&sk->retransmit_timer);
sk3764net/ipv4/tcp.csk->ip_xmit_timeout = 0;
sk3775net/ipv4/tcp.cif (sk->packets_out == 0 && sk->partial != NULL &&
sk3776net/ipv4/tcp.cskb_peek(&sk->write_queue) == NULL && sk->send_head == NULL) 
sk3779net/ipv4/tcp.ctcp_send_partial(sk);
sk3790net/ipv4/tcp.cif (sk->state == TCP_LAST_ACK) 
sk3792net/ipv4/tcp.cif (!sk->dead)
sk3793net/ipv4/tcp.csk->state_change(sk);
sk3794net/ipv4/tcp.cif(sk->debug)
sk3796net/ipv4/tcp.csk->rcv_ack_seq,sk->write_seq,sk->acked_seq,sk->fin_seq);
sk3797net/ipv4/tcp.cif (sk->rcv_ack_seq == sk->write_seq /*&& sk->acked_seq == sk->fin_seq*/) 
sk3800net/ipv4/tcp.ctcp_set_state(sk,TCP_CLOSE);
sk3801net/ipv4/tcp.csk->shutdown = SHUTDOWN_MASK;
sk3812net/ipv4/tcp.cif (sk->state == TCP_FIN_WAIT1) 
sk3815net/ipv4/tcp.cif (!sk->dead) 
sk3816net/ipv4/tcp.csk->state_change(sk);
sk3817net/ipv4/tcp.cif (sk->rcv_ack_seq == sk->write_seq) 
sk3820net/ipv4/tcp.csk->shutdown |= SEND_SHUTDOWN;
sk3821net/ipv4/tcp.ctcp_set_state(sk, TCP_FIN_WAIT2);
sk3831net/ipv4/tcp.cif (sk->state == TCP_CLOSING) 
sk3834net/ipv4/tcp.cif (!sk->dead) 
sk3835net/ipv4/tcp.csk->state_change(sk);
sk3836net/ipv4/tcp.cif (sk->rcv_ack_seq == sk->write_seq) 
sk3839net/ipv4/tcp.ctcp_time_wait(sk);
sk3847net/ipv4/tcp.cif(sk->state==TCP_SYN_RECV)
sk3849net/ipv4/tcp.ctcp_set_state(sk, TCP_ESTABLISHED);
sk3850net/ipv4/tcp.ctcp_options(sk,th);
sk3851net/ipv4/tcp.csk->dummy_th.dest=th->source;
sk3852net/ipv4/tcp.csk->copied_seq = sk->acked_seq;
sk3853net/ipv4/tcp.cif(!sk->dead)
sk3854net/ipv4/tcp.csk->state_change(sk);
sk3855net/ipv4/tcp.cif(sk->max_window==0)
sk3857net/ipv4/tcp.csk->max_window=32;  /* Sanity check */
sk3858net/ipv4/tcp.csk->mss=min(sk->max_window,sk->mtu);
sk3891net/ipv4/tcp.cif (((!flag) || (flag&4)) && sk->send_head != NULL &&
sk3892net/ipv4/tcp.c(((flag&2) && sk->retransmits) ||
sk3893net/ipv4/tcp.c(sk->send_head->when + sk->rto < jiffies))) 
sk3895net/ipv4/tcp.cif(sk->send_head->when + sk->rto < jiffies)
sk3896net/ipv4/tcp.ctcp_retransmit(sk,0);  
sk3899net/ipv4/tcp.ctcp_do_retransmit(sk, 1);
sk3900net/ipv4/tcp.creset_xmit_timer(sk, TIME_WRITE, sk->rto);
sk3924net/ipv4/tcp.cstatic int tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th)
sk3926net/ipv4/tcp.csk->fin_seq = th->seq + skb->len + th->syn + th->fin;
sk3928net/ipv4/tcp.cif (!sk->dead) 
sk3930net/ipv4/tcp.csk->state_change(sk);
sk3931net/ipv4/tcp.csock_wake_async(sk->socket, 1);
sk3934net/ipv4/tcp.cswitch(sk->state) 
sk3943net/ipv4/tcp.ctcp_set_state(sk,TCP_CLOSE_WAIT);
sk3945net/ipv4/tcp.csk->shutdown = SHUTDOWN_MASK;
sk3960net/ipv4/tcp.creset_msl_timer(sk, TIME_CLOSE, TCP_TIMEWAIT_LEN);
sk3975net/ipv4/tcp.cif(sk->ip_xmit_timeout != TIME_WRITE)
sk3976net/ipv4/tcp.creset_xmit_timer(sk, TIME_WRITE, sk->rto);
sk3977net/ipv4/tcp.ctcp_set_state(sk,TCP_CLOSING);
sk3983net/ipv4/tcp.creset_msl_timer(sk, TIME_CLOSE, TCP_TIMEWAIT_LEN);
sk3984net/ipv4/tcp.csk->shutdown|=SHUTDOWN_MASK;
sk3985net/ipv4/tcp.ctcp_set_state(sk,TCP_TIME_WAIT);
sk3993net/ipv4/tcp.ctcp_set_state(sk,TCP_LAST_ACK);
sk3996net/ipv4/tcp.creset_msl_timer(sk, TIME_CLOSE, TCP_TIMEWAIT_LEN);
sk4011net/ipv4/tcp.cextern __inline__ int tcp_data(struct sk_buff *skb, struct sock *sk, 
sk4028net/ipv4/tcp.csk->bytes_rcv += skb->len;
sk4037net/ipv4/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq,sk, th, saddr);
sk4048net/ipv4/tcp.cif(sk->shutdown & RCV_SHUTDOWN)
sk4073net/ipv4/tcp.cshut_seq=sk->acked_seq+1;  /* Last byte */
sk4077net/ipv4/tcp.cif(sk->debug)
sk4079net/ipv4/tcp.csk, new_seq, shut_seq, sk->blog);
sk4080net/ipv4/tcp.cif(sk->dead)
sk4082net/ipv4/tcp.csk->acked_seq = new_seq + th->fin;
sk4083net/ipv4/tcp.ctcp_reset(sk->saddr, sk->daddr, skb->h.th,
sk4084net/ipv4/tcp.csk->prot, NULL, skb->dev, sk->ip_tos, sk->ip_ttl);
sk4086net/ipv4/tcp.ctcp_set_state(sk,TCP_CLOSE);
sk4087net/ipv4/tcp.csk->err = EPIPE;
sk4088net/ipv4/tcp.csk->shutdown = SHUTDOWN_MASK;
sk4110net/ipv4/tcp.cif (skb_peek(&sk->receive_queue) == NULL)   /* Empty queue is easy case */
sk4112net/ipv4/tcp.cskb_queue_head(&sk->receive_queue,skb);
sk4117net/ipv4/tcp.cfor(skb1=sk->receive_queue.prev; ; skb1 = skb1->prev) 
sk4119net/ipv4/tcp.cif(sk->debug)
sk4124net/ipv4/tcp.cprintk("copied_seq = %d acked_seq = %d\n", sk->copied_seq,
sk4125net/ipv4/tcp.csk->acked_seq);
sk4159net/ipv4/tcp.cif (skb1 == skb_peek(&sk->receive_queue))
sk4161net/ipv4/tcp.cskb_queue_head(&sk->receive_queue, skb);
sk4177net/ipv4/tcp.cif (before(sk->acked_seq, sk->copied_seq)) 
sk4180net/ipv4/tcp.csk->acked_seq = sk->copied_seq;
sk4189net/ipv4/tcp.cif ((!dup_dumped && (skb1 == NULL || skb1->acked)) || before(th->seq, sk->acked_seq+1)) 
sk4191net/ipv4/tcp.cif (before(th->seq, sk->acked_seq+1)) 
sk4195net/ipv4/tcp.cif (after(th->ack_seq, sk->acked_seq)) 
sk4197net/ipv4/tcp.cnewwindow = sk->window-(th->ack_seq - sk->acked_seq);
sk4200net/ipv4/tcp.csk->window = newwindow;
sk4201net/ipv4/tcp.csk->acked_seq = th->ack_seq;
sk4212net/ipv4/tcp.ctcp_fin(skb,sk,skb->h.th);
sk4216net/ipv4/tcp.cskb2 != (struct sk_buff *)&sk->receive_queue;
sk4219net/ipv4/tcp.cif (before(skb2->h.th->seq, sk->acked_seq+1)) 
sk4221net/ipv4/tcp.cif (after(skb2->h.th->ack_seq, sk->acked_seq))
sk4223net/ipv4/tcp.cnewwindow = sk->window -
sk4224net/ipv4/tcp.c(skb2->h.th->ack_seq - sk->acked_seq);
sk4227net/ipv4/tcp.csk->window = newwindow;
sk4228net/ipv4/tcp.csk->acked_seq = skb2->h.th->ack_seq;
sk4237net/ipv4/tcp.ctcp_fin(skb,sk,skb->h.th);
sk4244net/ipv4/tcp.csk->ack_backlog = sk->max_ack_backlog;
sk4256net/ipv4/tcp.cif (!sk->delay_acks ||
sk4257net/ipv4/tcp.csk->ack_backlog >= sk->max_ack_backlog || 
sk4258net/ipv4/tcp.csk->bytes_rcv > sk->max_unacked || th->fin) {
sk4263net/ipv4/tcp.csk->ack_backlog++;
sk4264net/ipv4/tcp.cif(sk->debug)
sk4266net/ipv4/tcp.creset_xmit_timer(sk, TIME_WRITE, TCP_ACK_TIME);
sk4286net/ipv4/tcp.cwhile (sk->prot->rspace(sk) < sk->mtu) 
sk4288net/ipv4/tcp.cskb1 = skb_peek(&sk->receive_queue);
sk4307net/ipv4/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
sk4308net/ipv4/tcp.csk->ack_backlog++;
sk4309net/ipv4/tcp.creset_xmit_timer(sk, TIME_WRITE, TCP_ACK_TIME);
sk4313net/ipv4/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
sk4320net/ipv4/tcp.cif (!sk->dead) 
sk4322net/ipv4/tcp.cif(sk->debug)
sk4324net/ipv4/tcp.csk->data_ready(sk,0);
sk4338net/ipv4/tcp.cstatic void tcp_check_urg(struct sock * sk, struct tcphdr * th)
sk4347net/ipv4/tcp.cif (after(sk->copied_seq, ptr))
sk4351net/ipv4/tcp.cif (sk->urg_data && !after(ptr, sk->urg_seq))
sk4355net/ipv4/tcp.cif (sk->proc != 0) {
sk4356net/ipv4/tcp.cif (sk->proc > 0) {
sk4357net/ipv4/tcp.ckill_proc(sk->proc, SIGURG, 1);
sk4359net/ipv4/tcp.ckill_pg(-sk->proc, SIGURG, 1);
sk4362net/ipv4/tcp.csk->urg_data = URG_NOTYET;
sk4363net/ipv4/tcp.csk->urg_seq = ptr;
sk4370net/ipv4/tcp.cextern __inline__ int tcp_urg(struct sock *sk, struct tcphdr *th,
sk4380net/ipv4/tcp.ctcp_check_urg(sk,th);
sk4386net/ipv4/tcp.cif (sk->urg_data != URG_NOTYET)
sk4393net/ipv4/tcp.cptr = sk->urg_seq - th->seq + th->doff*4;
sk4401net/ipv4/tcp.csk->urg_data = URG_VALID | *(ptr + (unsigned char *) th);
sk4402net/ipv4/tcp.cif (!sk->dead)
sk4403net/ipv4/tcp.csk->data_ready(sk,0);
sk4411net/ipv4/tcp.cstatic struct sock *tcp_accept(struct sock *sk, int flags)
sk4421net/ipv4/tcp.cif (sk->state != TCP_LISTEN) 
sk4423net/ipv4/tcp.csk->err = EINVAL;
sk4429net/ipv4/tcp.csk->inuse = 1;
sk4431net/ipv4/tcp.cwhile((skb = tcp_dequeue_established(sk)) == NULL) 
sk4436net/ipv4/tcp.crelease_sock(sk);
sk4437net/ipv4/tcp.csk->err = EAGAIN;
sk4441net/ipv4/tcp.crelease_sock(sk);
sk4442net/ipv4/tcp.cinterruptible_sleep_on(sk->sleep);
sk4446net/ipv4/tcp.csk->err = ERESTARTSYS;
sk4449net/ipv4/tcp.csk->inuse = 1;
sk4457net/ipv4/tcp.cnewsk = skb->sk;
sk4460net/ipv4/tcp.csk->ack_backlog--;
sk4461net/ipv4/tcp.crelease_sock(sk);
sk4470net/ipv4/tcp.cstatic int tcp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len)
sk4480net/ipv4/tcp.cif (sk->state != TCP_CLOSE) 
sk4505net/ipv4/tcp.csk->inuse = 1;
sk4506net/ipv4/tcp.csk->daddr = usin->sin_addr.s_addr;
sk4507net/ipv4/tcp.csk->write_seq = tcp_init_seq();
sk4508net/ipv4/tcp.csk->window_seq = sk->write_seq;
sk4509net/ipv4/tcp.csk->rcv_ack_seq = sk->write_seq -1;
sk4510net/ipv4/tcp.csk->err = 0;
sk4511net/ipv4/tcp.csk->dummy_th.dest = usin->sin_port;
sk4512net/ipv4/tcp.crelease_sock(sk);
sk4514net/ipv4/tcp.cbuff = sk->prot->wmalloc(sk,MAX_SYN_SIZE,0, GFP_KERNEL);
sk4519net/ipv4/tcp.csk->inuse = 1;
sk4520net/ipv4/tcp.cbuff->sk = sk;
sk4522net/ipv4/tcp.cbuff->localroute = sk->localroute;
sk4529net/ipv4/tcp.cif (sk->localroute)
sk4530net/ipv4/tcp.crt=ip_rt_local(sk->daddr, NULL, sk->saddr ? NULL : &sk->saddr);
sk4532net/ipv4/tcp.crt=ip_rt_route(sk->daddr, NULL, sk->saddr ? NULL : &sk->saddr);
sk4538net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
sk4539net/ipv4/tcp.cIPPROTO_TCP, NULL, MAX_SYN_SIZE,sk->ip_tos,sk->ip_ttl);
sk4542net/ipv4/tcp.csk->prot->wfree(sk, buff);
sk4543net/ipv4/tcp.crelease_sock(sk);
sk4549net/ipv4/tcp.cmemcpy(t1,(void *)&(sk->dummy_th), sizeof(*t1));
sk4550net/ipv4/tcp.ct1->seq = ntohl(sk->write_seq++);
sk4551net/ipv4/tcp.csk->sent_seq = sk->write_seq;
sk4552net/ipv4/tcp.cbuff->h.seq = sk->write_seq;
sk4566net/ipv4/tcp.csk->window_clamp=rt->rt_window;
sk4568net/ipv4/tcp.csk->window_clamp=0;
sk4570net/ipv4/tcp.cif (sk->user_mss)
sk4571net/ipv4/tcp.csk->mtu = sk->user_mss;
sk4573net/ipv4/tcp.csk->mtu = rt->rt_mss;
sk4577net/ipv4/tcp.cif ((sk->saddr ^ sk->daddr) & default_mask(sk->saddr))
sk4579net/ipv4/tcp.cif ((sk->saddr ^ sk->daddr) & dev->pa_mask)
sk4581net/ipv4/tcp.csk->mtu = 576 - sizeof(struct iphdr) - sizeof(struct tcphdr);
sk4583net/ipv4/tcp.csk->mtu = MAX_WINDOW;
sk4589net/ipv4/tcp.cif(sk->mtu <32)
sk4590net/ipv4/tcp.csk->mtu = 32;  /* Sanity limit */
sk4592net/ipv4/tcp.csk->mtu = min(sk->mtu, dev->mtu - sizeof(struct iphdr) - sizeof(struct tcphdr));
sk4601net/ipv4/tcp.cptr[2] = (sk->mtu) >> 8;
sk4602net/ipv4/tcp.cptr[3] = (sk->mtu) & 0xff;
sk4603net/ipv4/tcp.ctcp_send_check(t1, sk->saddr, sk->daddr,
sk4604net/ipv4/tcp.csizeof(struct tcphdr) + 4, sk);
sk4611net/ipv4/tcp.ctcp_set_state(sk,TCP_SYN_SENT);
sk4613net/ipv4/tcp.csk->rto = rt->rt_irtt;
sk4615net/ipv4/tcp.csk->rto = TCP_TIMEOUT_INIT;
sk4616net/ipv4/tcp.csk->retransmit_timer.function=&retransmit_timer;
sk4617net/ipv4/tcp.csk->retransmit_timer.data = (unsigned long)sk;
sk4618net/ipv4/tcp.creset_xmit_timer(sk, TIME_WRITE, sk->rto);  /* Timer for repeating the SYN until an answer */
sk4619net/ipv4/tcp.csk->retransmits = 0;  /* Now works the right way instead of a hacked initial setting */
sk4621net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 0);  
sk4622net/ipv4/tcp.creset_xmit_timer(sk, TIME_WRITE, sk->rto);
sk4626net/ipv4/tcp.crelease_sock(sk);
sk4632net/ipv4/tcp.cextern __inline__ int tcp_sequence(struct sock *sk, struct tcphdr *th, short len,
sk4641net/ipv4/tcp.cif (next_seq && !sk->window)
sk4653net/ipv4/tcp.cif (!after(next_seq+1, sk->acked_seq))
sk4656net/ipv4/tcp.cif (!before(th->seq, sk->acked_seq + sk->window + 1))
sk4673net/ipv4/tcp.cif (sk->state==TCP_SYN_SENT || sk->state==TCP_SYN_RECV) 
sk4675net/ipv4/tcp.ctcp_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl);
sk4680net/ipv4/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
sk4688net/ipv4/tcp.cstatic int tcp_std_reset(struct sock *sk, struct sk_buff *skb)
sk4690net/ipv4/tcp.csk->zapped = 1;
sk4691net/ipv4/tcp.csk->err = ECONNRESET;
sk4692net/ipv4/tcp.cif (sk->state == TCP_SYN_SENT)
sk4693net/ipv4/tcp.csk->err = ECONNREFUSED;
sk4694net/ipv4/tcp.cif (sk->state == TCP_CLOSE_WAIT)
sk4695net/ipv4/tcp.csk->err = EPIPE;
sk4700net/ipv4/tcp.cif(sk->state!=TCP_TIME_WAIT)
sk4702net/ipv4/tcp.ctcp_set_state(sk,TCP_CLOSE);
sk4703net/ipv4/tcp.csk->shutdown = SHUTDOWN_MASK;
sk4706net/ipv4/tcp.ctcp_set_state(sk,TCP_CLOSE);
sk4707net/ipv4/tcp.csk->shutdown = SHUTDOWN_MASK;
sk4709net/ipv4/tcp.cif (!sk->dead) 
sk4710net/ipv4/tcp.csk->state_change(sk);
sk4712net/ipv4/tcp.crelease_sock(sk);
sk4726net/ipv4/tcp.cstruct sock *sk;
sk4744net/ipv4/tcp.csk=(struct sock *)th_cache_sk;
sk4748net/ipv4/tcp.cif(sk!=get_sock(&tcp_prot,th->dest, saddr, th->source, daddr))
sk4753net/ipv4/tcp.csk = get_sock(&tcp_prot, th->dest, saddr, th->source, daddr);
sk4758net/ipv4/tcp.cth_cache_sk=sk;
sk4770net/ipv4/tcp.cif (sk!=NULL && (sk->zapped || sk->state==TCP_CLOSE))
sk4771net/ipv4/tcp.csk=NULL;
sk4787net/ipv4/tcp.cskb->sk = NULL;
sk4798net/ipv4/tcp.cif (sk == NULL) 
sk4804net/ipv4/tcp.cskb->sk = NULL;
sk4821net/ipv4/tcp.cif (sk->inuse) 
sk4823net/ipv4/tcp.cskb_queue_tail(&sk->back_log, skb);
sk4827net/ipv4/tcp.csk->inuse = 1;
sk4832net/ipv4/tcp.cif (sk==NULL) 
sk4835net/ipv4/tcp.cskb->sk = NULL;
sk4842net/ipv4/tcp.cif (!sk->prot) 
sk4853net/ipv4/tcp.cif (sk->rmem_alloc + skb->truesize >= sk->rcvbuf) 
sk4856net/ipv4/tcp.crelease_sock(sk);
sk4860net/ipv4/tcp.cskb->sk=sk;
sk4861net/ipv4/tcp.csk->rmem_alloc += skb->truesize;
sk4870net/ipv4/tcp.cif(sk->state!=TCP_ESTABLISHED)    /* Skip this lot for normal flow */
sk4877net/ipv4/tcp.cif(sk->state==TCP_LISTEN)
sk4880net/ipv4/tcp.ctcp_reset(daddr,saddr,th,sk->prot,opt,dev,sk->ip_tos, sk->ip_ttl);
sk4892net/ipv4/tcp.crelease_sock(sk);
sk4900net/ipv4/tcp.ctcp_conn_request(sk, skb, daddr, saddr, opt, dev, tcp_init_seq());
sk4911net/ipv4/tcp.crelease_sock(sk);
sk4916net/ipv4/tcp.cif (sk->state == TCP_SYN_RECV && th->syn && th->seq+1 == sk->acked_seq)
sk4919net/ipv4/tcp.crelease_sock(sk);
sk4928net/ipv4/tcp.cif(sk->state==TCP_SYN_SENT)
sk4934net/ipv4/tcp.cif(!tcp_ack(sk,th,saddr,len))
sk4940net/ipv4/tcp.csk->prot, opt,dev,sk->ip_tos,sk->ip_ttl);
sk4942net/ipv4/tcp.crelease_sock(sk);
sk4946net/ipv4/tcp.creturn tcp_std_reset(sk,skb);
sk4952net/ipv4/tcp.crelease_sock(sk);
sk4960net/ipv4/tcp.csk->acked_seq=th->seq+1;
sk4961net/ipv4/tcp.csk->fin_seq=th->seq;
sk4962net/ipv4/tcp.ctcp_send_ack(sk->sent_seq,sk->acked_seq,sk,th,sk->daddr);
sk4963net/ipv4/tcp.ctcp_set_state(sk, TCP_ESTABLISHED);
sk4964net/ipv4/tcp.ctcp_options(sk,th);
sk4965net/ipv4/tcp.csk->dummy_th.dest=th->source;
sk4966net/ipv4/tcp.csk->copied_seq = sk->acked_seq;
sk4967net/ipv4/tcp.cif(!sk->dead)
sk4969net/ipv4/tcp.csk->state_change(sk);
sk4970net/ipv4/tcp.csock_wake_async(sk->socket, 0);
sk4972net/ipv4/tcp.cif(sk->max_window==0)
sk4974net/ipv4/tcp.csk->max_window = 32;
sk4975net/ipv4/tcp.csk->mss = min(sk->max_window, sk->mtu);
sk4985net/ipv4/tcp.cif(sk->saddr==saddr && sk->daddr==daddr &&
sk4986net/ipv4/tcp.csk->dummy_th.source==th->source &&
sk4987net/ipv4/tcp.csk->dummy_th.dest==th->dest)
sk4990net/ipv4/tcp.creturn tcp_std_reset(sk,skb);
sk4992net/ipv4/tcp.ctcp_set_state(sk,TCP_SYN_RECV);
sk5001net/ipv4/tcp.crelease_sock(sk);
sk5018net/ipv4/tcp.cif (sk->state == TCP_TIME_WAIT && th->syn && sk->dead && 
sk5019net/ipv4/tcp.cafter(th->seq, sk->acked_seq) && !th->rst)
sk5021net/ipv4/tcp.cu32 seq = sk->write_seq;
sk5022net/ipv4/tcp.cif(sk->debug)
sk5025net/ipv4/tcp.csk->rmem_alloc -= skb->truesize;
sk5026net/ipv4/tcp.cskb->sk = NULL;
sk5027net/ipv4/tcp.csk->err=ECONNRESET;
sk5028net/ipv4/tcp.ctcp_set_state(sk, TCP_CLOSE);
sk5029net/ipv4/tcp.csk->shutdown = SHUTDOWN_MASK;
sk5030net/ipv4/tcp.crelease_sock(sk);
sk5031net/ipv4/tcp.csk=get_sock(&tcp_prot, th->dest, saddr, th->source, daddr);
sk5032net/ipv4/tcp.cif (sk && sk->state==TCP_LISTEN)
sk5034net/ipv4/tcp.csk->inuse=1;
sk5035net/ipv4/tcp.cskb->sk = sk;
sk5036net/ipv4/tcp.csk->rmem_alloc += skb->truesize;
sk5037net/ipv4/tcp.ctcp_conn_request(sk, skb, daddr, saddr,opt, dev,seq+128000);
sk5038net/ipv4/tcp.crelease_sock(sk);
sk5053net/ipv4/tcp.cif(!tcp_sequence(sk,th,len,opt,saddr,dev))
sk5056net/ipv4/tcp.crelease_sock(sk);
sk5061net/ipv4/tcp.creturn tcp_std_reset(sk,skb);
sk5070net/ipv4/tcp.creturn tcp_std_reset(sk,skb);  
sk5078net/ipv4/tcp.cif(th->ack && !tcp_ack(sk,th,saddr,len))
sk5084net/ipv4/tcp.cif(sk->state==TCP_SYN_RECV)
sk5086net/ipv4/tcp.ctcp_reset(daddr, saddr, th,sk->prot, opt, dev,sk->ip_tos,sk->ip_ttl);
sk5089net/ipv4/tcp.crelease_sock(sk);
sk5099net/ipv4/tcp.cif(tcp_urg(sk, th, saddr, len))
sk5102net/ipv4/tcp.crelease_sock(sk);
sk5111net/ipv4/tcp.cif(tcp_data(skb,sk, saddr, len))
sk5114net/ipv4/tcp.crelease_sock(sk);
sk5122net/ipv4/tcp.crelease_sock(sk);
sk5131net/ipv4/tcp.cstatic void tcp_write_wakeup(struct sock *sk)
sk5138net/ipv4/tcp.cif (sk->zapped)
sk5147net/ipv4/tcp.cif (sk->state != TCP_ESTABLISHED && 
sk5148net/ipv4/tcp.csk->state != TCP_CLOSE_WAIT &&
sk5149net/ipv4/tcp.csk->state != TCP_FIN_WAIT1 && 
sk5150net/ipv4/tcp.csk->state != TCP_LAST_ACK &&
sk5151net/ipv4/tcp.csk->state != TCP_CLOSING
sk5156net/ipv4/tcp.cif ( before(sk->sent_seq, sk->window_seq) && 
sk5157net/ipv4/tcp.c(skb=skb_peek(&sk->write_queue)))
sk5178net/ipv4/tcp.cwin_size = sk->window_seq - sk->sent_seq;
sk5191net/ipv4/tcp.cbuff = sk->prot->wmalloc(sk, win_size + th->doff * 4 + 
sk5193net/ipv4/tcp.csk->prot->max_header + 15, 
sk5205net/ipv4/tcp.cbuff->sk = sk;
sk5206net/ipv4/tcp.cbuff->localroute = sk->localroute;
sk5212net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
sk5213net/ipv4/tcp.cIPPROTO_TCP, sk->opt, buff->truesize,
sk5214net/ipv4/tcp.csk->ip_tos,sk->ip_ttl);
sk5217net/ipv4/tcp.csk->prot->wfree(sk, buff);
sk5236net/ipv4/tcp.cnth->ack_seq = ntohl(sk->acked_seq);
sk5237net/ipv4/tcp.cnth->window = ntohs(tcp_select_window(sk));
sk5256net/ipv4/tcp.cbuff->h.seq = sk->sent_seq + win_size;
sk5257net/ipv4/tcp.csk->sent_seq = buff->h.seq;    /* Hack */
sk5270net/ipv4/tcp.csk->sent_seq += win_size;
sk5271net/ipv4/tcp.cth->seq = htonl(sk->sent_seq);
sk5295net/ipv4/tcp.ctcp_send_check(nth, sk->saddr, sk->daddr, 
sk5296net/ipv4/tcp.cnth->doff * 4 + win_size , sk);
sk5300net/ipv4/tcp.cbuff = sk->prot->wmalloc(sk,MAX_ACK_SIZE,1, GFP_ATOMIC);
sk5305net/ipv4/tcp.cbuff->sk = sk;
sk5306net/ipv4/tcp.cbuff->localroute = sk->localroute;
sk5312net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
sk5313net/ipv4/tcp.cIPPROTO_TCP, sk->opt, MAX_ACK_SIZE,sk->ip_tos,sk->ip_ttl);
sk5316net/ipv4/tcp.csk->prot->wfree(sk, buff);
sk5321net/ipv4/tcp.cmemcpy(t1,(void *) &sk->dummy_th, sizeof(*t1));
sk5328net/ipv4/tcp.ct1->seq = htonl(sk->sent_seq-1);
sk5337net/ipv4/tcp.ct1->ack_seq = ntohl(sk->acked_seq);
sk5338net/ipv4/tcp.ct1->window = ntohs(tcp_select_window(sk));
sk5340net/ipv4/tcp.ctcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), sk);
sk5348net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
sk5356net/ipv4/tcp.cvoid tcp_send_probe0(struct sock *sk)
sk5358net/ipv4/tcp.cif (sk->zapped)
sk5361net/ipv4/tcp.ctcp_write_wakeup(sk);
sk5363net/ipv4/tcp.csk->backoff++;
sk5364net/ipv4/tcp.csk->rto = min(sk->rto << 1, 120*HZ);
sk5365net/ipv4/tcp.creset_xmit_timer (sk, TIME_PROBE0, sk->rto);
sk5366net/ipv4/tcp.csk->retransmits++;
sk5367net/ipv4/tcp.csk->prot->retransmits ++;
sk5374net/ipv4/tcp.cint tcp_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen)
sk5379net/ipv4/tcp.creturn ip_setsockopt(sk,level,optname,optval,optlen);
sk5400net/ipv4/tcp.csk->user_mss=val;
sk5403net/ipv4/tcp.csk->nonagle=(val==0)?0:1;
sk5410net/ipv4/tcp.cint tcp_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen)
sk5415net/ipv4/tcp.creturn ip_getsockopt(sk,level,optname,optval,optlen);
sk5420net/ipv4/tcp.cval=sk->user_mss;
sk5423net/ipv4/tcp.cval=sk->nonagle;
sk88net/ipv4/timer.cstruct sock *sk = (struct sock*)data;
sk89net/ipv4/timer.cint why = sk->timeout;
sk96net/ipv4/timer.cif (sk->inuse || in_bh) 
sk98net/ipv4/timer.csk->timer.expires = jiffies+10;
sk99net/ipv4/timer.cadd_timer(&sk->timer);
sk104net/ipv4/timer.csk->inuse = 1;
sk109net/ipv4/timer.cif (sk->ack_backlog && !sk->zapped) 
sk111net/ipv4/timer.csk->prot->read_wakeup (sk);
sk112net/ipv4/timer.cif (! sk->dead)
sk113net/ipv4/timer.csk->data_ready(sk,0);
sk121net/ipv4/timer.cif (! sk->dead || sk->state != TCP_CLOSE) 
sk124net/ipv4/timer.crelease_sock (sk);
sk127net/ipv4/timer.cdestroy_sock (sk);
sk135net/ipv4/timer.cif(sk->wmem_alloc!=0 || sk->rmem_alloc!=0)
sk137net/ipv4/timer.csk->wmem_alloc++;  /* So it DOESN'T go away */
sk138net/ipv4/timer.cdestroy_sock (sk);
sk139net/ipv4/timer.csk->wmem_alloc--;  /* Might now have hit 0 - fall through and do it again if so */
sk140net/ipv4/timer.csk->inuse = 0;  /* This will be ok, the destroy won't totally work */
sk142net/ipv4/timer.cif(sk->wmem_alloc==0 && sk->rmem_alloc==0)
sk143net/ipv4/timer.cdestroy_sock(sk);  /* Socket gone, DON'T update sk->inuse! */
sk147net/ipv4/timer.csk->state = TCP_CLOSE;
sk148net/ipv4/timer.cdelete_timer (sk);
sk150net/ipv4/timer.carp_destroy (sk->daddr, 0);
sk151net/ipv4/timer.cif (!sk->dead)
sk152net/ipv4/timer.csk->state_change(sk);
sk153net/ipv4/timer.csk->shutdown = SHUTDOWN_MASK;
sk154net/ipv4/timer.creset_timer (sk, TIME_DESTROY, TCP_DONE_TIME);
sk155net/ipv4/timer.crelease_sock (sk);
sk159net/ipv4/timer.crelease_sock (sk);
sk137net/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);
sk157net/ipv4/udp.cstruct sock *sk;
sk165net/ipv4/udp.csk = get_sock(&udp_prot, uh->source, daddr, uh->dest, saddr);
sk167net/ipv4/udp.cif (sk == NULL) 
sk172net/ipv4/udp.cif (sk->cong_window > 1) 
sk173net/ipv4/udp.csk->cong_window = sk->cong_window/2;
sk179net/ipv4/udp.csk->err = EPROTO;
sk180net/ipv4/udp.csk->error_report(sk);
sk198net/ipv4/udp.csk->err = icmp_err_convert[code].errno;
sk199net/ipv4/udp.csk->error_report(sk);
sk293net/ipv4/udp.cstatic int udp_send(struct sock *sk, struct sockaddr_in *sin,
sk304net/ipv4/udp.cufh.uh.source = sk->dummy_th.source;
sk323net/ipv4/udp.cif(sk->no_check)
sk324net/ipv4/udp.ca = ip_build_xmit(sk, udp_getfrag_nosum, &ufh, ulen, 
sk325net/ipv4/udp.csin->sin_addr.s_addr, saddr, sk->opt, rt, IPPROTO_UDP);
sk327net/ipv4/udp.ca = ip_build_xmit(sk, udp_getfrag, &ufh, ulen, 
sk328net/ipv4/udp.csin->sin_addr.s_addr, saddr, sk->opt, rt, IPPROTO_UDP);
sk336net/ipv4/udp.cstatic int udp_sendto(struct sock *sk, const unsigned char *from, int len, int noblock,
sk364net/ipv4/udp.cif (sk->state != TCP_ESTABLISHED) 
sk367net/ipv4/udp.csin.sin_port = sk->dummy_th.dest;
sk368net/ipv4/udp.csin.sin_addr.s_addr = sk->daddr;
sk390net/ipv4/udp.cif(!sk->broadcast && ip_chk_addr(usin->sin_addr.s_addr)==IS_BROADCAST)
sk393net/ipv4/udp.csk->inuse = 1;
sk396net/ipv4/udp.ctmp = udp_send(sk, usin, from, len, flags, saddr);
sk399net/ipv4/udp.crelease_sock(sk);
sk407net/ipv4/udp.cstatic int udp_write(struct sock *sk, const unsigned char *buff, int len, int noblock,
sk410net/ipv4/udp.creturn(udp_sendto(sk, buff, len, noblock, flags, NULL, 0));
sk418net/ipv4/udp.cint udp_ioctl(struct sock *sk, int cmd, unsigned long arg)
sk427net/ipv4/udp.cif (sk->state == TCP_LISTEN) return(-EINVAL);
sk428net/ipv4/udp.camount = sk->prot->wspace(sk)/*/2*/;
sk442net/ipv4/udp.cif (sk->state == TCP_LISTEN) return(-EINVAL);
sk444net/ipv4/udp.cskb = skb_peek(&sk->receive_queue);
sk473net/ipv4/udp.cint udp_recvfrom(struct sock *sk, unsigned char *to, int len,
sk494net/ipv4/udp.cskb=skb_recv_datagram(sk,flags,noblock,&er);
sk506net/ipv4/udp.csk->stamp=skb->stamp;
sk517net/ipv4/udp.crelease_sock(sk);
sk525net/ipv4/udp.cint udp_read(struct sock *sk, unsigned char *buff, int len, int noblock,
sk528net/ipv4/udp.creturn(udp_recvfrom(sk, buff, len, noblock, flags, NULL, NULL));
sk532net/ipv4/udp.cint udp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len)
sk544net/ipv4/udp.cif(!sk->broadcast && ip_chk_addr(usin->sin_addr.s_addr)==IS_BROADCAST)
sk547net/ipv4/udp.crt=(sk->localroute?ip_rt_local:ip_rt_route)((__u32)usin->sin_addr.s_addr, NULL, &sa);
sk550net/ipv4/udp.csk->saddr = sa;    /* Update source address */
sk551net/ipv4/udp.csk->daddr = usin->sin_addr.s_addr;
sk552net/ipv4/udp.csk->dummy_th.dest = usin->sin_port;
sk553net/ipv4/udp.csk->state = TCP_ESTABLISHED;
sk555net/ipv4/udp.csk->ip_route_cache = rt;
sk556net/ipv4/udp.csk->ip_route_stamp = rt_stamp;
sk561net/ipv4/udp.cstatic void udp_close(struct sock *sk, int timeout)
sk563net/ipv4/udp.csk->inuse = 1;
sk564net/ipv4/udp.csk->state = TCP_CLOSE;
sk565net/ipv4/udp.cif(uh_cache_sk==sk)
sk567net/ipv4/udp.cif (sk->dead) 
sk568net/ipv4/udp.cdestroy_sock(sk);
sk570net/ipv4/udp.crelease_sock(sk);
sk582net/ipv4/udp.cstruct sock *sk;
sk650net/ipv4/udp.csk=get_sock_mcast(udp_prot.sock_array[ntohs(uh->dest)&(SOCK_ARRAY_SIZE-1)], uh->dest,
sk652net/ipv4/udp.cif(sk)
sk658net/ipv4/udp.csknext=get_sock_mcast(sk->next, uh->dest, saddr, uh->source, daddr);
sk664net/ipv4/udp.cudp_deliver(sk, uh, skb1, dev,saddr,daddr,len);
sk665net/ipv4/udp.csk=sknext;
sk675net/ipv4/udp.csk=(struct sock *)uh_cache_sk;
sk678net/ipv4/udp.csk = get_sock(&udp_prot, uh->dest, saddr, uh->source, daddr);
sk683net/ipv4/udp.cuh_cache_sk=sk;
sk686net/ipv4/udp.cif (sk == NULL) 
sk697net/ipv4/udp.cskb->sk = NULL;
sk701net/ipv4/udp.creturn udp_deliver(sk,uh,skb,dev, saddr, daddr, len);
sk704net/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)
sk706net/ipv4/udp.cskb->sk = sk;
sk725net/ipv4/udp.cif (sock_queue_rcv_skb(sk,skb)<0) 
sk730net/ipv4/udp.cskb->sk = NULL;
sk732net/ipv4/udp.crelease_sock(sk);
sk736net/ipv4/udp.crelease_sock(sk);
sk135net/ipx/af_ipx.cipx_remove_socket(ipx_socket *sk)
sk145net/ipx/af_ipx.cintrfc = sk->ipx_intrfc;
sk152net/ipx/af_ipx.cif(s==sk) {
sk159net/ipx/af_ipx.cif(s->next==sk) {
sk160net/ipx/af_ipx.cs->next=sk->next;
sk177net/ipx/af_ipx.cipx_destroy_socket(ipx_socket *sk)
sk181net/ipx/af_ipx.cipx_remove_socket(sk);
sk182net/ipx/af_ipx.cwhile((skb=skb_dequeue(&sk->receive_queue))!=NULL) {
sk186net/ipx/af_ipx.ckfree_s(sk,sizeof(*sk));
sk232net/ipx/af_ipx.cipxitf_insert_socket(ipx_interface *intrfc, ipx_socket *sk)
sk236net/ipx/af_ipx.csk->ipx_intrfc = intrfc;
sk237net/ipx/af_ipx.csk->next = NULL;
sk239net/ipx/af_ipx.cintrfc->if_sklist = sk;
sk243net/ipx/af_ipx.cs->next = sk;
sk532net/ipx/af_ipx.cif (skb->sk != NULL) {
sk536net/ipx/af_ipx.cskb->sk->wmem_alloc += skb->truesize;
sk992net/ipx/af_ipx.cipxrtr_route_packet(ipx_socket *sk, struct sockaddr_ipx *usipx, const void *ubuf, int len)
sk1017net/ipx/af_ipx.cif(size+sk->wmem_alloc>sk->sndbuf) return -EAGAIN;
sk1022net/ipx/af_ipx.cskb->sk=sk;
sk1035net/ipx/af_ipx.cipx->ipx_source.net = sk->ipx_intrfc->if_netnum;
sk1036net/ipx/af_ipx.cmemcpy(ipx->ipx_source.node, sk->ipx_intrfc->if_node, IPX_NODE_LEN);
sk1037net/ipx/af_ipx.cipx->ipx_source.sock = sk->ipx_port;
sk1285net/ipx/af_ipx.cipx_socket *sk;
sk1288net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sk1304net/ipx/af_ipx.csk->ipx_type=opt;
sk1312net/ipx/af_ipx.creturn sock_setsockopt(sk,level,optname,optval,optlen);
sk1322net/ipx/af_ipx.cipx_socket *sk;
sk1326net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sk1335net/ipx/af_ipx.cval=sk->ipx_type;
sk1343net/ipx/af_ipx.creturn sock_getsockopt(sk,level,optname,optval,optlen);
sk1362net/ipx/af_ipx.cstatic void def_callback1(struct sock *sk)
sk1364net/ipx/af_ipx.cif(!sk->dead)
sk1365net/ipx/af_ipx.cwake_up_interruptible(sk->sleep);
sk1368net/ipx/af_ipx.cstatic void def_callback2(struct sock *sk, int len)
sk1370net/ipx/af_ipx.cif(!sk->dead)
sk1372net/ipx/af_ipx.cwake_up_interruptible(sk->sleep);
sk1373net/ipx/af_ipx.csock_wake_async(sk->socket, 1);
sk1380net/ipx/af_ipx.cipx_socket *sk;
sk1381net/ipx/af_ipx.csk=(ipx_socket *)kmalloc(sizeof(*sk),GFP_KERNEL);
sk1382net/ipx/af_ipx.cif(sk==NULL)
sk1389net/ipx/af_ipx.ckfree_s((void *)sk,sizeof(*sk));
sk1392net/ipx/af_ipx.csk->dead=0;
sk1393net/ipx/af_ipx.csk->next=NULL;
sk1394net/ipx/af_ipx.csk->broadcast=0;
sk1395net/ipx/af_ipx.csk->rcvbuf=SK_RMEM_MAX;
sk1396net/ipx/af_ipx.csk->sndbuf=SK_WMEM_MAX;
sk1397net/ipx/af_ipx.csk->wmem_alloc=0;
sk1398net/ipx/af_ipx.csk->rmem_alloc=0;
sk1399net/ipx/af_ipx.csk->inuse=0;
sk1400net/ipx/af_ipx.csk->shutdown=0;
sk1401net/ipx/af_ipx.csk->prot=NULL;  /* So we use default free mechanisms */
sk1402net/ipx/af_ipx.csk->err=0;
sk1403net/ipx/af_ipx.cskb_queue_head_init(&sk->receive_queue);
sk1404net/ipx/af_ipx.cskb_queue_head_init(&sk->write_queue);
sk1405net/ipx/af_ipx.csk->send_head=NULL;
sk1406net/ipx/af_ipx.cskb_queue_head_init(&sk->back_log);
sk1407net/ipx/af_ipx.csk->state=TCP_CLOSE;
sk1408net/ipx/af_ipx.csk->socket=sock;
sk1409net/ipx/af_ipx.csk->type=sock->type;
sk1410net/ipx/af_ipx.csk->ipx_type=0;    /* General user level IPX */
sk1411net/ipx/af_ipx.csk->debug=0;
sk1412net/ipx/af_ipx.csk->ipx_intrfc = NULL;
sk1413net/ipx/af_ipx.cmemset(&sk->ipx_dest_addr,'\0',sizeof(sk->ipx_dest_addr));
sk1414net/ipx/af_ipx.csk->ipx_port = 0;
sk1415net/ipx/af_ipx.csk->mtu=IPX_MTU;
sk1419net/ipx/af_ipx.csock->data=(void *)sk;
sk1420net/ipx/af_ipx.csk->sleep=sock->wait;
sk1423net/ipx/af_ipx.csk->state_change=def_callback1;
sk1424net/ipx/af_ipx.csk->data_ready=def_callback2;
sk1425net/ipx/af_ipx.csk->write_space=def_callback1;
sk1426net/ipx/af_ipx.csk->error_report=def_callback1;
sk1428net/ipx/af_ipx.csk->zapped=1;
sk1434net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sk1435net/ipx/af_ipx.cif(sk==NULL)
sk1437net/ipx/af_ipx.cif(!sk->dead)
sk1438net/ipx/af_ipx.csk->state_change(sk);
sk1439net/ipx/af_ipx.csk->dead=1;
sk1441net/ipx/af_ipx.cipx_destroy_socket(sk);
sk1470net/ipx/af_ipx.cipx_socket *sk;
sk1474net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sk1476net/ipx/af_ipx.cif(sk->zapped==0)
sk1499net/ipx/af_ipx.cif(sk->debug)
sk1505net/ipx/af_ipx.csk->ipx_port=addr->sipx_port;
sk1506net/ipx/af_ipx.cipxitf_insert_socket(intrfc, sk);
sk1507net/ipx/af_ipx.csk->zapped=0;
sk1508net/ipx/af_ipx.cif(sk->debug)
sk1516net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sk1519net/ipx/af_ipx.csk->state = TCP_CLOSE;  
sk1526net/ipx/af_ipx.cif(sk->ipx_port==0)
sk1540net/ipx/af_ipx.csk->ipx_dest_addr.net=addr->sipx_network;
sk1541net/ipx/af_ipx.csk->ipx_dest_addr.sock=addr->sipx_port;
sk1542net/ipx/af_ipx.cmemcpy(sk->ipx_dest_addr.node,addr->sipx_node,IPX_NODE_LEN);
sk1543net/ipx/af_ipx.csk->ipx_type=addr->sipx_type;
sk1545net/ipx/af_ipx.csk->state=TCP_ESTABLISHED;
sk1566net/ipx/af_ipx.cipx_socket *sk;
sk1568net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sk1573net/ipx/af_ipx.cif(sk->state!=TCP_ESTABLISHED)
sk1575net/ipx/af_ipx.caddr=&sk->ipx_dest_addr;
sk1580net/ipx/af_ipx.cif (sk->ipx_intrfc != NULL) {
sk1581net/ipx/af_ipx.csipx.sipx_network = sk->ipx_intrfc->if_netnum;
sk1582net/ipx/af_ipx.cmemcpy(sipx.sipx_node, sk->ipx_intrfc->if_node,
sk1588net/ipx/af_ipx.csipx.sipx_port = sk->ipx_port;
sk1592net/ipx/af_ipx.csipx.sipx_type = sk->ipx_type;
sk1697net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sk1702net/ipx/af_ipx.cif (sk->zapped) return -EIO; /* Socket not bound */
sk1706net/ipx/af_ipx.cif(sk->ipx_port == 0) {
sk1721net/ipx/af_ipx.cif(sk->state!=TCP_ESTABLISHED)
sk1725net/ipx/af_ipx.cusipx->sipx_type=sk->ipx_type;
sk1726net/ipx/af_ipx.cusipx->sipx_port=sk->ipx_dest_addr.sock;
sk1727net/ipx/af_ipx.cusipx->sipx_network=sk->ipx_dest_addr.net;
sk1728net/ipx/af_ipx.cmemcpy(usipx->sipx_node,sk->ipx_dest_addr.node,IPX_NODE_LEN);
sk1731net/ipx/af_ipx.cretval = ipxrtr_route_packet(sk, usipx, ubuf, len);
sk1745net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sk1753net/ipx/af_ipx.cif(sk->err)
sk1755net/ipx/af_ipx.cer= -sk->err;
sk1756net/ipx/af_ipx.csk->err=0;
sk1760net/ipx/af_ipx.cif (sk->zapped)
sk1764net/ipx/af_ipx.cskb=skb_recv_datagram(sk,flags,noblock,&er);
sk1796net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sk1797net/ipx/af_ipx.cif(sk->zapped)
sk1808net/ipx/af_ipx.cstatic int ipx_shutdown(struct socket *sk,int how)
sk1815net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sk1817net/ipx/af_ipx.creturn datagram_select(sk,sel_type,wait);
sk1824net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sk1832net/ipx/af_ipx.camount=sk->sndbuf-sk->wmem_alloc;
sk1841net/ipx/af_ipx.cif((skb=skb_peek(&sk->receive_queue))!=NULL)
sk1869net/ipx/af_ipx.cif (sk)
sk1871net/ipx/af_ipx.cif(sk->stamp.tv_sec==0)
sk1876net/ipx/af_ipx.cmemcpy_tofs((void *)arg,&sk->stamp,sizeof(struct timeval));
sk76net/netrom/af_netrom.cstatic void nr_remove_socket(struct sock *sk)
sk84net/netrom/af_netrom.cif ((s = nr_list) == sk) {
sk91net/netrom/af_netrom.cif (s->next == sk) {
sk92net/netrom/af_netrom.cs->next = sk->next;
sk141net/netrom/af_netrom.cstatic void nr_insert_socket(struct sock *sk)
sk148net/netrom/af_netrom.csk->next = nr_list;
sk149net/netrom/af_netrom.cnr_list  = sk;
sk242net/netrom/af_netrom.cvoid nr_destroy_socket(struct sock *sk)  /* Not static as its used by the timer */
sk250net/netrom/af_netrom.cdel_timer(&sk->timer);
sk252net/netrom/af_netrom.cnr_remove_socket(sk);
sk253net/netrom/af_netrom.cnr_clear_queues(sk);    /* Flush the queues */
sk255net/netrom/af_netrom.cwhile ((skb = skb_dequeue(&sk->receive_queue)) != NULL) {
sk256net/netrom/af_netrom.cif (skb->sk != sk) {      /* A pending connection */
sk257net/netrom/af_netrom.cskb->sk->dead = 1;  /* Queue the unaccepted socket for death */
sk258net/netrom/af_netrom.cnr_set_timer(skb->sk);
sk259net/netrom/af_netrom.cskb->sk->nr->state = NR_STATE_0;
sk265net/netrom/af_netrom.cif (sk->wmem_alloc || sk->rmem_alloc) { /* Defer: outstanding buffers */
sk266net/netrom/af_netrom.cinit_timer(&sk->timer);
sk267net/netrom/af_netrom.csk->timer.expires  = jiffies + 10 * HZ;
sk268net/netrom/af_netrom.csk->timer.function = nr_destroy_timer;
sk269net/netrom/af_netrom.csk->timer.data     = (unsigned long)sk;
sk270net/netrom/af_netrom.cadd_timer(&sk->timer);
sk272net/netrom/af_netrom.ckfree_s(sk->nr, sizeof(*sk->nr));
sk273net/netrom/af_netrom.ckfree_s(sk, sizeof(*sk));
sk297net/netrom/af_netrom.cstruct sock *sk;
sk300net/netrom/af_netrom.csk = (struct sock *)sock->data;
sk303net/netrom/af_netrom.creturn sock_setsockopt(sk, level, optname, optval, optlen);
sk320net/netrom/af_netrom.csk->nr->rtt = (opt * PR_SLOWHZ) / 2;
sk326net/netrom/af_netrom.csk->nr->t2 = opt * PR_SLOWHZ;
sk332net/netrom/af_netrom.csk->nr->n2 = opt;
sk336net/netrom/af_netrom.csk->nr->hdrincl = opt ? 1 : 0;
sk347net/netrom/af_netrom.cstruct sock *sk;
sk351net/netrom/af_netrom.csk = (struct sock *)sock->data;
sk354net/netrom/af_netrom.creturn sock_getsockopt(sk, level, optname, optval, optlen);
sk361net/netrom/af_netrom.cval = (sk->nr->t1 * 2) / PR_SLOWHZ;
sk365net/netrom/af_netrom.cval = sk->nr->t2 / PR_SLOWHZ;
sk369net/netrom/af_netrom.cval = sk->nr->n2;
sk373net/netrom/af_netrom.cval = sk->nr->hdrincl;
sk395net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sk397net/netrom/af_netrom.cif (sk->type == SOCK_SEQPACKET && sk->state != TCP_LISTEN) {
sk398net/netrom/af_netrom.cmemset(&sk->nr->user_addr, '\0', sizeof(ax25_address));
sk399net/netrom/af_netrom.csk->max_ack_backlog = backlog;
sk400net/netrom/af_netrom.csk->state           = TCP_LISTEN;
sk407net/netrom/af_netrom.cstatic void def_callback1(struct sock *sk)
sk409net/netrom/af_netrom.cif (!sk->dead)
sk410net/netrom/af_netrom.cwake_up_interruptible(sk->sleep);
sk413net/netrom/af_netrom.cstatic void def_callback2(struct sock *sk, int len)
sk415net/netrom/af_netrom.cif (!sk->dead)
sk416net/netrom/af_netrom.cwake_up_interruptible(sk->sleep);
sk421net/netrom/af_netrom.cstruct sock *sk;
sk427net/netrom/af_netrom.cif ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL)
sk431net/netrom/af_netrom.ckfree_s(sk, sizeof(*sk));
sk435net/netrom/af_netrom.cskb_queue_head_init(&sk->receive_queue);
sk436net/netrom/af_netrom.cskb_queue_head_init(&sk->write_queue);
sk437net/netrom/af_netrom.cskb_queue_head_init(&sk->back_log);
sk439net/netrom/af_netrom.cinit_timer(&sk->timer);
sk441net/netrom/af_netrom.csk->socket        = sock;
sk442net/netrom/af_netrom.csk->type          = sock->type;
sk443net/netrom/af_netrom.csk->protocol      = protocol;
sk444net/netrom/af_netrom.csk->dead          = 0;
sk445net/netrom/af_netrom.csk->next          = NULL;
sk446net/netrom/af_netrom.csk->broadcast     = 0;
sk447net/netrom/af_netrom.csk->allocation    = GFP_KERNEL;
sk448net/netrom/af_netrom.csk->rcvbuf        = SK_RMEM_MAX;
sk449net/netrom/af_netrom.csk->sndbuf        = SK_WMEM_MAX;
sk450net/netrom/af_netrom.csk->wmem_alloc    = 0;
sk451net/netrom/af_netrom.csk->rmem_alloc    = 0;
sk452net/netrom/af_netrom.csk->inuse         = 0;
sk453net/netrom/af_netrom.csk->debug         = 0;
sk454net/netrom/af_netrom.csk->destroy       = 0;
sk455net/netrom/af_netrom.csk->prot          = NULL;  /* So we use default free mechanisms */
sk456net/netrom/af_netrom.csk->err           = 0;
sk457net/netrom/af_netrom.csk->localroute    = 0;
sk458net/netrom/af_netrom.csk->send_head     = NULL;
sk459net/netrom/af_netrom.csk->state         = TCP_CLOSE;
sk460net/netrom/af_netrom.csk->shutdown      = 0;
sk461net/netrom/af_netrom.csk->priority      = SOPRI_NORMAL;
sk462net/netrom/af_netrom.csk->ack_backlog   = 0;
sk463net/netrom/af_netrom.csk->mtu           = NETROM_MTU;  /* 236 */
sk464net/netrom/af_netrom.csk->zapped        = 1;
sk465net/netrom/af_netrom.csk->window    = nr_default.window;
sk467net/netrom/af_netrom.csk->state_change = def_callback1;
sk468net/netrom/af_netrom.csk->data_ready   = def_callback2;
sk469net/netrom/af_netrom.csk->write_space  = def_callback1;
sk470net/netrom/af_netrom.csk->error_report = def_callback1;
sk473net/netrom/af_netrom.csock->data = (void *)sk;
sk474net/netrom/af_netrom.csk->sleep  = sock->wait;
sk514net/netrom/af_netrom.cnr->sk = sk;
sk515net/netrom/af_netrom.csk->nr = nr;
sk522net/netrom/af_netrom.cstruct sock *sk;
sk528net/netrom/af_netrom.cif ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL)
sk532net/netrom/af_netrom.ckfree_s(sk, sizeof(*sk));
sk536net/netrom/af_netrom.cskb_queue_head_init(&sk->receive_queue);
sk537net/netrom/af_netrom.cskb_queue_head_init(&sk->write_queue);
sk538net/netrom/af_netrom.cskb_queue_head_init(&sk->back_log);
sk540net/netrom/af_netrom.cinit_timer(&sk->timer);
sk542net/netrom/af_netrom.csk->type        = osk->type;
sk543net/netrom/af_netrom.csk->socket      = osk->socket;
sk544net/netrom/af_netrom.csk->dead        = 0;
sk545net/netrom/af_netrom.csk->next        = NULL;
sk546net/netrom/af_netrom.csk->priority    = osk->priority;
sk547net/netrom/af_netrom.csk->broadcast   = 0;
sk548net/netrom/af_netrom.csk->protocol    = osk->protocol;
sk549net/netrom/af_netrom.csk->rcvbuf      = osk->rcvbuf;
sk550net/netrom/af_netrom.csk->sndbuf      = osk->sndbuf;
sk551net/netrom/af_netrom.csk->wmem_alloc  = 0;
sk552net/netrom/af_netrom.csk->rmem_alloc  = 0;
sk553net/netrom/af_netrom.csk->inuse       = 0;
sk554net/netrom/af_netrom.csk->ack_backlog = 0;
sk555net/netrom/af_netrom.csk->destroy     = 0;
sk556net/netrom/af_netrom.csk->prot        = NULL;  /* So we use default free mechanisms */
sk557net/netrom/af_netrom.csk->err         = 0;
sk558net/netrom/af_netrom.csk->localroute  = 0;
sk559net/netrom/af_netrom.csk->send_head   = NULL;
sk560net/netrom/af_netrom.csk->debug       = osk->debug;
sk561net/netrom/af_netrom.csk->state       = TCP_ESTABLISHED;
sk562net/netrom/af_netrom.csk->window      = osk->window;
sk563net/netrom/af_netrom.csk->shutdown    = 0;
sk564net/netrom/af_netrom.csk->mtu         = osk->mtu;
sk565net/netrom/af_netrom.csk->sleep       = osk->sleep;
sk566net/netrom/af_netrom.csk->zapped      = osk->zapped;
sk568net/netrom/af_netrom.csk->state_change = def_callback1;
sk569net/netrom/af_netrom.csk->data_ready   = def_callback2;
sk570net/netrom/af_netrom.csk->write_space  = def_callback1;
sk571net/netrom/af_netrom.csk->error_report = def_callback1;
sk597net/netrom/af_netrom.csk->nr = nr;
sk598net/netrom/af_netrom.cnr->sk = sk;
sk600net/netrom/af_netrom.creturn sk;
sk605net/netrom/af_netrom.cstruct sock *sk = (struct sock *)oldsock->data;
sk607net/netrom/af_netrom.creturn nr_create(newsock, sk->protocol);
sk612net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sk614net/netrom/af_netrom.cif (sk == NULL) return 0;
sk616net/netrom/af_netrom.cif (sk->type == SOCK_SEQPACKET) {
sk617net/netrom/af_netrom.cswitch (sk->nr->state) {
sk619net/netrom/af_netrom.csk->state     = TCP_CLOSE;
sk620net/netrom/af_netrom.csk->state_change(sk);
sk621net/netrom/af_netrom.csk->dead      = 1;
sk622net/netrom/af_netrom.cnr_destroy_socket(sk);
sk626net/netrom/af_netrom.csk->nr->state = NR_STATE_0;
sk627net/netrom/af_netrom.csk->state     = TCP_CLOSE;
sk628net/netrom/af_netrom.csk->state_change(sk);
sk629net/netrom/af_netrom.csk->dead      = 1;
sk630net/netrom/af_netrom.cnr_destroy_socket(sk);
sk634net/netrom/af_netrom.cnr_write_internal(sk, NR_DISCACK);
sk635net/netrom/af_netrom.csk->nr->state = NR_STATE_0;
sk636net/netrom/af_netrom.csk->state     = TCP_CLOSE;
sk637net/netrom/af_netrom.csk->state_change(sk);
sk638net/netrom/af_netrom.csk->dead      = 1;
sk639net/netrom/af_netrom.cnr_destroy_socket(sk);
sk643net/netrom/af_netrom.cnr_clear_queues(sk);
sk644net/netrom/af_netrom.csk->nr->n2count = 0;
sk645net/netrom/af_netrom.cnr_write_internal(sk, NR_DISCREQ);
sk646net/netrom/af_netrom.csk->nr->t1timer = sk->nr->t1 = nr_calculate_t1(sk);
sk647net/netrom/af_netrom.csk->nr->t2timer = 0;
sk648net/netrom/af_netrom.csk->nr->t4timer = 0;
sk649net/netrom/af_netrom.csk->nr->state   = NR_STATE_2;
sk650net/netrom/af_netrom.csk->state       = TCP_CLOSE;
sk651net/netrom/af_netrom.csk->state_change(sk);
sk652net/netrom/af_netrom.csk->dead        = 1;
sk653net/netrom/af_netrom.csk->destroy     = 1;
sk660net/netrom/af_netrom.csk->state = TCP_CLOSE;
sk661net/netrom/af_netrom.csk->state_change(sk);
sk662net/netrom/af_netrom.csk->dead = 1;
sk663net/netrom/af_netrom.cnr_destroy_socket(sk);
sk667net/netrom/af_netrom.csk->socket = NULL;  /* Not used, but we should do this. **/
sk674net/netrom/af_netrom.cstruct sock *sk;
sk679net/netrom/af_netrom.csk = (struct sock *)sock->data;
sk681net/netrom/af_netrom.cif (sk->zapped == 0)
sk688net/netrom/af_netrom.cif (nr_find_listener(&addr->fsa_ax25.sax25_call, sk->type) != NULL) {
sk689net/netrom/af_netrom.cif (sk->debug)
sk696net/netrom/af_netrom.cif (sk->debug)
sk707net/netrom/af_netrom.cmemcpy(&sk->nr->user_addr,   &addr->fsa_digipeater[0],   sizeof(ax25_address));
sk708net/netrom/af_netrom.cmemcpy(&sk->nr->source_addr, &addr->fsa_ax25.sax25_call, sizeof(ax25_address));
sk718net/netrom/af_netrom.cmemcpy(&sk->nr->user_addr,   user,   sizeof(ax25_address));
sk719net/netrom/af_netrom.cmemcpy(&sk->nr->source_addr, source, sizeof(ax25_address));
sk722net/netrom/af_netrom.csk->nr->device = dev;
sk723net/netrom/af_netrom.cnr_insert_socket(sk);
sk725net/netrom/af_netrom.csk->zapped = 0;
sk727net/netrom/af_netrom.cif (sk->debug)
sk736net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sk741net/netrom/af_netrom.cif (sk->state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) {
sk746net/netrom/af_netrom.cif (sk->state == TCP_CLOSE && sock->state == SS_CONNECTING) {
sk751net/netrom/af_netrom.cif (sk->state == TCP_ESTABLISHED && sk->type == SOCK_SEQPACKET)
sk754net/netrom/af_netrom.csk->state   = TCP_CLOSE;  
sk763net/netrom/af_netrom.cif (sk->zapped) {  /* Must bind first - autobinding in this may or may not work */
sk764net/netrom/af_netrom.csk->zapped = 0;
sk774net/netrom/af_netrom.cmemcpy(&sk->nr->user_addr,   user,   sizeof(ax25_address));
sk775net/netrom/af_netrom.cmemcpy(&sk->nr->source_addr, source, sizeof(ax25_address));
sk777net/netrom/af_netrom.csk->nr->device = dev;
sk779net/netrom/af_netrom.cnr_insert_socket(sk);    /* Finish the bind */
sk782net/netrom/af_netrom.cmemcpy(&sk->nr->dest_addr, &addr->sax25_call, sizeof(ax25_address));
sk787net/netrom/af_netrom.csk->nr->my_index = circuit / 256;
sk788net/netrom/af_netrom.csk->nr->my_id    = circuit % 256;
sk794net/netrom/af_netrom.csk->state     = TCP_SYN_SENT;
sk795net/netrom/af_netrom.cnr_establish_data_link(sk);
sk796net/netrom/af_netrom.csk->nr->state = NR_STATE_1;
sk797net/netrom/af_netrom.cnr_set_timer(sk);
sk800net/netrom/af_netrom.cif (sk->state != TCP_ESTABLISHED && (flags & O_NONBLOCK))
sk808net/netrom/af_netrom.cwhile (sk->state == TCP_SYN_SENT) {
sk809net/netrom/af_netrom.cinterruptible_sleep_on(sk->sleep);
sk816net/netrom/af_netrom.cif (sk->state != TCP_ESTABLISHED) {
sk819net/netrom/af_netrom.creturn -sk->err;  /* Always set at this point */
sk836net/netrom/af_netrom.cstruct sock *sk;
sk845net/netrom/af_netrom.csk = (struct sock *)sock->data;
sk847net/netrom/af_netrom.cif (sk->type != SOCK_SEQPACKET)
sk850net/netrom/af_netrom.cif (sk->state != TCP_LISTEN)
sk857net/netrom/af_netrom.cif ((skb = skb_dequeue(&sk->receive_queue)) == NULL) {
sk862net/netrom/af_netrom.cinterruptible_sleep_on(sk->sleep);
sk870net/netrom/af_netrom.cnewsk = skb->sk;
sk875net/netrom/af_netrom.cskb->sk = NULL;
sk877net/netrom/af_netrom.csk->ack_backlog--;
sk887net/netrom/af_netrom.cstruct sock *sk;
sk889net/netrom/af_netrom.csk = (struct sock *)sock->data;
sk892net/netrom/af_netrom.cif (sk->state != TCP_ESTABLISHED)
sk896net/netrom/af_netrom.cmemcpy(&sax->fsa_ax25.sax25_call, &sk->nr->user_addr, sizeof(ax25_address));
sk897net/netrom/af_netrom.cmemcpy(&sax->fsa_digipeater[0],   &sk->nr->dest_addr, sizeof(ax25_address));
sk902net/netrom/af_netrom.cmemcpy(&sax->fsa_ax25.sax25_call, &sk->nr->source_addr, sizeof(ax25_address));
sk911net/netrom/af_netrom.cstruct sock *sk;
sk917net/netrom/af_netrom.cskb->sk = NULL;    /* Initially we don't know who its for */
sk946net/netrom/af_netrom.cif (((frametype & 0x0F) != NR_CONNREQ && (sk = nr_find_socket(circuit_index, circuit_id, SOCK_SEQPACKET)) != NULL) ||
sk947net/netrom/af_netrom.c((frametype & 0x0F) == NR_CONNREQ && (sk = nr_find_peer(circuit_index, circuit_id, SOCK_SEQPACKET)) != NULL)) {
sk951net/netrom/af_netrom.csk->nr->bpqext = 1;
sk953net/netrom/af_netrom.csk->nr->bpqext = 0;
sk955net/netrom/af_netrom.creturn nr_process_rx_frame(sk, skb);
sk961net/netrom/af_netrom.csk = nr_find_listener(dest, SOCK_SEQPACKET);
sk965net/netrom/af_netrom.cif (sk == NULL || sk->ack_backlog == sk->max_ack_backlog || (make = nr_make_new(sk)) == NULL) {
sk972net/netrom/af_netrom.cskb->sk             = make;
sk1010net/netrom/af_netrom.csk->ack_backlog++;
sk1011net/netrom/af_netrom.cmake->pair = sk;
sk1015net/netrom/af_netrom.cskb_queue_head(&sk->receive_queue, skb);
sk1019net/netrom/af_netrom.cif (!sk->dead)
sk1020net/netrom/af_netrom.csk->data_ready(sk, skb->len);
sk1027net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sk1035net/netrom/af_netrom.cif (sk->err) {
sk1036net/netrom/af_netrom.cerr     = sk->err;
sk1037net/netrom/af_netrom.csk->err = 0;
sk1044net/netrom/af_netrom.cif (sk->zapped)
sk1047net/netrom/af_netrom.cif (sk->nr->device == NULL)
sk1054net/netrom/af_netrom.cif (sk->type == SOCK_SEQPACKET && memcmp(&sk->nr->dest_addr, &sax.sax25_call, sizeof(ax25_address)) != 0)
sk1059net/netrom/af_netrom.cif (sk->state != TCP_ESTABLISHED)
sk1062net/netrom/af_netrom.cmemcpy(&sax.sax25_call, &sk->nr->dest_addr, sizeof(ax25_address));
sk1065net/netrom/af_netrom.cif (sk->debug)
sk1069net/netrom/af_netrom.cif (sk->debug)
sk1074net/netrom/af_netrom.cif ((skb = sock_alloc_send_skb(sk, size, 0, 0, &err)) == NULL)
sk1077net/netrom/af_netrom.cskb->sk   = sk;
sk1089net/netrom/af_netrom.cif (sk->debug)
sk1094net/netrom/af_netrom.c*asmptr++ = sk->nr->your_index;
sk1095net/netrom/af_netrom.c*asmptr++ = sk->nr->your_id;
sk1100net/netrom/af_netrom.cif (sk->debug)
sk1111net/netrom/af_netrom.cif (sk->debug)
sk1117net/netrom/af_netrom.cif (sk->debug)
sk1120net/netrom/af_netrom.cif (sk->state != TCP_ESTABLISHED) {
sk1125net/netrom/af_netrom.cnr_output(sk, skb);  /* Shove it onto the queue */
sk1160net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sk1166net/netrom/af_netrom.cif (sk->err) {
sk1168net/netrom/af_netrom.cer      = -sk->err;
sk1169net/netrom/af_netrom.csk->err = 0;
sk1181net/netrom/af_netrom.cif (sk->type == SOCK_SEQPACKET && sk->state != TCP_ESTABLISHED)
sk1185net/netrom/af_netrom.cif ((skb = skb_recv_datagram(sk, flags, noblock, &er)) == NULL)
sk1188net/netrom/af_netrom.cif (!sk->nr->hdrincl) {
sk1236net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sk1238net/netrom/af_netrom.cif (sk->zapped)
sk1249net/netrom/af_netrom.cstatic int nr_shutdown(struct socket *sk, int how)
sk1256net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sk1258net/netrom/af_netrom.creturn datagram_select(sk, sel_type, wait);
sk1263net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sk1271net/netrom/af_netrom.camount = sk->sndbuf - sk->wmem_alloc;
sk1281net/netrom/af_netrom.cif ((skb = skb_peek(&sk->receive_queue)) != NULL)
sk1290net/netrom/af_netrom.cif (sk != NULL) {
sk1291net/netrom/af_netrom.cif (sk->stamp.tv_sec==0)
sk1295net/netrom/af_netrom.cmemcpy_tofs((void *)arg, &sk->stamp, sizeof(struct timeval));
sk53net/netrom/nr_in.cstatic int nr_queue_rx_frame(struct sock *sk, struct sk_buff *skb, int more)
sk58net/netrom/nr_in.csk->nr->fraglen += skb->len;
sk59net/netrom/nr_in.cskb_queue_tail(&sk->nr->frag_queue, skb);
sk63net/netrom/nr_in.cif (!more && sk->nr->fraglen > 0) {  /* End of fragment */
sk64net/netrom/nr_in.csk->nr->fraglen += skb->len;
sk65net/netrom/nr_in.cskb_queue_tail(&sk->nr->frag_queue, skb);
sk67net/netrom/nr_in.cif ((skbn = alloc_skb(sk->nr->fraglen, GFP_ATOMIC)) == NULL)
sk72net/netrom/nr_in.cskbn->sk   = sk;
sk73net/netrom/nr_in.csk->rmem_alloc += skbn->truesize;
sk76net/netrom/nr_in.cskbo = skb_dequeue(&sk->nr->frag_queue);
sk80net/netrom/nr_in.cwhile ((skbo = skb_dequeue(&sk->nr->frag_queue)) != NULL) {
sk86net/netrom/nr_in.csk->nr->fraglen = 0;    
sk89net/netrom/nr_in.creturn sock_queue_rcv_skb(sk, skbn);
sk97net/netrom/nr_in.cstatic int nr_state1_machine(struct sock *sk, struct sk_buff *skb, int frametype)
sk102net/netrom/nr_in.cnr_calculate_rtt(sk);
sk103net/netrom/nr_in.csk->window         = skb->data[20];
sk104net/netrom/nr_in.csk->nr->your_index = skb->data[17];
sk105net/netrom/nr_in.csk->nr->your_id    = skb->data[18];
sk106net/netrom/nr_in.csk->nr->t1timer    = 0;
sk107net/netrom/nr_in.csk->nr->t2timer    = 0;
sk108net/netrom/nr_in.csk->nr->t4timer    = 0;
sk109net/netrom/nr_in.csk->nr->vs         = 0;
sk110net/netrom/nr_in.csk->nr->va         = 0;
sk111net/netrom/nr_in.csk->nr->vr         = 0;
sk112net/netrom/nr_in.csk->nr->vl     = 0;
sk113net/netrom/nr_in.csk->nr->state      = NR_STATE_3;
sk114net/netrom/nr_in.csk->state          = TCP_ESTABLISHED;
sk115net/netrom/nr_in.csk->nr->n2count    = 0;
sk117net/netrom/nr_in.cif (!sk->dead)
sk118net/netrom/nr_in.csk->state_change(sk);
sk122net/netrom/nr_in.cnr_clear_queues(sk);
sk123net/netrom/nr_in.csk->nr->state = NR_STATE_0;
sk124net/netrom/nr_in.csk->state     = TCP_CLOSE;
sk125net/netrom/nr_in.csk->err       = ECONNREFUSED;
sk126net/netrom/nr_in.cif (!sk->dead)
sk127net/netrom/nr_in.csk->state_change(sk);
sk128net/netrom/nr_in.csk->dead      = 1;
sk143net/netrom/nr_in.cstatic int nr_state2_machine(struct sock *sk, struct sk_buff *skb, int frametype)
sk148net/netrom/nr_in.cnr_write_internal(sk, NR_DISCACK);
sk151net/netrom/nr_in.csk->nr->state = NR_STATE_0;
sk152net/netrom/nr_in.csk->state     = TCP_CLOSE;
sk153net/netrom/nr_in.csk->err       = 0;
sk154net/netrom/nr_in.cif (!sk->dead)
sk155net/netrom/nr_in.csk->state_change(sk);
sk156net/netrom/nr_in.csk->dead      = 1;
sk171net/netrom/nr_in.cstatic int nr_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype)
sk185net/netrom/nr_in.cnr_write_internal(sk, NR_CONNACK);
sk189net/netrom/nr_in.cnr_clear_queues(sk);
sk190net/netrom/nr_in.cnr_write_internal(sk, NR_DISCACK);
sk191net/netrom/nr_in.csk->nr->state = NR_STATE_0;
sk192net/netrom/nr_in.csk->state     = TCP_CLOSE;
sk193net/netrom/nr_in.csk->err       = 0;
sk194net/netrom/nr_in.cif (!sk->dead)
sk195net/netrom/nr_in.csk->state_change(sk);
sk196net/netrom/nr_in.csk->dead      = 1;
sk200net/netrom/nr_in.cnr_clear_queues(sk);
sk201net/netrom/nr_in.csk->nr->state = NR_STATE_0;
sk202net/netrom/nr_in.csk->state     = TCP_CLOSE;
sk203net/netrom/nr_in.csk->err       = ECONNRESET;
sk204net/netrom/nr_in.cif (!sk->dead)
sk205net/netrom/nr_in.csk->state_change(sk);
sk206net/netrom/nr_in.csk->dead      = 1;
sk214net/netrom/nr_in.csk->nr->condition |= PEER_RX_BUSY_CONDITION;
sk215net/netrom/nr_in.csk->nr->t4timer = nr_default.busy_delay;
sk217net/netrom/nr_in.csk->nr->condition &= ~PEER_RX_BUSY_CONDITION;
sk218net/netrom/nr_in.csk->nr->t4timer = 0;
sk220net/netrom/nr_in.cif (!nr_validate_nr(sk, nr)) {
sk224net/netrom/nr_in.cnr_frames_acked(sk, nr);
sk225net/netrom/nr_in.cnr_send_nak_frame(sk);
sk227net/netrom/nr_in.cif (sk->nr->condition & PEER_RX_BUSY_CONDITION) {
sk228net/netrom/nr_in.cnr_frames_acked(sk, nr);
sk230net/netrom/nr_in.cnr_check_iframes_acked(sk, nr);
sk244net/netrom/nr_in.csk->nr->condition |= PEER_RX_BUSY_CONDITION;
sk245net/netrom/nr_in.csk->nr->t4timer = nr_default.busy_delay;
sk247net/netrom/nr_in.csk->nr->condition &= ~PEER_RX_BUSY_CONDITION;
sk248net/netrom/nr_in.csk->nr->t4timer = 0;
sk250net/netrom/nr_in.cif (nr_validate_nr(sk, nr)) {
sk252net/netrom/nr_in.cnr_frames_acked(sk, nr);
sk253net/netrom/nr_in.cnr_send_nak_frame(sk);
sk255net/netrom/nr_in.cif (sk->nr->condition & PEER_RX_BUSY_CONDITION) {
sk256net/netrom/nr_in.cnr_frames_acked(sk, nr);
sk258net/netrom/nr_in.cnr_check_iframes_acked(sk, nr);
sk263net/netrom/nr_in.cskb_queue_head(&sk->nr->reseq_queue, skb);
sk264net/netrom/nr_in.cif (sk->nr->condition & OWN_RX_BUSY_CONDITION)
sk268net/netrom/nr_in.csave_vr = sk->nr->vr;
sk269net/netrom/nr_in.cwhile ((skbn = skb_dequeue(&sk->nr->reseq_queue)) != NULL) {
sk271net/netrom/nr_in.cif (ns == sk->nr->vr) {
sk272net/netrom/nr_in.cif (nr_queue_rx_frame(sk, skbn, frametype & NR_MORE_FLAG) == 0) {
sk273net/netrom/nr_in.csk->nr->vr = (sk->nr->vr + 1) % NR_MODULUS;
sk275net/netrom/nr_in.csk->nr->condition |= OWN_RX_BUSY_CONDITION;
sk278net/netrom/nr_in.c} else if (nr_in_rx_window(sk, ns)) {
sk286net/netrom/nr_in.cskb_queue_tail(&sk->nr->reseq_queue, skbn);
sk288net/netrom/nr_in.c} while (save_vr != sk->nr->vr);
sk292net/netrom/nr_in.cif (((sk->nr->vl + sk->window) % NR_MODULUS) == sk->nr->vr) {
sk293net/netrom/nr_in.cnr_enquiry_response(sk);
sk295net/netrom/nr_in.cif (!(sk->nr->condition & ACK_PENDING_CONDITION)) {
sk296net/netrom/nr_in.csk->nr->t2timer = sk->nr->t2;
sk297net/netrom/nr_in.csk->nr->condition |= ACK_PENDING_CONDITION;
sk310net/netrom/nr_in.cint nr_process_rx_frame(struct sock *sk, struct sk_buff *skb)
sk314net/netrom/nr_in.cif (sk->nr->state == NR_STATE_0 && sk->dead)
sk317net/netrom/nr_in.cif (sk->nr->state != NR_STATE_1 && sk->nr->state != NR_STATE_2 &&
sk318net/netrom/nr_in.csk->nr->state != NR_STATE_3) {
sk319net/netrom/nr_in.cprintk("nr_process_rx_frame: frame received - state: %d\n", sk->nr->state);
sk323net/netrom/nr_in.cdel_timer(&sk->timer);
sk327net/netrom/nr_in.cswitch (sk->nr->state)
sk330net/netrom/nr_in.cqueued = nr_state1_machine(sk, skb, frametype);
sk333net/netrom/nr_in.cqueued = nr_state2_machine(sk, skb, frametype);
sk336net/netrom/nr_in.cqueued = nr_state3_machine(sk, skb, frametype);
sk340net/netrom/nr_in.cnr_set_timer(sk);
sk49net/netrom/nr_out.cvoid nr_output(struct sock *sk, struct sk_buff *skb)
sk55net/netrom/nr_out.cmtu = sk->nr->device->mtu;
sk65net/netrom/nr_out.cif ((skbn = sock_alloc_send_skb(sk, frontlen + mtu, 0, 0, &err)) == NULL)
sk68net/netrom/nr_out.cskbn->sk   = sk;
sk87net/netrom/nr_out.cskb_queue_tail(&sk->write_queue, skbn); /* Throw it on the queue */
sk93net/netrom/nr_out.cskb_queue_tail(&sk->write_queue, skb);    /* Throw it on the queue */
sk96net/netrom/nr_out.cif (sk->nr->state == NR_STATE_3)
sk97net/netrom/nr_out.cnr_kick(sk);
sk104net/netrom/nr_out.cstatic void nr_send_iframe(struct sock *sk, struct sk_buff *skb)
sk109net/netrom/nr_out.cskb->data[2] = sk->nr->vs;
sk110net/netrom/nr_out.cskb->data[3] = sk->nr->vr;
sk112net/netrom/nr_out.cif (sk->nr->condition & OWN_RX_BUSY_CONDITION)
sk115net/netrom/nr_out.cnr_transmit_buffer(sk, skb);  
sk118net/netrom/nr_out.cvoid nr_send_nak_frame(struct sock *sk)
sk122net/netrom/nr_out.cif ((skb = skb_peek(&sk->nr->ack_queue)) == NULL)
sk128net/netrom/nr_out.cskbn->data[2] = sk->nr->va;
sk129net/netrom/nr_out.cskbn->data[3] = sk->nr->vr;
sk131net/netrom/nr_out.cif (sk->nr->condition & OWN_RX_BUSY_CONDITION)
sk134net/netrom/nr_out.cnr_transmit_buffer(sk, skbn);
sk136net/netrom/nr_out.csk->nr->condition &= ~ACK_PENDING_CONDITION;
sk137net/netrom/nr_out.csk->nr->vl      = sk->nr->vr;
sk138net/netrom/nr_out.csk->nr->t1timer = 0;
sk141net/netrom/nr_out.cvoid nr_kick(struct sock *sk)
sk147net/netrom/nr_out.cdel_timer(&sk->timer);
sk149net/netrom/nr_out.cstart = (skb_peek(&sk->nr->ack_queue) == NULL) ? sk->nr->va : sk->nr->vs;
sk150net/netrom/nr_out.cend   = (sk->nr->va + sk->window) % NR_MODULUS;
sk152net/netrom/nr_out.cif (!(sk->nr->condition & PEER_RX_BUSY_CONDITION) &&
sk154net/netrom/nr_out.cskb_peek(&sk->write_queue) != NULL) {
sk156net/netrom/nr_out.csk->nr->vs = start;
sk166net/netrom/nr_out.cskb  = skb_dequeue(&sk->write_queue);
sk170net/netrom/nr_out.cskb_queue_head(&sk->write_queue, skb);
sk174net/netrom/nr_out.cnext = (sk->nr->vs + 1) % NR_MODULUS;
sk180net/netrom/nr_out.cnr_send_iframe(sk, skbn);
sk182net/netrom/nr_out.csk->nr->vs = next;
sk187net/netrom/nr_out.cskb_queue_tail(&sk->nr->ack_queue, skb);
sk189net/netrom/nr_out.c} while (!last && (skb = skb_dequeue(&sk->write_queue)) != NULL);
sk191net/netrom/nr_out.csk->nr->vl = sk->nr->vr;
sk192net/netrom/nr_out.csk->nr->condition &= ~ACK_PENDING_CONDITION;
sk194net/netrom/nr_out.cif (sk->nr->t1timer == 0) {
sk195net/netrom/nr_out.csk->nr->t1timer = sk->nr->t1 = nr_calculate_t1(sk);
sk199net/netrom/nr_out.cnr_set_timer(sk);
sk202net/netrom/nr_out.cvoid nr_transmit_buffer(struct sock *sk, struct sk_buff *skb)
sk211net/netrom/nr_out.cmemcpy(dptr, &sk->nr->source_addr, sizeof(ax25_address));
sk217net/netrom/nr_out.cmemcpy(dptr, &sk->nr->dest_addr,   sizeof(ax25_address));
sk230net/netrom/nr_out.csk->state = TCP_CLOSE;
sk231net/netrom/nr_out.csk->err   = ENETUNREACH;
sk232net/netrom/nr_out.cif (!sk->dead)
sk233net/netrom/nr_out.csk->state_change(sk);
sk234net/netrom/nr_out.csk->dead  = 1;
sk243net/netrom/nr_out.cvoid nr_establish_data_link(struct sock *sk)
sk245net/netrom/nr_out.csk->nr->condition = 0x00;
sk246net/netrom/nr_out.csk->nr->n2count   = 0;
sk248net/netrom/nr_out.cnr_write_internal(sk, NR_CONNREQ);
sk250net/netrom/nr_out.csk->nr->t2timer = 0;
sk251net/netrom/nr_out.csk->nr->t1timer = sk->nr->t1 = nr_calculate_t1(sk);
sk257net/netrom/nr_out.cvoid nr_enquiry_response(struct sock *sk)
sk261net/netrom/nr_out.cif (sk->nr->condition & OWN_RX_BUSY_CONDITION) {
sk264net/netrom/nr_out.cif (skb_peek(&sk->nr->reseq_queue) != NULL) {
sk269net/netrom/nr_out.cnr_write_internal(sk, frametype);
sk271net/netrom/nr_out.csk->nr->vl = sk->nr->vr;
sk272net/netrom/nr_out.csk->nr->condition &= ~ACK_PENDING_CONDITION;
sk275net/netrom/nr_out.cvoid nr_check_iframes_acked(struct sock *sk, unsigned short nr)
sk277net/netrom/nr_out.cif (sk->nr->vs == nr) {
sk278net/netrom/nr_out.cnr_frames_acked(sk, nr);
sk279net/netrom/nr_out.cnr_calculate_rtt(sk);
sk280net/netrom/nr_out.csk->nr->t1timer = 0;
sk281net/netrom/nr_out.csk->nr->n2count = 0;
sk283net/netrom/nr_out.cif (sk->nr->va != nr) {
sk284net/netrom/nr_out.cnr_frames_acked(sk, nr);
sk285net/netrom/nr_out.csk->nr->t1timer = sk->nr->t1 = nr_calculate_t1(sk);
sk47net/netrom/nr_subr.cvoid nr_clear_queues(struct sock *sk)
sk51net/netrom/nr_subr.cwhile ((skb = skb_dequeue(&sk->write_queue)) != NULL) {
sk52net/netrom/nr_subr.cskb->sk   = sk;
sk57net/netrom/nr_subr.cwhile ((skb = skb_dequeue(&sk->nr->ack_queue)) != NULL) {
sk58net/netrom/nr_subr.cskb->sk   = sk;
sk63net/netrom/nr_subr.cwhile ((skb = skb_dequeue(&sk->nr->reseq_queue)) != NULL) {
sk67net/netrom/nr_subr.cwhile ((skb = skb_dequeue(&sk->nr->frag_queue)) != NULL) {
sk77net/netrom/nr_subr.cvoid nr_frames_acked(struct sock *sk, unsigned short nr)
sk84net/netrom/nr_subr.cif (sk->nr->va != nr) {
sk85net/netrom/nr_subr.cwhile (skb_peek(&sk->nr->ack_queue) != NULL && sk->nr->va != nr) {
sk86net/netrom/nr_subr.cskb = skb_dequeue(&sk->nr->ack_queue);
sk87net/netrom/nr_subr.cskb->sk   = sk;
sk90net/netrom/nr_subr.csk->nr->va = (sk->nr->va + 1) % NR_MODULUS;
sk100net/netrom/nr_subr.cvoid nr_requeue_frames(struct sock *sk)
sk104net/netrom/nr_subr.cwhile ((skb = skb_dequeue(&sk->nr->ack_queue)) != NULL) {
sk106net/netrom/nr_subr.cskb_queue_head(&sk->write_queue, skb);
sk117net/netrom/nr_subr.cint nr_validate_nr(struct sock *sk, unsigned short nr)
sk119net/netrom/nr_subr.cunsigned short vc = sk->nr->va;
sk121net/netrom/nr_subr.cwhile (vc != sk->nr->vs) {
sk126net/netrom/nr_subr.cif (nr == sk->nr->vs) return 1;
sk134net/netrom/nr_subr.cint nr_in_rx_window(struct sock *sk, unsigned short ns)
sk136net/netrom/nr_subr.cunsigned short vc = sk->nr->vr;
sk137net/netrom/nr_subr.cunsigned short vt = (sk->nr->vl + sk->window) % NR_MODULUS;
sk151net/netrom/nr_subr.cvoid nr_write_internal(struct sock *sk, int frametype)
sk164net/netrom/nr_subr.clen += (sk->nr->bpqext) ? 2 : 1;
sk188net/netrom/nr_subr.ctimeout  = (sk->nr->rtt / PR_SLOWHZ) * 2;
sk189net/netrom/nr_subr.c*dptr++  = sk->nr->my_index;
sk190net/netrom/nr_subr.c*dptr++  = sk->nr->my_id;
sk194net/netrom/nr_subr.c*dptr++  = sk->window;
sk195net/netrom/nr_subr.cmemcpy(dptr, &sk->nr->user_addr, sizeof(ax25_address));
sk200net/netrom/nr_subr.cmemcpy(dptr, &sk->nr->source_addr, sizeof(ax25_address));
sk210net/netrom/nr_subr.c*dptr++ = sk->nr->your_index;
sk211net/netrom/nr_subr.c*dptr++ = sk->nr->your_id;
sk212net/netrom/nr_subr.c*dptr++ = sk->nr->my_index;
sk213net/netrom/nr_subr.c*dptr++ = sk->nr->my_id;
sk215net/netrom/nr_subr.c*dptr++ = sk->window;
sk216net/netrom/nr_subr.cif (sk->nr->bpqext) *dptr++ = nr_default.ttl;
sk221net/netrom/nr_subr.c*dptr++ = sk->nr->your_index;
sk222net/netrom/nr_subr.c*dptr++ = sk->nr->your_id;
sk229net/netrom/nr_subr.c*dptr++ = sk->nr->your_index;
sk230net/netrom/nr_subr.c*dptr++ = sk->nr->your_id;
sk232net/netrom/nr_subr.c*dptr++ = sk->nr->vr;
sk239net/netrom/nr_subr.cnr_transmit_buffer(sk, skb);
sk283net/netrom/nr_subr.cskbn->sk   = NULL;
sk292net/netrom/nr_subr.cunsigned short nr_calculate_t1(struct sock *sk)
sk296net/netrom/nr_subr.cfor (t = 2, n = 0; n < sk->nr->n2count; n++)
sk301net/netrom/nr_subr.creturn t * sk->nr->rtt;
sk307net/netrom/nr_subr.cvoid nr_calculate_rtt(struct sock *sk)
sk309net/netrom/nr_subr.cif (sk->nr->t1timer > 0 && sk->nr->n2count == 0)
sk310net/netrom/nr_subr.csk->nr->rtt = (9 * sk->nr->rtt + sk->nr->t1 - sk->nr->t1timer) / 10;
sk314net/netrom/nr_subr.cif (sk->nr->rtt < (NR_T1CLAMPLO))
sk315net/netrom/nr_subr.csk->nr->rtt = (NR_T1CLAMPLO);
sk317net/netrom/nr_subr.cif (sk->nr->rtt == 0)
sk318net/netrom/nr_subr.csk->nr->rtt = PR_SLOWHZ;
sk322net/netrom/nr_subr.cif (sk->nr->rtt > (NR_T1CLAMPHI))
sk323net/netrom/nr_subr.csk->nr->rtt = (NR_T1CLAMPHI);
sk48net/netrom/nr_timer.cvoid nr_set_timer(struct sock *sk)
sk54net/netrom/nr_timer.cdel_timer(&sk->timer);
sk57net/netrom/nr_timer.csk->timer.next     = sk->timer.prev = NULL;  
sk58net/netrom/nr_timer.csk->timer.data     = (unsigned long)sk;
sk59net/netrom/nr_timer.csk->timer.function = &nr_timer;
sk61net/netrom/nr_timer.csk->timer.expires = jiffies+10;
sk62net/netrom/nr_timer.cadd_timer(&sk->timer);
sk65net/netrom/nr_timer.cstatic void nr_reset_timer(struct sock *sk)
sk71net/netrom/nr_timer.cdel_timer(&sk->timer);
sk74net/netrom/nr_timer.csk->timer.data     = (unsigned long)sk;
sk75net/netrom/nr_timer.csk->timer.function = &nr_timer;
sk76net/netrom/nr_timer.csk->timer.expires  = jiffies+10;
sk77net/netrom/nr_timer.cadd_timer(&sk->timer);
sk88net/netrom/nr_timer.cstruct sock *sk = (struct sock *)param;
sk90net/netrom/nr_timer.cswitch (sk->nr->state) {
sk94net/netrom/nr_timer.cif (sk->destroy || (sk->state == TCP_LISTEN && sk->dead)) {
sk95net/netrom/nr_timer.cdel_timer(&sk->timer);
sk96net/netrom/nr_timer.cnr_destroy_socket(sk);
sk105net/netrom/nr_timer.cif (sk->rmem_alloc < (sk->rcvbuf / 2) && (sk->nr->condition & OWN_RX_BUSY_CONDITION)) {
sk106net/netrom/nr_timer.csk->nr->condition &= ~OWN_RX_BUSY_CONDITION;
sk107net/netrom/nr_timer.cnr_write_internal(sk, NR_INFOACK);
sk108net/netrom/nr_timer.csk->nr->condition &= ~ACK_PENDING_CONDITION;
sk109net/netrom/nr_timer.csk->nr->vl = sk->nr->vr;
sk115net/netrom/nr_timer.cnr_kick(sk);
sk122net/netrom/nr_timer.cif (sk->nr->t2timer > 0 && --sk->nr->t2timer == 0) {
sk123net/netrom/nr_timer.cif (sk->nr->state == NR_STATE_3) {
sk124net/netrom/nr_timer.cif (sk->nr->condition & ACK_PENDING_CONDITION) {
sk125net/netrom/nr_timer.csk->nr->condition &= ~ACK_PENDING_CONDITION;
sk126net/netrom/nr_timer.cnr_enquiry_response(sk);
sk131net/netrom/nr_timer.cif (sk->nr->t4timer > 0 && --sk->nr->t4timer == 0) {
sk132net/netrom/nr_timer.csk->nr->condition &= ~PEER_RX_BUSY_CONDITION;
sk135net/netrom/nr_timer.cif (sk->nr->t1timer == 0 || --sk->nr->t1timer > 0) {
sk136net/netrom/nr_timer.cnr_reset_timer(sk);
sk140net/netrom/nr_timer.cswitch (sk->nr->state) {
sk142net/netrom/nr_timer.cif (sk->nr->n2count == sk->nr->n2) {
sk143net/netrom/nr_timer.cnr_clear_queues(sk);
sk144net/netrom/nr_timer.csk->nr->state = NR_STATE_0;
sk145net/netrom/nr_timer.csk->state     = TCP_CLOSE;
sk146net/netrom/nr_timer.csk->err       = ETIMEDOUT;
sk147net/netrom/nr_timer.cif (!sk->dead)
sk148net/netrom/nr_timer.csk->state_change(sk);
sk149net/netrom/nr_timer.csk->dead      = 1;
sk151net/netrom/nr_timer.csk->nr->n2count++;
sk152net/netrom/nr_timer.cnr_write_internal(sk, NR_CONNREQ);
sk157net/netrom/nr_timer.cif (sk->nr->n2count == sk->nr->n2) {
sk158net/netrom/nr_timer.cnr_clear_queues(sk);
sk159net/netrom/nr_timer.csk->nr->state = NR_STATE_0;
sk160net/netrom/nr_timer.csk->state     = TCP_CLOSE;
sk161net/netrom/nr_timer.csk->err       = ETIMEDOUT;
sk162net/netrom/nr_timer.cif (!sk->dead)
sk163net/netrom/nr_timer.csk->state_change(sk);
sk164net/netrom/nr_timer.csk->dead      = 1;
sk166net/netrom/nr_timer.csk->nr->n2count++;
sk167net/netrom/nr_timer.cnr_write_internal(sk, NR_DISCREQ);
sk172net/netrom/nr_timer.cif (sk->nr->n2count == sk->nr->n2) {
sk173net/netrom/nr_timer.cnr_clear_queues(sk);
sk174net/netrom/nr_timer.csk->nr->state = NR_STATE_0;
sk175net/netrom/nr_timer.csk->state     = TCP_CLOSE;
sk176net/netrom/nr_timer.csk->err       = ETIMEDOUT;
sk177net/netrom/nr_timer.cif (!sk->dead)
sk178net/netrom/nr_timer.csk->state_change(sk);
sk179net/netrom/nr_timer.csk->dead      = 1;
sk181net/netrom/nr_timer.csk->nr->n2count++;
sk182net/netrom/nr_timer.cnr_requeue_frames(sk);
sk187net/netrom/nr_timer.csk->nr->t1timer = sk->nr->t1 = nr_calculate_t1(sk);
sk189net/netrom/nr_timer.cnr_set_timer(sk);
sk69net/unix/af_unix.cstatic void unix_remove_socket(unix_socket *sk)
sk75net/unix/af_unix.cif(s==sk)
sk83net/unix/af_unix.cif(s->next==sk)
sk85net/unix/af_unix.cs->next=sk->next;
sk94net/unix/af_unix.cstatic void unix_insert_socket(unix_socket *sk)
sk97net/unix/af_unix.csk->next=unix_socket_list;
sk98net/unix/af_unix.cunix_socket_list=sk;
sk126net/unix/af_unix.cunix_socket *sk=(unix_socket *)data;
sk127net/unix/af_unix.cif(sk->protinfo.af_unix.locks==0 && sk->wmem_alloc==0)
sk129net/unix/af_unix.cif(sk->protinfo.af_unix.name)
sk130net/unix/af_unix.ckfree(sk->protinfo.af_unix.name);
sk131net/unix/af_unix.ckfree_s(sk,sizeof(*sk));
sk139net/unix/af_unix.csk->timer.expires=jiffies+10*HZ;  /* No real hurry try it every 10 seconds or so */
sk140net/unix/af_unix.cadd_timer(&sk->timer);
sk144net/unix/af_unix.cstatic void unix_delayed_delete(unix_socket *sk)
sk146net/unix/af_unix.csk->timer.data=(unsigned long)sk;
sk147net/unix/af_unix.csk->timer.expires=jiffies+HZ;    /* Normally 1 second after will clean up. After that we try every 10 */
sk148net/unix/af_unix.csk->timer.function=unix_destroy_timer;
sk149net/unix/af_unix.cadd_timer(&sk->timer);
sk152net/unix/af_unix.cstatic void unix_destroy_socket(unix_socket *sk)
sk155net/unix/af_unix.cunix_remove_socket(sk);
sk157net/unix/af_unix.cwhile((skb=skb_dequeue(&sk->receive_queue))!=NULL)
sk159net/unix/af_unix.cif(sk->state==TCP_LISTEN)
sk161net/unix/af_unix.cunix_socket *osk=skb->sk;
sk174net/unix/af_unix.cif(sk->protinfo.af_unix.inode!=NULL)
sk176net/unix/af_unix.ciput(sk->protinfo.af_unix.inode);
sk177net/unix/af_unix.csk->protinfo.af_unix.inode=NULL;
sk180net/unix/af_unix.cif(--sk->protinfo.af_unix.locks==0 && sk->wmem_alloc==0)
sk182net/unix/af_unix.cif(sk->protinfo.af_unix.name)
sk183net/unix/af_unix.ckfree(sk->protinfo.af_unix.name);
sk184net/unix/af_unix.ckfree_s(sk,sizeof(*sk));
sk188net/unix/af_unix.csk->dead=1;
sk189net/unix/af_unix.cunix_delayed_delete(sk);  /* Try every so often until buffers are all freed */
sk208net/unix/af_unix.cunix_socket *sk=sock->data;
sk211net/unix/af_unix.creturn sock_setsockopt(sk,level,optname,optval,optlen);  
sk216net/unix/af_unix.cunix_socket *sk=sock->data;
sk219net/unix/af_unix.creturn sock_getsockopt(sk,level,optname,optval,optlen);
sk224net/unix/af_unix.cunix_socket *sk=sock->data;
sk225net/unix/af_unix.cif(sk->type!=SOCK_STREAM)
sk227net/unix/af_unix.csk->max_ack_backlog=backlog;
sk228net/unix/af_unix.csk->state=TCP_LISTEN;
sk232net/unix/af_unix.cstatic void def_callback1(struct sock *sk)
sk234net/unix/af_unix.cif(!sk->dead)
sk235net/unix/af_unix.cwake_up_interruptible(sk->sleep);
sk238net/unix/af_unix.cstatic void def_callback2(struct sock *sk, int len)
sk240net/unix/af_unix.cif(!sk->dead)
sk242net/unix/af_unix.cwake_up_interruptible(sk->sleep);
sk243net/unix/af_unix.csock_wake_async(sk->socket, 1);
sk247net/unix/af_unix.cstatic void def_callback3(struct sock *sk)
sk249net/unix/af_unix.cif(!sk->dead)
sk251net/unix/af_unix.cwake_up_interruptible(sk->sleep);
sk252net/unix/af_unix.csock_wake_async(sk->socket, 2);
sk258net/unix/af_unix.cunix_socket *sk;
sk262net/unix/af_unix.csk=(unix_socket *)kmalloc(sizeof(*sk),GFP_KERNEL);
sk263net/unix/af_unix.cif(sk==NULL)
sk265net/unix/af_unix.csk->type=sock->type;
sk273net/unix/af_unix.ckfree_s(sk,sizeof(*sk));
sk276net/unix/af_unix.cinit_timer(&sk->timer);
sk277net/unix/af_unix.cskb_queue_head_init(&sk->write_queue);
sk278net/unix/af_unix.cskb_queue_head_init(&sk->receive_queue);
sk279net/unix/af_unix.cskb_queue_head_init(&sk->back_log);
sk280net/unix/af_unix.csk->protinfo.af_unix.family=AF_UNIX;
sk281net/unix/af_unix.csk->protinfo.af_unix.inode=NULL;
sk282net/unix/af_unix.csk->protinfo.af_unix.locks=1;  /* Us */
sk283net/unix/af_unix.csk->protinfo.af_unix.readsem=MUTEX;  /* single task reading lock */
sk284net/unix/af_unix.csk->protinfo.af_unix.name=NULL;
sk285net/unix/af_unix.csk->protinfo.af_unix.other=NULL;
sk286net/unix/af_unix.csk->protocol=0;
sk287net/unix/af_unix.csk->rmem_alloc=0;
sk288net/unix/af_unix.csk->wmem_alloc=0;
sk289net/unix/af_unix.csk->dead=0;
sk290net/unix/af_unix.csk->next=NULL;
sk291net/unix/af_unix.csk->broadcast=0;
sk292net/unix/af_unix.csk->rcvbuf=SK_RMEM_MAX;
sk293net/unix/af_unix.csk->sndbuf=SK_WMEM_MAX;
sk294net/unix/af_unix.csk->allocation=GFP_KERNEL;
sk295net/unix/af_unix.csk->inuse=0;
sk296net/unix/af_unix.csk->debug=0;
sk297net/unix/af_unix.csk->prot=NULL;
sk298net/unix/af_unix.csk->err=0;
sk299net/unix/af_unix.csk->localroute=0;
sk300net/unix/af_unix.csk->send_head=NULL;
sk301net/unix/af_unix.csk->state=TCP_CLOSE;
sk302net/unix/af_unix.csk->priority=SOPRI_NORMAL;
sk303net/unix/af_unix.csk->ack_backlog=0;
sk304net/unix/af_unix.csk->shutdown=0;
sk305net/unix/af_unix.csk->state_change=def_callback1;
sk306net/unix/af_unix.csk->data_ready=def_callback2;
sk307net/unix/af_unix.csk->write_space=def_callback3;
sk308net/unix/af_unix.csk->error_report=def_callback1;
sk309net/unix/af_unix.csk->mtu=4096;
sk310net/unix/af_unix.csk->socket=sock;
sk311net/unix/af_unix.csock->data=(void *)sk;
sk312net/unix/af_unix.csk->sleep=sock->wait;
sk313net/unix/af_unix.csk->zapped=0;
sk314net/unix/af_unix.cunix_insert_socket(sk);
sk325net/unix/af_unix.cunix_socket *sk=sock->data;
sk330net/unix/af_unix.cif(sk==NULL)
sk333net/unix/af_unix.csk->state_change(sk);
sk334net/unix/af_unix.csk->dead=1;
sk335net/unix/af_unix.cskpair=(unix_socket *)sk->protinfo.af_unix.other;  /* Person we send to (default) */
sk336net/unix/af_unix.cif(sk->type==SOCK_STREAM && skpair!=NULL && skpair->state!=TCP_LISTEN)
sk343net/unix/af_unix.csk->protinfo.af_unix.other=NULL;      /* No pair */
sk344net/unix/af_unix.cunix_destroy_socket(sk);      /* Try and flush out this socket. Throw our buffers at least */
sk379net/unix/af_unix.cunix_socket *sk=sock->data;
sk389net/unix/af_unix.cif(sk->protinfo.af_unix.inode!=NULL)
sk392net/unix/af_unix.csk->protinfo.af_unix.name=kmalloc(addr_len+1, GFP_KERNEL);
sk393net/unix/af_unix.cif(sk->protinfo.af_unix.name==NULL)
sk395net/unix/af_unix.cmemcpy(sk->protinfo.af_unix.name, sun->sun_path, addr_len+1);
sk400net/unix/af_unix.cerr=do_mknod(sk->protinfo.af_unix.name,S_IFSOCK|S_IRWXUGO,0);
sk402net/unix/af_unix.cerr=open_namei(sk->protinfo.af_unix.name, 2, S_IFSOCK, &sk->protinfo.af_unix.inode, NULL);
sk408net/unix/af_unix.ckfree_s(sk->protinfo.af_unix.name,addr_len+1);
sk409net/unix/af_unix.csk->protinfo.af_unix.name=NULL;
sk422net/unix/af_unix.cunix_socket *sk=sock->data;
sk428net/unix/af_unix.cif(sk->type==SOCK_STREAM && sk->protinfo.af_unix.other)
sk430net/unix/af_unix.cif(sock->state==SS_CONNECTING && sk->state==TCP_ESTABLISHED)
sk435net/unix/af_unix.cif(sock->state==SS_CONNECTING && sk->state == TCP_CLOSE)
sk450net/unix/af_unix.cif(sk->type==SOCK_DGRAM && sk->protinfo.af_unix.other)
sk452net/unix/af_unix.csk->protinfo.af_unix.other->protinfo.af_unix.locks--;
sk453net/unix/af_unix.csk->protinfo.af_unix.other=NULL;
sk463net/unix/af_unix.csk->protinfo.af_unix.other=other;
sk465net/unix/af_unix.csk->state=TCP_ESTABLISHED;
sk476net/unix/af_unix.cskb=sock_alloc_send_skb(sk, 0, 0, 0, &err); /* Marker object */
sk479net/unix/af_unix.cskb->sk=sk;        /* So they know it is us */
sk481net/unix/af_unix.csk->state=TCP_CLOSE;
sk491net/unix/af_unix.csk->protinfo.af_unix.other=other;
sk493net/unix/af_unix.csk->state=TCP_SYN_SENT;
sk503net/unix/af_unix.cwhile(sk->state==TCP_SYN_SENT)
sk510net/unix/af_unix.cinterruptible_sleep_on(sk->sleep);
sk522net/unix/af_unix.cif(sk->state==TCP_CLOSE)
sk524net/unix/af_unix.csk->protinfo.af_unix.other->protinfo.af_unix.locks--;
sk525net/unix/af_unix.csk->protinfo.af_unix.other=NULL;
sk572net/unix/af_unix.cunix_socket *sk=sock->data;
sk576net/unix/af_unix.cif(sk->type!=SOCK_STREAM)
sk580net/unix/af_unix.cif(sk->state!=TCP_LISTEN)
sk586net/unix/af_unix.cif(sk->protinfo.af_unix.name!=NULL)
sk588net/unix/af_unix.cnewsk->protinfo.af_unix.name=kmalloc(strlen(sk->protinfo.af_unix.name)+1, GFP_KERNEL);
sk591net/unix/af_unix.cstrcpy(newsk->protinfo.af_unix.name, sk->protinfo.af_unix.name);
sk597net/unix/af_unix.cskb=skb_dequeue(&sk->receive_queue);
sk605net/unix/af_unix.cinterruptible_sleep_on(sk->sleep);
sk615net/unix/af_unix.ctsk=skb->sk;
sk617net/unix/af_unix.csk->ack_backlog--;
sk623net/unix/af_unix.csk->protinfo.af_unix.locks--;  /* Locked to child socket not master */
sk633net/unix/af_unix.cunix_socket *sk=sock->data;
sk638net/unix/af_unix.cif(sk->protinfo.af_unix.other==NULL)
sk640net/unix/af_unix.csk=sk->protinfo.af_unix.other;
sk643net/unix/af_unix.cif(sk->protinfo.af_unix.name==NULL)
sk649net/unix/af_unix.c*uaddr_len=sizeof(sun->sun_family)+strlen(sk->protinfo.af_unix.name)+1;
sk650net/unix/af_unix.cstrcpy(sun->sun_path,sk->protinfo.af_unix.name);    /* 108 byte limited */
sk656net/unix/af_unix.cunix_socket *sk=sock->data;
sk664net/unix/af_unix.cif(sk->err)
sk667net/unix/af_unix.cerr=sk->err;
sk668net/unix/af_unix.csk->err=0;
sk680net/unix/af_unix.cif(sk->state==TCP_ESTABLISHED)
sk688net/unix/af_unix.cif(sk->protinfo.af_unix.other==NULL)
sk702net/unix/af_unix.cif(size>(sk->sndbuf-sizeof(struct sk_buff))/2)  /* Keep two messages in the pipe so it schedules better */
sk706net/unix/af_unix.csize=(sk->sndbuf-sizeof(struct sk_buff))/2;
sk723net/unix/af_unix.cskb=sock_alloc_send_skb(sk,size,limit,nonblock, &err);
sk729net/unix/af_unix.csk->err=-err;
sk736net/unix/af_unix.cskb->sk=sk;
sk744net/unix/af_unix.cother=sk->protinfo.af_unix.other;
sk748net/unix/af_unix.csk->protinfo.af_unix.other=NULL;
sk781net/unix/af_unix.cunix_socket *sk=sock->data;
sk795net/unix/af_unix.cif(sk->err)
sk798net/unix/af_unix.cerr=sk->err;
sk799net/unix/af_unix.csk->err=0;
sk805net/unix/af_unix.cdown(&sk->protinfo.af_unix.readsem);    /* Lock the socket */
sk819net/unix/af_unix.cup(&sk->protinfo.af_unix.readsem);
sk823net/unix/af_unix.cskb=skb_peek(&sk->receive_queue);
sk826net/unix/af_unix.cup(&sk->protinfo.af_unix.readsem);
sk827net/unix/af_unix.cif(sk->shutdown & RCV_SHUTDOWN)
sk842net/unix/af_unix.csk->socket->flags |= SO_WAITDATA;
sk843net/unix/af_unix.cinterruptible_sleep_on(sk->sleep);
sk844net/unix/af_unix.csk->socket->flags &= ~SO_WAITDATA;
sk853net/unix/af_unix.cdown(&sk->protinfo.af_unix.readsem);
sk859net/unix/af_unix.cif(skb->sk->protinfo.af_unix.name)
sk861net/unix/af_unix.cmemcpy(sun->sun_path, skb->sk->protinfo.af_unix.name, 108);
sk893net/unix/af_unix.cup(&sk->protinfo.af_unix.readsem);
sk899net/unix/af_unix.cunix_socket *sk=(unix_socket *)sock->data;
sk900net/unix/af_unix.cunix_socket *other=sk->protinfo.af_unix.other;
sk903net/unix/af_unix.csk->shutdown|=SEND_SHUTDOWN;
sk904net/unix/af_unix.csk->state_change(sk);
sk911net/unix/af_unix.cother=sk->protinfo.af_unix.other;
sk914net/unix/af_unix.csk->shutdown|=RCV_SHUTDOWN;
sk915net/unix/af_unix.csk->state_change(sk);
sk933net/unix/af_unix.cunix_socket *sk=sock->data;
sk944net/unix/af_unix.camount=sk->sndbuf-sk->wmem_alloc;
sk952net/unix/af_unix.cif(sk->state==TCP_LISTEN)
sk955net/unix/af_unix.cif((skb=skb_peek(&sk->receive_queue))!=NULL)