taglinefilesource code
sk114drivers/net/de600.cstatic unsigned long de600_rspace(struct sock *sk);
sk476drivers/net/de600.cif (skb->sk && (skb->sk->protocol == IPPROTO_TCP) &&
sk477drivers/net/de600.c(skb->sk->prot->rspace != &de600_rspace))
sk478drivers/net/de600.cskb->sk->prot->rspace = de600_rspace; /* Ugh! */
sk807drivers/net/de600.cde600_rspace(struct sock *sk)
sk811drivers/net/de600.cif (sk != NULL) {
sk818drivers/net/de600.cif (sk->rmem_alloc >= sk->rcvbuf-2*DE600_MIN_WINDOW) return(0);
sk819drivers/net/de600.camt = min((sk->rcvbuf-sk->rmem_alloc)/2/*-DE600_MIN_WINDOW*/, DE600_MAX_WINDOW);
sk78drivers/net/loopback.celse if(skb->sk)
sk84drivers/net/loopback.cskb->sk->wmem_alloc-=skb->truesize;
sk85drivers/net/loopback.cskb->sk->write_space(skb->sk);
sk73fs/ncpfs/sock.cncp_wdog_data_ready(struct sock *sk, int len)
sk75fs/ncpfs/sock.cstruct socket *sock = sk->socket;
sk77fs/ncpfs/sock.cif (!sk->dead)
sk127fs/ncpfs/sock.cstruct sock   *sk;
sk148fs/ncpfs/sock.csk   = (struct sock *)(sock->data);
sk150fs/ncpfs/sock.cif (sk == NULL)
sk158fs/ncpfs/sock.c(unsigned int)(sk->data_ready),
sk161fs/ncpfs/sock.cif (sk->data_ready == ncp_wdog_data_ready)
sk167fs/ncpfs/sock.cserver->data_ready = sk->data_ready;
sk168fs/ncpfs/sock.csk->data_ready = ncp_wdog_data_ready;
sk169fs/ncpfs/sock.csk->allocation = GFP_ATOMIC;
sk179fs/ncpfs/sock.cstruct sock   *sk;
sk199fs/ncpfs/sock.csk = (struct sock *)(sock->data);
sk201fs/ncpfs/sock.cif (sk == NULL)
sk214fs/ncpfs/sock.cif (sk->data_ready != ncp_wdog_data_ready)
sk222fs/ncpfs/sock.c(unsigned int)(sk->data_ready),
sk225fs/ncpfs/sock.csk->data_ready = server->data_ready;
sk226fs/ncpfs/sock.csk->allocation = GFP_KERNEL;
sk232fs/ncpfs/sock.cncp_msg_data_ready(struct sock *sk, int len)
sk234fs/ncpfs/sock.cstruct socket *sock = sk->socket;
sk236fs/ncpfs/sock.cif (!sk->dead)
sk260fs/ncpfs/sock.cncp_trigger_message(sk->protinfo.ipx.ncp_server);
sk272fs/ncpfs/sock.cstruct sock   *sk;
sk291fs/ncpfs/sock.csk = (struct sock *)(sock->data);
sk293fs/ncpfs/sock.cif (sk == NULL)
sk300fs/ncpfs/sock.c(unsigned int)(sk->data_ready));
sk302fs/ncpfs/sock.cif (sk->data_ready == ncp_msg_data_ready)
sk308fs/ncpfs/sock.csk->data_ready = ncp_msg_data_ready;
sk309fs/ncpfs/sock.csk->protinfo.ipx.ncp_server = server;
sk64fs/smbfs/sock.csmb_data_callback(struct sock *sk,int len)
sk66fs/smbfs/sock.cstruct socket *sock = sk->socket;
sk68fs/smbfs/sock.cif(!sk->dead)
sk101fs/smbfs/sock.cwake_up_interruptible(sk->sleep);
sk112fs/smbfs/sock.cstruct sock   *sk;
sk132fs/smbfs/sock.csk   = (struct sock *)(sock->data);
sk134fs/smbfs/sock.cif (sk == NULL) {
sk141fs/smbfs/sock.c(unsigned int)(sk->data_ready),
sk144fs/smbfs/sock.cif (sk->data_ready == smb_data_callback) {
sk149fs/smbfs/sock.cserver->data_ready = sk->data_ready;
sk150fs/smbfs/sock.csk->data_ready = smb_data_callback;
sk160fs/smbfs/sock.cstruct sock   *sk;
sk179fs/smbfs/sock.csk   = (struct sock *)(sock->data);
sk181fs/smbfs/sock.cif (sk == NULL) {
sk192fs/smbfs/sock.cif (sk->data_ready != smb_data_callback) {
sk199fs/smbfs/sock.c(unsigned int)(sk->data_ready),
sk202fs/smbfs/sock.csk->data_ready = server->data_ready;
sk112include/linux/igmp.hextern int ip_mc_join_group(struct sock *sk, struct device *dev, unsigned long addr);
sk113include/linux/igmp.hextern int ip_mc_leave_group(struct sock *sk, struct device *dev,unsigned long addr);
sk114include/linux/igmp.hextern void ip_mc_drop_socket(struct sock *sk);
sk122include/linux/mroute.hextern int ipmr_ioctl(struct sock *sk, int cmd, unsigned long arg);
sk123include/linux/mroute.hextern void mroute_close(struct sock *sk);
sk55include/linux/skbuff.hstruct sock  *sk;      /* Socket we are owned by       */
sk444include/linux/skbuff.hextern struct sk_buff *    skb_recv_datagram(struct sock *sk,unsigned flags,int noblock, int *err);
sk445include/linux/skbuff.hextern int      datagram_select(struct sock *sk, int sel_type, select_table *wait);
sk448include/linux/skbuff.hextern void      skb_free_datagram(struct sock * sk, struct sk_buff *skb);
sk161include/net/ax25.hstruct sock    *sk;    /* Backlink to socket */
sk36include/net/icmp.hextern int  icmp_ioctl(struct sock *sk, int cmd,
sk87include/net/ip.hextern int    ip_ioctl(struct sock *sk, int cmd, unsigned long arg);
sk104include/net/ip.hextern void    ip_queue_xmit(struct sock *sk,
sk108include/net/ip.hextern int    ip_build_xmit(struct sock *sk,
sk130include/net/ip.hvoid ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag);
sk151include/net/ip.hextern int     ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen);
sk152include/net/ip.hextern int     ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen);
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,
sk315include/net/sock.hvoid      (*state_change)(struct sock *sk);
sk316include/net/sock.hvoid      (*data_ready)(struct sock *sk,int bytes);
sk317include/net/sock.hvoid      (*write_space)(struct sock *sk);
sk318include/net/sock.hvoid      (*error_report)(struct sock *sk);
sk328include/net/sock.hvoid      (*close)(struct sock *sk, unsigned long timeout);
sk335include/net/sock.hint      (*connect)(struct sock *sk,
sk337include/net/sock.hstruct sock *    (*accept) (struct sock *sk, int flags);
sk338include/net/sock.hvoid      (*queue_xmit)(struct sock *sk,
sk341include/net/sock.hvoid      (*retransmit)(struct sock *sk, int all);
sk342include/net/sock.hvoid      (*write_wakeup)(struct sock *sk);
sk343include/net/sock.hvoid      (*read_wakeup)(struct sock *sk);
sk348include/net/sock.hint      (*select)(struct sock *sk, int which,
sk350include/net/sock.hint      (*ioctl)(struct sock *sk, int cmd,
sk352include/net/sock.hint      (*init)(struct sock *sk);
sk353include/net/sock.hvoid      (*shutdown)(struct sock *sk, int how);
sk354include/net/sock.hint      (*setsockopt)(struct sock *sk, int level, int optname,
sk356include/net/sock.hint      (*getsockopt)(struct sock *sk, int level, int optname,
sk358include/net/sock.hint      (*sendmsg)(struct sock *sk, struct msghdr *msg, int len,
sk360include/net/sock.hint      (*recvmsg)(struct sock *sk, struct msghdr *msg, int len,
sk362include/net/sock.hint      (*bind)(struct sock *sk, struct sockaddr *uaddr, int addr_len);
sk403include/net/sock.hextern void __release_sock(struct sock *sk);
sk405include/net/sock.hstatic inline void lock_sock(struct sock *sk)
sk410include/net/sock.hif (sk->users) {
sk416include/net/sock.hsk->users++;
sk420include/net/sock.hstatic inline void release_sock(struct sock *sk)
sk425include/net/sock.hif (sk->users == 0) {
sk427include/net/sock.hsk->users = 1;
sk432include/net/sock.hif (!--sk->users)
sk433include/net/sock.h__release_sock(sk);
sk437include/net/sock.hextern void      destroy_sock(struct sock *sk);
sk450include/net/sock.hextern struct sk_buff    *sock_wmalloc(struct sock *sk,
sk453include/net/sock.hextern struct sk_buff    *sock_rmalloc(struct sock *sk,
sk456include/net/sock.hextern void      sock_wfree(struct sock *sk,
sk458include/net/sock.hextern void      sock_rfree(struct sock *sk,
sk460include/net/sock.hextern unsigned long    sock_rspace(struct sock *sk);
sk461include/net/sock.hextern unsigned long    sock_wspace(struct sock *sk);
sk463include/net/sock.hextern int      sock_setsockopt(struct sock *sk, int level,
sk467include/net/sock.hextern int      sock_getsockopt(struct sock *sk, int level,
sk485include/net/sock.hextern __inline__ int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
sk488include/net/sock.hif(sk->rmem_alloc + skb->truesize >= sk->rcvbuf)
sk492include/net/sock.hsk->rmem_alloc+=skb->truesize;
sk493include/net/sock.hskb->sk=sk;
sk495include/net/sock.hskb_queue_tail(&sk->receive_queue,skb);
sk496include/net/sock.hif(!sk->dead)
sk497include/net/sock.hsk->data_ready(sk,skb->len);
sk505include/net/sock.hextern __inline__ int sock_error(struct sock *sk)
sk507include/net/sock.hint err=xchg(&sk->err,0);
sk121include/net/tcp.hextern void  tcp_shutdown (struct sock *sk, int how);
sk127include/net/tcp.hextern int tcp_ioctl(struct sock *sk, int cmd, unsigned long arg);
sk142include/net/tcp.hextern void tcp_send_fin(struct sock *sk);
sk145include/net/tcp.hextern void tcp_send_ack(u32, u32, struct sock *sk, struct tcphdr *th, u32);
sk184include/net/tcp.hstatic __inline__ unsigned short tcp_raise_window(struct sock *sk)
sk186include/net/tcp.hlong free_space = sock_rspace(sk);
sk192include/net/tcp.hif(sk->window_clamp)
sk193include/net/tcp.hfree_space = min(sk->window_clamp, free_space);
sk200include/net/tcp.hwindow = sk->window - (sk->acked_seq - sk->lastwin_seq);
sk202include/net/tcp.hif (sk->mss == 0)
sk203include/net/tcp.hsk->mss = sk->mtu;
sk208include/net/tcp.hsk->window, sk->acked_seq, sk->lastwin_seq);
sk211include/net/tcp.hif ( (free_space - window) >= min(sk->mss, MAX_WINDOW/2) )
sk212include/net/tcp.hreturn ((free_space - window) / sk->mss) * sk->mss;
sk217include/net/tcp.hstatic __inline__ unsigned short tcp_select_window(struct sock *sk)
sk219include/net/tcp.hlong free_space = sock_rspace(sk);
sk225include/net/tcp.hif (sk->window_clamp)
sk226include/net/tcp.hfree_space = min(sk->window_clamp, free_space);
sk233include/net/tcp.hif (sk->mss == 0)
sk234include/net/tcp.hsk->mss = sk->mtu;
sk236include/net/tcp.hwindow = sk->window - (sk->acked_seq - sk->lastwin_seq);
sk241include/net/tcp.hsk->window, sk->acked_seq, sk->lastwin_seq);
sk254include/net/tcp.hif ( (free_space - window) >= min(sk->mss, MAX_WINDOW/2) )
sk255include/net/tcp.hwindow += ((free_space - window) / sk->mss) * sk->mss;
sk257include/net/tcp.hsk->window = window;
sk258include/net/tcp.hsk->lastwin_seq = sk->acked_seq;
sk260include/net/tcp.hreturn sk->window;
sk296include/net/tcp.hstatic __inline__ void tcp_set_state(struct sock *sk, int state)
sk298include/net/tcp.hint oldstate = sk->state;
sk300include/net/tcp.hsk->state = state;
sk303include/net/tcp.hif(sk->debug)
sk304include/net/tcp.hprintk("TCP sk=%p, State %s -> %s\n",sk, statename[oldstate],statename[state]);
sk321include/net/tcp.hreset_timer(sk, TIME_DONE, min(sk->rtt * 2, TCP_DONE_TIME));
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;
sk457net/appletalk/aarp.cif(skb->sk==NULL)
sk460net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
sk473net/appletalk/aarp.cif(skb->sk==NULL)
sk476net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
sk581net/appletalk/aarp.cif(skb->sk==NULL)
sk584net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
sk92net/appletalk/ddp.cstatic void atalk_remove_socket(atalk_socket *sk)
sk101net/appletalk/ddp.cif(s==sk)
sk109net/appletalk/ddp.cif(s->next==sk)
sk111net/appletalk/ddp.cs->next=sk->next;
sk120net/appletalk/ddp.cstatic void atalk_insert_socket(atalk_socket *sk)
sk125net/appletalk/ddp.csk->next=atalk_socket_list;
sk126net/appletalk/ddp.catalk_socket_list=sk;
sk193net/appletalk/ddp.cstatic void atalk_destroy_socket(atalk_socket *sk);
sk204net/appletalk/ddp.cstatic void atalk_destroy_socket(atalk_socket *sk)
sk207net/appletalk/ddp.catalk_remove_socket(sk);
sk209net/appletalk/ddp.cwhile((skb=skb_dequeue(&sk->receive_queue))!=NULL)
sk214net/appletalk/ddp.cif(sk->wmem_alloc == 0 && sk->rmem_alloc == 0 && sk->dead)
sk215net/appletalk/ddp.ckfree_s(sk,sizeof(*sk));
sk221net/appletalk/ddp.cinit_timer(&sk->timer);
sk222net/appletalk/ddp.csk->timer.expires=jiffies+10*HZ;
sk223net/appletalk/ddp.csk->timer.function=atalk_destroy_timer;
sk224net/appletalk/ddp.csk->timer.data = (unsigned long)sk;
sk225net/appletalk/ddp.cadd_timer(&sk->timer);
sk969net/appletalk/ddp.catalk_socket *sk;
sk972net/appletalk/ddp.csk=(atalk_socket *)sock->data;
sk993net/appletalk/ddp.creturn sock_setsockopt(sk,level,optname,optval,optlen);
sk1008net/appletalk/ddp.catalk_socket *sk;
sk1012net/appletalk/ddp.csk=(atalk_socket *)sock->data;
sk1026net/appletalk/ddp.creturn sock_getsockopt(sk,level,optname,optval,optlen);
sk1055net/appletalk/ddp.cstatic void def_callback1(struct sock *sk)
sk1057net/appletalk/ddp.cif(!sk->dead)
sk1058net/appletalk/ddp.cwake_up_interruptible(sk->sleep);
sk1061net/appletalk/ddp.cstatic void def_callback2(struct sock *sk, int len)
sk1063net/appletalk/ddp.cif(!sk->dead)
sk1065net/appletalk/ddp.cwake_up_interruptible(sk->sleep);
sk1066net/appletalk/ddp.csock_wake_async(sk->socket,0);
sk1077net/appletalk/ddp.catalk_socket *sk;
sk1078net/appletalk/ddp.csk=(atalk_socket *)kmalloc(sizeof(*sk),GFP_KERNEL);
sk1079net/appletalk/ddp.cif(sk==NULL)
sk1090net/appletalk/ddp.ckfree_s((void *)sk,sizeof(*sk));
sk1093net/appletalk/ddp.csk->dead=0;
sk1094net/appletalk/ddp.csk->next=NULL;
sk1095net/appletalk/ddp.csk->broadcast=0;
sk1096net/appletalk/ddp.csk->no_check=0;    /* Checksums on by default */
sk1097net/appletalk/ddp.csk->allocation=GFP_KERNEL;
sk1098net/appletalk/ddp.csk->rcvbuf=SK_RMEM_MAX;
sk1099net/appletalk/ddp.csk->sndbuf=SK_WMEM_MAX;
sk1100net/appletalk/ddp.csk->pair=NULL;
sk1101net/appletalk/ddp.csk->wmem_alloc=0;
sk1102net/appletalk/ddp.csk->rmem_alloc=0;
sk1103net/appletalk/ddp.csk->users=0;
sk1104net/appletalk/ddp.csk->proc=0;
sk1105net/appletalk/ddp.csk->priority=1;
sk1106net/appletalk/ddp.csk->shutdown=0;
sk1107net/appletalk/ddp.csk->prot=NULL;  /* So we use default free mechanisms */
sk1108net/appletalk/ddp.csk->broadcast=0;
sk1109net/appletalk/ddp.csk->err=0;
sk1110net/appletalk/ddp.cskb_queue_head_init(&sk->receive_queue);
sk1111net/appletalk/ddp.cskb_queue_head_init(&sk->write_queue);
sk1112net/appletalk/ddp.csk->send_head=NULL;
sk1113net/appletalk/ddp.cskb_queue_head_init(&sk->back_log);
sk1114net/appletalk/ddp.csk->state=TCP_CLOSE;
sk1115net/appletalk/ddp.csk->socket=sock;
sk1116net/appletalk/ddp.csk->type=sock->type;
sk1117net/appletalk/ddp.csk->debug=0;
sk1119net/appletalk/ddp.csk->protinfo.af_at.src_net=0;
sk1120net/appletalk/ddp.csk->protinfo.af_at.src_node=0;
sk1121net/appletalk/ddp.csk->protinfo.af_at.src_port=0;
sk1123net/appletalk/ddp.csk->protinfo.af_at.dest_net=0;
sk1124net/appletalk/ddp.csk->protinfo.af_at.dest_node=0;
sk1125net/appletalk/ddp.csk->protinfo.af_at.dest_port=0;
sk1127net/appletalk/ddp.csk->mtu=DDP_MAXSZ;
sk1131net/appletalk/ddp.csock->data=(void *)sk;
sk1132net/appletalk/ddp.csk->sleep=sock->wait;
sk1135net/appletalk/ddp.csk->state_change=def_callback1;
sk1136net/appletalk/ddp.csk->data_ready=def_callback2;
sk1137net/appletalk/ddp.csk->write_space=def_callback1;
sk1138net/appletalk/ddp.csk->error_report=def_callback1;
sk1140net/appletalk/ddp.csk->zapped=1;
sk1159net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sk1160net/appletalk/ddp.cif(sk==NULL)
sk1162net/appletalk/ddp.cif(!sk->dead)
sk1163net/appletalk/ddp.csk->state_change(sk);
sk1164net/appletalk/ddp.csk->dead=1;
sk1166net/appletalk/ddp.catalk_destroy_socket(sk);
sk1185net/appletalk/ddp.cstatic int atalk_autobind(atalk_socket *sk)
sk1193net/appletalk/ddp.csk->protinfo.af_at.src_net = sat.sat_addr.s_net = ap->s_net;
sk1194net/appletalk/ddp.csk->protinfo.af_at.src_node = sat.sat_addr.s_node = ap->s_node;
sk1198net/appletalk/ddp.csk->protinfo.af_at.src_port=n;
sk1199net/appletalk/ddp.catalk_insert_socket(sk);
sk1200net/appletalk/ddp.csk->zapped=0;
sk1210net/appletalk/ddp.catalk_socket *sk;
sk1213net/appletalk/ddp.csk=(atalk_socket *)sock->data;
sk1215net/appletalk/ddp.cif(sk->zapped==0)
sk1229net/appletalk/ddp.csk->protinfo.af_at.src_net=addr->sat_addr.s_net=ap->s_net;
sk1230net/appletalk/ddp.csk->protinfo.af_at.src_node=addr->sat_addr.s_node=ap->s_node;
sk1236net/appletalk/ddp.csk->protinfo.af_at.src_net=addr->sat_addr.s_net;
sk1237net/appletalk/ddp.csk->protinfo.af_at.src_node=addr->sat_addr.s_node;
sk1245net/appletalk/ddp.csk->protinfo.af_at.src_port=addr->sat_port=n;
sk1248net/appletalk/ddp.csk->protinfo.af_at.src_port=addr->sat_port;
sk1253net/appletalk/ddp.catalk_insert_socket(sk);
sk1254net/appletalk/ddp.csk->zapped=0;
sk1265net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sk1268net/appletalk/ddp.csk->state = TCP_CLOSE;  
sk1278net/appletalk/ddp.cif(addr->sat_addr.s_node==ATADDR_BCAST && !sk->broadcast)
sk1281net/appletalk/ddp.cif(sk->zapped)
sk1283net/appletalk/ddp.cif(atalk_autobind(sk)<0)
sk1290net/appletalk/ddp.csk->protinfo.af_at.dest_port=addr->sat_port;
sk1291net/appletalk/ddp.csk->protinfo.af_at.dest_net=addr->sat_addr.s_net;
sk1292net/appletalk/ddp.csk->protinfo.af_at.dest_node=addr->sat_addr.s_node;
sk1294net/appletalk/ddp.csk->state=TCP_ESTABLISHED;
sk1327net/appletalk/ddp.catalk_socket *sk;
sk1329net/appletalk/ddp.csk=(atalk_socket *)sock->data;
sk1330net/appletalk/ddp.cif(sk->zapped)
sk1332net/appletalk/ddp.cif(atalk_autobind(sk)<0)
sk1340net/appletalk/ddp.cif(sk->state!=TCP_ESTABLISHED)
sk1342net/appletalk/ddp.csat.sat_addr.s_net=sk->protinfo.af_at.dest_net;
sk1343net/appletalk/ddp.csat.sat_addr.s_node=sk->protinfo.af_at.dest_node;
sk1344net/appletalk/ddp.csat.sat_port=sk->protinfo.af_at.dest_port;
sk1348net/appletalk/ddp.csat.sat_addr.s_net=sk->protinfo.af_at.src_net;
sk1349net/appletalk/ddp.csat.sat_addr.s_node=sk->protinfo.af_at.src_node;
sk1350net/appletalk/ddp.csat.sat_port=sk->protinfo.af_at.src_port;
sk1505net/appletalk/ddp.cskb->sk = sock;
sk1509net/appletalk/ddp.cskb->sk=NULL;
sk1517net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sk1536net/appletalk/ddp.cif(sk->zapped)
sk1539net/appletalk/ddp.cif(atalk_autobind(sk)<0)
sk1548net/appletalk/ddp.cif(usat->sat_addr.s_node==ATADDR_BCAST && !sk->broadcast)
sk1554net/appletalk/ddp.cif(sk->state!=TCP_ESTABLISHED)
sk1558net/appletalk/ddp.cusat->sat_port=sk->protinfo.af_at.dest_port;
sk1559net/appletalk/ddp.cusat->sat_addr.s_node=sk->protinfo.af_at.dest_node;
sk1560net/appletalk/ddp.cusat->sat_addr.s_net=sk->protinfo.af_at.dest_net;
sk1565net/appletalk/ddp.cif(sk->debug)
sk1566net/appletalk/ddp.cprintk("SK %p: Got address.\n",sk);
sk1581net/appletalk/ddp.cat_hint.s_net=sk->protinfo.af_at.src_net;
sk1588net/appletalk/ddp.cif(sk->debug)
sk1589net/appletalk/ddp.cprintk("SK %p: Size needed %d, device %s\n", sk, size, dev->name);
sk1593net/appletalk/ddp.cskb = sock_alloc_send_skb(sk, size, 0, 0 , &err);
sk1597net/appletalk/ddp.cskb->sk=sk;
sk1605net/appletalk/ddp.cif(sk->debug)
sk1606net/appletalk/ddp.cprintk("SK %p: Begin build.\n", sk);
sk1620net/appletalk/ddp.cddp->deh_snet=sk->protinfo.af_at.src_net;
sk1622net/appletalk/ddp.cddp->deh_snode=sk->protinfo.af_at.src_node;
sk1624net/appletalk/ddp.cddp->deh_sport=sk->protinfo.af_at.src_port;
sk1626net/appletalk/ddp.cif(sk->debug)
sk1627net/appletalk/ddp.cprintk("SK %p: Copy user data (%d bytes).\n", sk, len);
sk1631net/appletalk/ddp.cif(sk->no_check==1)
sk1659net/appletalk/ddp.cif(sk->debug)
sk1660net/appletalk/ddp.cprintk("SK %p: send out(copy).\n", sk);
sk1670net/appletalk/ddp.cif(sk->debug)
sk1671net/appletalk/ddp.cprintk("SK %p: Loop back.\n", sk);
sk1673net/appletalk/ddp.csk->wmem_alloc-=skb->truesize;
sk1675net/appletalk/ddp.cskb->sk = NULL;
sk1684net/appletalk/ddp.cif(sk->debug)
sk1685net/appletalk/ddp.cprintk("SK %p: send out.\n", sk);
sk1696net/appletalk/ddp.cif(sk->debug)
sk1697net/appletalk/ddp.cprintk("SK %p: Done write (%d).\n", sk, len);
sk1704net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sk1711net/appletalk/ddp.cif(sk->err)
sk1712net/appletalk/ddp.creturn sock_error(sk);
sk1717net/appletalk/ddp.cskb=skb_recv_datagram(sk,flags,noblock,&er);
sk1722net/appletalk/ddp.cif(sk->type==SOCK_RAW)
sk1743net/appletalk/ddp.cskb_free_datagram(sk, skb);
sk1748net/appletalk/ddp.cstatic int atalk_shutdown(struct socket *sk,int how)
sk1755net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sk1757net/appletalk/ddp.creturn datagram_select(sk,sel_type,wait);
sk1768net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sk1776net/appletalk/ddp.camount=sk->sndbuf-sk->wmem_alloc;
sk1784net/appletalk/ddp.cif((skb=skb_peek(&sk->receive_queue))!=NULL)
sk1789net/appletalk/ddp.cif (sk)
sk1791net/appletalk/ddp.cif(sk->stamp.tv_sec==0)
sk1796net/appletalk/ddp.cmemcpy_tofs((void *)arg,&sk->stamp,sizeof(struct timeval));
sk216net/ax25/af_ax25.cif (s->sk != NULL) {
sk217net/ax25/af_ax25.cs->sk->state = TCP_CLOSE;
sk218net/ax25/af_ax25.cs->sk->err   = ENETUNREACH;
sk219net/ax25/af_ax25.cif (!s->sk->dead)
sk220net/ax25/af_ax25.cs->sk->state_change(s->sk);
sk221net/ax25/af_ax25.cs->sk->dead  = 1;
sk279net/ax25/af_ax25.cif (s->sk != NULL && ax25cmp(&s->source_addr, addr) == 0 && s->sk->type == type && s->sk->state == TCP_LISTEN) {
sk283net/ax25/af_ax25.creturn s->sk;
sk304net/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) {
sk306net/ax25/af_ax25.creturn s->sk;
sk328net/ax25/af_ax25.cif (s->sk != NULL && s->sk->type != SOCK_SEQPACKET)
sk353net/ax25/af_ax25.cif (s->sk != NULL && ax25cmp(&s->source_addr, addr) == 0 && s->sk->type == SOCK_RAW) {
sk355net/ax25/af_ax25.creturn s->sk;
sk364net/ax25/af_ax25.cstatic void ax25_send_to_raw(struct sock *sk, struct sk_buff *skb, int proto)
sk368net/ax25/af_ax25.cwhile (sk != NULL) {
sk369net/ax25/af_ax25.cif (sk->type == SOCK_RAW && sk->protocol == proto && sk->rmem_alloc <= sk->rcvbuf) {
sk373net/ax25/af_ax25.ccopy->sk = sk;
sk374net/ax25/af_ax25.csk->rmem_alloc += copy->truesize;
sk375net/ax25/af_ax25.cskb_queue_tail(&sk->receive_queue, copy);
sk376net/ax25/af_ax25.cif (!sk->dead)
sk377net/ax25/af_ax25.csk->data_ready(sk, skb->len);
sk380net/ax25/af_ax25.csk = sk->next;
sk416net/ax25/af_ax25.cif (ax25->sk != NULL) {
sk417net/ax25/af_ax25.cwhile ((skb = skb_dequeue(&ax25->sk->receive_queue)) != NULL) {
sk418net/ax25/af_ax25.cif (skb->sk != ax25->sk) {      /* A pending connection */
sk419net/ax25/af_ax25.cskb->sk->dead = 1;  /* Queue the unaccepted socket for death */
sk420net/ax25/af_ax25.cax25_set_timer(skb->sk->ax25);
sk421net/ax25/af_ax25.cskb->sk->ax25->state = AX25_STATE_0;
sk428net/ax25/af_ax25.cif (ax25->sk != NULL) {
sk429net/ax25/af_ax25.cif (ax25->sk->wmem_alloc || ax25->sk->rmem_alloc) { /* Defer: outstanding buffers */
sk441net/ax25/af_ax25.ckfree_s(ax25->sk, sizeof(*ax25->sk));
sk570net/ax25/af_ax25.cax25->sk       = NULL;
sk640net/ax25/af_ax25.cif (ax25->sk != NULL && ax25->sk->type != SOCK_SEQPACKET)
sk729net/ax25/af_ax25.cstruct sock *sk;
sk732net/ax25/af_ax25.csk = (struct sock *)sock->data;
sk735net/ax25/af_ax25.creturn sock_setsockopt(sk, level, optname, optval, optlen);
sk750net/ax25/af_ax25.cif (sk->ax25->modulus == MODULUS) {
sk757net/ax25/af_ax25.csk->ax25->window = opt;
sk763net/ax25/af_ax25.csk->ax25->rtt = (opt * PR_SLOWHZ) / 2;
sk769net/ax25/af_ax25.csk->ax25->t2 = opt * PR_SLOWHZ;
sk775net/ax25/af_ax25.csk->ax25->n2 = opt;
sk781net/ax25/af_ax25.csk->ax25->t3 = opt * PR_SLOWHZ;
sk785net/ax25/af_ax25.csk->ax25->backoff = opt ? 1 : 0;
sk789net/ax25/af_ax25.csk->ax25->modulus = opt ? EMODULUS : MODULUS;
sk793net/ax25/af_ax25.csk->ax25->hdrincl = opt ? 1 : 0;
sk804net/ax25/af_ax25.cstruct sock *sk;
sk808net/ax25/af_ax25.csk = (struct sock *)sock->data;
sk811net/ax25/af_ax25.creturn sock_getsockopt(sk, level, optname, optval, optlen);
sk818net/ax25/af_ax25.cval = sk->ax25->window;
sk822net/ax25/af_ax25.cval = (sk->ax25->t1 * 2) / PR_SLOWHZ;
sk826net/ax25/af_ax25.cval = sk->ax25->t2 / PR_SLOWHZ;
sk830net/ax25/af_ax25.cval = sk->ax25->n2;
sk834net/ax25/af_ax25.cval = sk->ax25->t3 / PR_SLOWHZ;
sk838net/ax25/af_ax25.cval = sk->ax25->backoff;
sk842net/ax25/af_ax25.cval = (sk->ax25->modulus == EMODULUS);
sk846net/ax25/af_ax25.cval = sk->ax25->hdrincl;
sk868net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sk870net/ax25/af_ax25.cif (sk->type == SOCK_SEQPACKET && sk->state != TCP_LISTEN) {
sk871net/ax25/af_ax25.csk->max_ack_backlog = backlog;
sk872net/ax25/af_ax25.csk->state           = TCP_LISTEN;
sk879net/ax25/af_ax25.cstatic void def_callback1(struct sock *sk)
sk881net/ax25/af_ax25.cif (!sk->dead)
sk882net/ax25/af_ax25.cwake_up_interruptible(sk->sleep);
sk885net/ax25/af_ax25.cstatic void def_callback2(struct sock *sk, int len)
sk887net/ax25/af_ax25.cif (!sk->dead)
sk888net/ax25/af_ax25.cwake_up_interruptible(sk->sleep);
sk893net/ax25/af_ax25.cstruct sock *sk;
sk926net/ax25/af_ax25.cif ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL)
sk930net/ax25/af_ax25.ckfree_s(sk, sizeof(*sk));
sk934net/ax25/af_ax25.cskb_queue_head_init(&sk->receive_queue);
sk935net/ax25/af_ax25.cskb_queue_head_init(&sk->write_queue);
sk936net/ax25/af_ax25.cskb_queue_head_init(&sk->back_log);
sk938net/ax25/af_ax25.csk->socket        = sock;
sk939net/ax25/af_ax25.csk->type          = sock->type;
sk940net/ax25/af_ax25.csk->protocol      = protocol;
sk941net/ax25/af_ax25.csk->dead          = 0;
sk942net/ax25/af_ax25.csk->next          = NULL;
sk943net/ax25/af_ax25.csk->broadcast     = 0;
sk944net/ax25/af_ax25.csk->allocation    = GFP_KERNEL;
sk945net/ax25/af_ax25.csk->rcvbuf        = SK_RMEM_MAX;
sk946net/ax25/af_ax25.csk->sndbuf        = SK_WMEM_MAX;
sk947net/ax25/af_ax25.csk->wmem_alloc    = 0;
sk948net/ax25/af_ax25.csk->rmem_alloc    = 0;
sk949net/ax25/af_ax25.csk->users         = 0;
sk950net/ax25/af_ax25.csk->debug         = 0;
sk951net/ax25/af_ax25.csk->destroy       = 0;
sk952net/ax25/af_ax25.csk->prot          = NULL;  /* So we use default free mechanisms */
sk953net/ax25/af_ax25.csk->err           = 0;
sk954net/ax25/af_ax25.csk->localroute    = 0;
sk955net/ax25/af_ax25.csk->send_head     = NULL;
sk956net/ax25/af_ax25.csk->state         = TCP_CLOSE;
sk957net/ax25/af_ax25.csk->shutdown      = 0;
sk958net/ax25/af_ax25.csk->priority      = SOPRI_NORMAL;
sk959net/ax25/af_ax25.csk->ack_backlog   = 0;
sk960net/ax25/af_ax25.csk->mtu           = AX25_MTU;  /* 256 */
sk961net/ax25/af_ax25.csk->zapped        = 1;
sk963net/ax25/af_ax25.csk->state_change = def_callback1;
sk964net/ax25/af_ax25.csk->data_ready   = def_callback2;
sk965net/ax25/af_ax25.csk->write_space  = def_callback1;
sk966net/ax25/af_ax25.csk->error_report = def_callback1;
sk969net/ax25/af_ax25.csock->data = (void *)sk;
sk970net/ax25/af_ax25.csk->sleep  = sock->wait;
sk973net/ax25/af_ax25.cax25->sk = sk;
sk974net/ax25/af_ax25.csk->ax25 = ax25;
sk981net/ax25/af_ax25.cstruct sock *sk;
sk984net/ax25/af_ax25.cif ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL)
sk988net/ax25/af_ax25.ckfree_s(sk, sizeof(*sk));
sk994net/ax25/af_ax25.csk->type   = osk->type;
sk995net/ax25/af_ax25.csk->socket = osk->socket;
sk1003net/ax25/af_ax25.ckfree_s((void *)sk, sizeof(*sk));
sk1008net/ax25/af_ax25.cskb_queue_head_init(&sk->receive_queue);
sk1009net/ax25/af_ax25.cskb_queue_head_init(&sk->write_queue);
sk1010net/ax25/af_ax25.cskb_queue_head_init(&sk->back_log);
sk1012net/ax25/af_ax25.csk->dead        = 0;
sk1013net/ax25/af_ax25.csk->next        = NULL;
sk1014net/ax25/af_ax25.csk->priority    = osk->priority;
sk1015net/ax25/af_ax25.csk->broadcast   = 0;
sk1016net/ax25/af_ax25.csk->protocol    = osk->protocol;
sk1017net/ax25/af_ax25.csk->rcvbuf      = osk->rcvbuf;
sk1018net/ax25/af_ax25.csk->sndbuf      = osk->sndbuf;
sk1019net/ax25/af_ax25.csk->wmem_alloc  = 0;
sk1020net/ax25/af_ax25.csk->rmem_alloc  = 0;
sk1021net/ax25/af_ax25.csk->users       = 0;
sk1022net/ax25/af_ax25.csk->ack_backlog = 0;
sk1023net/ax25/af_ax25.csk->destroy     = 0;
sk1024net/ax25/af_ax25.csk->prot        = NULL;  /* So we use default free mechanisms */
sk1025net/ax25/af_ax25.csk->err         = 0;
sk1026net/ax25/af_ax25.csk->localroute  = 0;
sk1027net/ax25/af_ax25.csk->send_head   = NULL;
sk1028net/ax25/af_ax25.csk->debug       = osk->debug;
sk1029net/ax25/af_ax25.csk->state       = TCP_ESTABLISHED;
sk1030net/ax25/af_ax25.csk->window      = osk->window;
sk1031net/ax25/af_ax25.csk->shutdown    = 0;
sk1032net/ax25/af_ax25.csk->mtu         = osk->mtu;
sk1033net/ax25/af_ax25.csk->sleep       = osk->sleep;
sk1034net/ax25/af_ax25.csk->zapped      = osk->zapped;
sk1036net/ax25/af_ax25.csk->state_change = def_callback1;
sk1037net/ax25/af_ax25.csk->data_ready   = def_callback2;
sk1038net/ax25/af_ax25.csk->write_space  = def_callback1;
sk1039net/ax25/af_ax25.csk->error_report = def_callback1;
sk1056net/ax25/af_ax25.ckfree_s(sk, sizeof(*sk));
sk1065net/ax25/af_ax25.csk->ax25 = ax25;
sk1066net/ax25/af_ax25.cax25->sk = sk;
sk1068net/ax25/af_ax25.creturn sk;
sk1073net/ax25/af_ax25.cstruct sock *sk = (struct sock *)oldsock->data;
sk1075net/ax25/af_ax25.creturn ax25_create(newsock, sk->protocol);
sk1080net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sk1082net/ax25/af_ax25.cif (sk == NULL) return 0;
sk1084net/ax25/af_ax25.cif (sk->type == SOCK_SEQPACKET) {
sk1085net/ax25/af_ax25.cswitch (sk->ax25->state) {
sk1087net/ax25/af_ax25.csk->state       = TCP_CLOSE;
sk1088net/ax25/af_ax25.csk->state_change(sk);
sk1089net/ax25/af_ax25.csk->dead        = 1;
sk1090net/ax25/af_ax25.cax25_destroy_socket(sk->ax25);
sk1094net/ax25/af_ax25.cax25_send_control(sk->ax25, DISC, POLLON, C_COMMAND);
sk1095net/ax25/af_ax25.csk->ax25->state = AX25_STATE_0;
sk1096net/ax25/af_ax25.csk->state       = TCP_CLOSE;
sk1097net/ax25/af_ax25.csk->state_change(sk);
sk1098net/ax25/af_ax25.csk->dead        = 1;
sk1099net/ax25/af_ax25.cax25_destroy_socket(sk->ax25);
sk1103net/ax25/af_ax25.cif (sk->ax25->dama_slave)
sk1104net/ax25/af_ax25.cax25_send_control(sk->ax25, DISC, POLLON, C_COMMAND);
sk1106net/ax25/af_ax25.cax25_send_control(sk->ax25, DM, POLLON, C_RESPONSE);
sk1107net/ax25/af_ax25.csk->ax25->state = AX25_STATE_0;
sk1108net/ax25/af_ax25.csk->state       = TCP_CLOSE;
sk1109net/ax25/af_ax25.csk->state_change(sk);
sk1110net/ax25/af_ax25.csk->dead        = 1;
sk1111net/ax25/af_ax25.cax25_destroy_socket(sk->ax25);
sk1116net/ax25/af_ax25.cax25_clear_queues(sk->ax25);
sk1117net/ax25/af_ax25.csk->ax25->n2count = 0;
sk1118net/ax25/af_ax25.cif (!sk->ax25->dama_slave)
sk1119net/ax25/af_ax25.cax25_send_control(sk->ax25, DISC, POLLON, C_COMMAND);
sk1120net/ax25/af_ax25.csk->ax25->t3timer = 0;
sk1121net/ax25/af_ax25.csk->ax25->t1timer = sk->ax25->t1 = ax25_calculate_t1(sk->ax25);
sk1122net/ax25/af_ax25.csk->ax25->state   = AX25_STATE_2;
sk1123net/ax25/af_ax25.csk->state         = TCP_CLOSE;
sk1124net/ax25/af_ax25.csk->state_change(sk);
sk1125net/ax25/af_ax25.csk->dead          = 1;
sk1126net/ax25/af_ax25.csk->destroy       = 1;
sk1133net/ax25/af_ax25.csk->state       = TCP_CLOSE;
sk1134net/ax25/af_ax25.csk->state_change(sk);
sk1135net/ax25/af_ax25.csk->dead = 1;
sk1136net/ax25/af_ax25.cax25_destroy_socket(sk->ax25);
sk1140net/ax25/af_ax25.csk->socket = NULL;  /* Not used, but we should do this. **/
sk1153net/ax25/af_ax25.cstruct sock *sk;
sk1158net/ax25/af_ax25.csk = (struct sock *)sock->data;
sk1160net/ax25/af_ax25.cif (sk->zapped == 0)
sk1171net/ax25/af_ax25.csk->ax25->source_addr = addr->fsa_ax25.sax25_call;
sk1173net/ax25/af_ax25.csk->ax25->source_addr = *call;
sk1175net/ax25/af_ax25.cif (sk->debug)
sk1176net/ax25/af_ax25.cprintk("AX25: source address set to %s\n", ax2asc(&sk->ax25->source_addr));
sk1181net/ax25/af_ax25.cif (sk->debug)
sk1185net/ax25/af_ax25.cif (sk->debug)
sk1189net/ax25/af_ax25.cif (sk->debug)
sk1194net/ax25/af_ax25.cif (sk->debug)
sk1198net/ax25/af_ax25.cif (sk->debug)
sk1202net/ax25/af_ax25.cax25_fillin_cb(sk->ax25, dev);
sk1203net/ax25/af_ax25.cax25_insert_socket(sk->ax25);
sk1205net/ax25/af_ax25.csk->zapped = 0;
sk1207net/ax25/af_ax25.cif (sk->debug)
sk1216net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sk1220net/ax25/af_ax25.cif (sk->state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) {
sk1225net/ax25/af_ax25.cif (sk->state == TCP_CLOSE && sock->state == SS_CONNECTING) {
sk1230net/ax25/af_ax25.cif (sk->state == TCP_ESTABLISHED && sk->type == SOCK_SEQPACKET)
sk1233net/ax25/af_ax25.csk->state   = TCP_CLOSE;  
sk1250net/ax25/af_ax25.cif (sk->ax25->digipeat == NULL) {
sk1251net/ax25/af_ax25.cif ((sk->ax25->digipeat = (ax25_digi *)kmalloc(sizeof(ax25_digi), GFP_KERNEL)) == NULL)
sk1255net/ax25/af_ax25.csk->ax25->digipeat->ndigi = addr->sax25_ndigis;
sk1258net/ax25/af_ax25.csk->ax25->digipeat->repeated[ct] = 0;
sk1259net/ax25/af_ax25.csk->ax25->digipeat->calls[ct] = fsa->fsa_digipeater[ct];
sk1263net/ax25/af_ax25.csk->ax25->digipeat->lastrepeat = 0;
sk1265net/ax25/af_ax25.cif (sk->debug)
sk1267net/ax25/af_ax25.cax25_rt_build_path(sk->ax25, &addr->sax25_call);
sk1275net/ax25/af_ax25.cif (sk->zapped) {
sk1276net/ax25/af_ax25.cif ((err = ax25_rt_autobind(sk->ax25, &addr->sax25_call)) < 0)
sk1278net/ax25/af_ax25.cax25_fillin_cb(sk->ax25, sk->ax25->device);
sk1279net/ax25/af_ax25.cax25_insert_socket(sk->ax25);
sk1281net/ax25/af_ax25.cif (sk->ax25->device == NULL)
sk1285net/ax25/af_ax25.cif (sk->type == SOCK_SEQPACKET && ax25_find_cb(&sk->ax25->source_addr, &addr->sax25_call, sk->ax25->device) != NULL)
sk1288net/ax25/af_ax25.csk->ax25->dest_addr = addr->sax25_call;
sk1291net/ax25/af_ax25.cif (sk->type != SOCK_SEQPACKET) {
sk1293net/ax25/af_ax25.csk->state   = TCP_ESTABLISHED;
sk1299net/ax25/af_ax25.csk->state          = TCP_SYN_SENT;
sk1301net/ax25/af_ax25.cif (ax25_dev_is_dama_slave(sk->ax25->device))
sk1302net/ax25/af_ax25.cdama_establish_data_link(sk->ax25);
sk1304net/ax25/af_ax25.cax25_establish_data_link(sk->ax25);
sk1306net/ax25/af_ax25.csk->ax25->state     = AX25_STATE_1;
sk1307net/ax25/af_ax25.cax25_set_timer(sk->ax25);    /* Start going SABM SABM until a UA or a give up and DM */
sk1310net/ax25/af_ax25.cif (sk->state != TCP_ESTABLISHED && (flags & O_NONBLOCK))
sk1316net/ax25/af_ax25.cwhile (sk->state == TCP_SYN_SENT) {
sk1317net/ax25/af_ax25.cinterruptible_sleep_on(sk->sleep);
sk1324net/ax25/af_ax25.cif (sk->state != TCP_ESTABLISHED) 
sk1329net/ax25/af_ax25.creturn sock_error(sk);  /* Always set at this point */
sk1346net/ax25/af_ax25.cstruct sock *sk;
sk1355net/ax25/af_ax25.csk = (struct sock *)sock->data;
sk1357net/ax25/af_ax25.cif (sk->type != SOCK_SEQPACKET)
sk1360net/ax25/af_ax25.cif (sk->state != TCP_LISTEN)
sk1369net/ax25/af_ax25.cif ((skb = skb_dequeue(&sk->receive_queue)) == NULL) {
sk1374net/ax25/af_ax25.cinterruptible_sleep_on(sk->sleep);
sk1382net/ax25/af_ax25.cnewsk = skb->sk;
sk1387net/ax25/af_ax25.cskb->sk = NULL;
sk1389net/ax25/af_ax25.csk->ack_backlog--;
sk1400net/ax25/af_ax25.cstruct sock *sk;
sk1403net/ax25/af_ax25.csk = (struct sock *)sock->data;
sk1406net/ax25/af_ax25.cif (sk->state != TCP_ESTABLISHED)
sk1408net/ax25/af_ax25.caddr = &sk->ax25->dest_addr;
sk1410net/ax25/af_ax25.caddr = &sk->ax25->source_addr;
sk1419net/ax25/af_ax25.cif (sk->ax25->digipeat != NULL) {
sk1420net/ax25/af_ax25.cndigi = sk->ax25->digipeat->ndigi;
sk1424net/ax25/af_ax25.csax->fsa_digipeater[i] = sk->ax25->digipeat->calls[i];
sk1433net/ax25/af_ax25.cstruct sock *sk;
sk1559net/ax25/af_ax25.cif ((sk = ax25_find_socket(&dest, &src, SOCK_DGRAM)) != NULL) {
sk1560net/ax25/af_ax25.cif (sk->rmem_alloc >= sk->rcvbuf) {
sk1567net/ax25/af_ax25.cskb_queue_tail(&sk->receive_queue, skb);
sk1568net/ax25/af_ax25.cskb->sk = sk;
sk1569net/ax25/af_ax25.csk->rmem_alloc += skb->truesize;
sk1570net/ax25/af_ax25.cif (!sk->dead)
sk1571net/ax25/af_ax25.csk->data_ready(sk, skb->len);
sk1630net/ax25/af_ax25.cif ((sk = ax25_find_listener(&dest, dev, SOCK_SEQPACKET)) != NULL) {
sk1631net/ax25/af_ax25.cif (sk->ack_backlog == sk->max_ack_backlog || (make = ax25_make_new(sk, dev)) == NULL) {
sk1641net/ax25/af_ax25.cskb_queue_head(&sk->receive_queue, skb);
sk1643net/ax25/af_ax25.cskb->sk     = make;
sk1645net/ax25/af_ax25.cmake->pair  = sk;
sk1647net/ax25/af_ax25.csk->ack_backlog++;
sk1715net/ax25/af_ax25.cif (sk != NULL) {
sk1716net/ax25/af_ax25.cif (!sk->dead)
sk1717net/ax25/af_ax25.csk->data_ready(sk, skb->len );
sk1730net/ax25/af_ax25.cskb->sk = NULL;    /* Initially we don't know who its for */
sk1751net/ax25/af_ax25.cskb->sk = NULL;    /* Initially we don't know who its for */
sk1769net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sk1781net/ax25/af_ax25.cif (sk->err) {
sk1782net/ax25/af_ax25.creturn sock_error(sk);
sk1788net/ax25/af_ax25.cif (sk->zapped)
sk1791net/ax25/af_ax25.cif (sk->ax25->device == NULL)
sk1819net/ax25/af_ax25.cif (sk->type == SOCK_SEQPACKET && ax25cmp(&sk->ax25->dest_addr, &sax.sax25_call) != 0)
sk1826net/ax25/af_ax25.cif (sk->state != TCP_ESTABLISHED)
sk1829net/ax25/af_ax25.csax.sax25_call   = sk->ax25->dest_addr;
sk1830net/ax25/af_ax25.cdp = sk->ax25->digipeat;
sk1833net/ax25/af_ax25.cif (sk->debug)
sk1837net/ax25/af_ax25.cif (sk->debug)
sk1843net/ax25/af_ax25.cif ((skb = sock_alloc_send_skb(sk, size, 0, 0, &err)) == NULL)
sk1846net/ax25/af_ax25.cskb->sk   = sk;
sk1852net/ax25/af_ax25.cif (sk->debug)
sk1860net/ax25/af_ax25.c*asmptr = sk->protocol;
sk1862net/ax25/af_ax25.cif (sk->debug)
sk1865net/ax25/af_ax25.cif (sk->type == SOCK_SEQPACKET) {
sk1867net/ax25/af_ax25.cif (sk->state != TCP_ESTABLISHED) {
sk1872net/ax25/af_ax25.cax25_output(sk->ax25, skb);  /* Shove it onto the queue and kick */
sk1878net/ax25/af_ax25.cif (sk->debug) {
sk1885net/ax25/af_ax25.casmptr += (lv = build_ax25_addr(asmptr, &sk->ax25->source_addr, &sax.sax25_call, dp, C_COMMAND, MODULUS));
sk1887net/ax25/af_ax25.cif (sk->debug)
sk1892net/ax25/af_ax25.cif (sk->debug)
sk1898net/ax25/af_ax25.cax25_queue_xmit(skb, sk->ax25->device, SOPRI_NORMAL);
sk1907net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sk1914net/ax25/af_ax25.cif (sk->err) {
sk1915net/ax25/af_ax25.creturn sock_error(sk);
sk1925net/ax25/af_ax25.cif (sk->type == SOCK_SEQPACKET && sk->state != TCP_ESTABLISHED)
sk1929net/ax25/af_ax25.cif ((skb = skb_recv_datagram(sk, flags, noblock, &er)) == NULL)
sk1932net/ax25/af_ax25.cif (sk->ax25->hdrincl) {
sk1935net/ax25/af_ax25.cif (sk->type == SOCK_SEQPACKET)
sk1977net/ax25/af_ax25.cskb_free_datagram(sk, skb);
sk1982net/ax25/af_ax25.cstatic int ax25_shutdown(struct socket *sk, int how)
sk1990net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sk1992net/ax25/af_ax25.creturn datagram_select(sk, sel_type, wait);
sk1997net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sk2005net/ax25/af_ax25.camount = sk->sndbuf - sk->wmem_alloc;
sk2015net/ax25/af_ax25.cif ((skb = skb_peek(&sk->receive_queue)) != NULL)
sk2024net/ax25/af_ax25.cif (sk != NULL) {
sk2025net/ax25/af_ax25.cif (sk->stamp.tv_sec==0)
sk2029net/ax25/af_ax25.cmemcpy_tofs((void *)arg, &sk->stamp, sizeof(struct timeval));
sk2128net/ax25/af_ax25.cif (ax25->sk != NULL) {
sk2130net/ax25/af_ax25.cax25->sk->wmem_alloc,
sk2131net/ax25/af_ax25.cax25->sk->rmem_alloc);
sk86net/ax25/ax25_in.cif (ax25->sk != NULL) {
sk87net/ax25/ax25_in.cskbn->sk = ax25->sk;
sk88net/ax25/ax25_in.cax25->sk->rmem_alloc += skbn->truesize;
sk166net/ax25/ax25_in.cif (ax25->sk != NULL && ax25_dev_get_value(ax25->device, AX25_VALUES_TEXT) && ax25->sk->protocol == pid) {
sk167net/ax25/ax25_in.cif (sock_queue_rcv_skb(ax25->sk, skb) == 0) {
sk217net/ax25/ax25_in.cif (ax25->sk != NULL) {
sk218net/ax25/ax25_in.cax25->sk->state = TCP_ESTABLISHED;
sk220net/ax25/ax25_in.cif (!ax25->sk->dead)
sk221net/ax25/ax25_in.cax25->sk->state_change(ax25->sk);
sk231net/ax25/ax25_in.cif (ax25->sk != NULL) {
sk232net/ax25/ax25_in.cax25->sk->state = TCP_CLOSE;
sk233net/ax25/ax25_in.cax25->sk->err   = ECONNREFUSED;
sk234net/ax25/ax25_in.cif (!ax25->sk->dead)
sk235net/ax25/ax25_in.cax25->sk->state_change(ax25->sk);
sk236net/ax25/ax25_in.cax25->sk->dead  = 1;
sk276net/ax25/ax25_in.cif (ax25->sk != NULL) {
sk277net/ax25/ax25_in.cax25->sk->state = TCP_CLOSE;
sk278net/ax25/ax25_in.cax25->sk->err   = 0;
sk279net/ax25/ax25_in.cif (!ax25->sk->dead)
sk280net/ax25/ax25_in.cax25->sk->state_change(ax25->sk);
sk281net/ax25/ax25_in.cax25->sk->dead  = 1;
sk292net/ax25/ax25_in.cif (ax25->sk != NULL) {
sk293net/ax25/ax25_in.cax25->sk->state = TCP_CLOSE;
sk294net/ax25/ax25_in.cax25->sk->err   = 0;
sk295net/ax25/ax25_in.cif (!ax25->sk->dead)
sk296net/ax25/ax25_in.cax25->sk->state_change(ax25->sk);
sk297net/ax25/ax25_in.cax25->sk->dead  = 1;
sk308net/ax25/ax25_in.cif (ax25->sk != NULL) {
sk309net/ax25/ax25_in.cax25->sk->state = TCP_CLOSE;
sk310net/ax25/ax25_in.cax25->sk->err   = 0;
sk311net/ax25/ax25_in.cif (!ax25->sk->dead)
sk312net/ax25/ax25_in.cax25->sk->state_change(ax25->sk);
sk313net/ax25/ax25_in.cax25->sk->dead  = 1;
sk385net/ax25/ax25_in.cif (ax25->sk != NULL) {
sk386net/ax25/ax25_in.cax25->sk->state = TCP_CLOSE;
sk387net/ax25/ax25_in.cax25->sk->err   = 0;
sk388net/ax25/ax25_in.cif (!ax25->sk->dead)
sk389net/ax25/ax25_in.cax25->sk->state_change(ax25->sk);
sk390net/ax25/ax25_in.cax25->sk->dead  = 1;
sk400net/ax25/ax25_in.cif (ax25->sk) {
sk401net/ax25/ax25_in.cax25->sk->state = TCP_CLOSE;
sk402net/ax25/ax25_in.cax25->sk->err   = ECONNRESET;
sk403net/ax25/ax25_in.cif (!ax25->sk->dead)
sk404net/ax25/ax25_in.cax25->sk->state_change(ax25->sk);
sk405net/ax25/ax25_in.cax25->sk->dead         = 1;
sk581net/ax25/ax25_in.cif (ax25->sk != NULL) {
sk582net/ax25/ax25_in.cax25->sk->state = TCP_CLOSE;
sk583net/ax25/ax25_in.cax25->sk->err   = 0;
sk584net/ax25/ax25_in.cif (!ax25->sk->dead)
sk585net/ax25/ax25_in.cax25->sk->state_change(ax25->sk);
sk586net/ax25/ax25_in.cax25->sk->dead  = 1;
sk597net/ax25/ax25_in.cif (ax25->sk != NULL) {
sk598net/ax25/ax25_in.cax25->sk->state = TCP_CLOSE;
sk599net/ax25/ax25_in.cax25->sk->err   = ECONNRESET;
sk600net/ax25/ax25_in.cif (!ax25->sk->dead)
sk601net/ax25/ax25_in.cax25->sk->state_change(ax25->sk);
sk602net/ax25/ax25_in.cax25->sk->dead  = 1;
sk784net/ax25/ax25_in.cif (ax25->sk != NULL && ax25->state == AX25_STATE_0 && ax25->sk->dead)
sk74net/ax25/ax25_out.cif (skb->sk != NULL) {
sk75net/ax25/ax25_out.cif ((skbn = sock_alloc_send_skb(skb->sk, mtu + 2 + frontlen, 0, 0, &err)) == NULL)
sk82net/ax25/ax25_out.cskbn->sk   = skb->sk;
sk222net/ax25/ax25_out.cif (ax25->sk != NULL) {
sk223net/ax25/ax25_out.cax25->sk->state = TCP_CLOSE;
sk224net/ax25/ax25_out.cax25->sk->err   = ENETUNREACH;
sk225net/ax25/ax25_out.cif (!ax25->sk->dead)
sk226net/ax25/ax25_out.cax25->sk->state_change(ax25->sk);
sk227net/ax25/ax25_out.cax25->sk->dead  = 1;
sk408net/ax25/ax25_route.cif (ax25->sk != NULL)
sk409net/ax25/ax25_route.cax25->sk->zapped = 0;
sk215net/ax25/ax25_subr.cif (ax25->sk != NULL) {
sk216net/ax25/ax25_subr.cskb->sk = ax25->sk;
sk217net/ax25/ax25_subr.cax25->sk->wmem_alloc += skb->truesize;
sk267net/ax25/ax25_subr.cskb->sk = NULL;
sk498net/ax25/ax25_subr.cif (ax25->sk != NULL) {
sk499net/ax25/ax25_subr.cskb->sk = ax25->sk;
sk500net/ax25/ax25_subr.cax25->sk->wmem_alloc += skb->truesize;
sk518net/ax25/ax25_subr.cif (ax25->sk != NULL && ax25->sk->debug)
sk529net/ax25/ax25_subr.cif (ax25->sk != NULL && ax25->sk->debug)
sk100net/ax25/ax25_timer.cif (ax25->sk == NULL || ax25->sk->destroy || (ax25->sk->state == TCP_LISTEN && ax25->sk->dead)) {
sk112net/ax25/ax25_timer.cif (ax25->sk != NULL) {
sk113net/ax25/ax25_timer.cif (ax25->sk->rmem_alloc < (ax25->sk->rcvbuf / 2) && (ax25->condition & OWN_RX_BUSY_CONDITION)) {
sk153net/ax25/ax25_timer.cif (ax25->sk != NULL) {
sk154net/ax25/ax25_timer.cif (ax25->sk->debug)
sk156net/ax25/ax25_timer.cax25->sk->state = TCP_CLOSE;
sk157net/ax25/ax25_timer.cax25->sk->err   = ETIMEDOUT;
sk158net/ax25/ax25_timer.cif (!ax25->sk->dead)
sk159net/ax25/ax25_timer.cax25->sk->state_change(ax25->sk);
sk160net/ax25/ax25_timer.cax25->sk->dead  = 1;
sk209net/ax25/ax25_timer.cif (ax25->sk != NULL) {
sk210net/ax25/ax25_timer.cax25->sk->state = TCP_CLOSE;
sk211net/ax25/ax25_timer.cax25->sk->err   = ETIMEDOUT;
sk212net/ax25/ax25_timer.cif (!ax25->sk->dead)
sk213net/ax25/ax25_timer.cax25->sk->state_change(ax25->sk);
sk214net/ax25/ax25_timer.cax25->sk->dead  = 1;
sk241net/ax25/ax25_timer.cif (ax25->sk != NULL) {
sk242net/ax25/ax25_timer.cax25->sk->state = TCP_CLOSE;
sk243net/ax25/ax25_timer.cax25->sk->err   = ETIMEDOUT;
sk244net/ax25/ax25_timer.cif (!ax25->sk->dead)
sk245net/ax25/ax25_timer.cax25->sk->state_change(ax25->sk);
sk246net/ax25/ax25_timer.cax25->sk->dead  = 1;
sk270net/ax25/ax25_timer.cif (ax25->sk != NULL) {
sk271net/ax25/ax25_timer.cif (ax25->sk->debug)
sk273net/ax25/ax25_timer.cax25->sk->state = TCP_CLOSE;
sk274net/ax25/ax25_timer.cax25->sk->err   = ETIMEDOUT;
sk275net/ax25/ax25_timer.cif (!ax25->sk->dead)
sk276net/ax25/ax25_timer.cax25->sk->state_change(ax25->sk);
sk277net/ax25/ax25_timer.cax25->sk->dead  = 1;
sk50net/core/datagram.cstatic inline void wait_for_packet(struct sock * sk)
sk54net/core/datagram.crelease_sock(sk);
sk57net/core/datagram.cif (skb_peek(&sk->receive_queue) == NULL)
sk58net/core/datagram.cinterruptible_sleep_on(sk->sleep);
sk60net/core/datagram.clock_sock(sk);
sk75net/core/datagram.cstruct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags, int noblock, int *err)
sk80net/core/datagram.clock_sock(sk);
sk82net/core/datagram.cwhile(skb_peek(&sk->receive_queue) == NULL)  /* No data */
sk85net/core/datagram.cerror = sock_error(sk);
sk90net/core/datagram.cif (sk->shutdown & RCV_SHUTDOWN)
sk95net/core/datagram.cif(sk->type==SOCK_SEQPACKET && sk->state!=TCP_ESTABLISHED)
sk108net/core/datagram.cwait_for_packet(sk);
sk118net/core/datagram.cskb=skb_peek(&sk->receive_queue);
sk126net/core/datagram.cskb = skb_dequeue(&sk->receive_queue);
sk133net/core/datagram.crelease_sock(sk);
sk138net/core/datagram.cvoid skb_free_datagram(struct sock * sk, struct sk_buff *skb)
sk154net/core/datagram.crelease_sock(sk);
sk181net/core/datagram.cint datagram_select(struct sock *sk, int sel_type, select_table *wait)
sk183net/core/datagram.cselect_wait(sk->sleep, wait);
sk187net/core/datagram.cif (sk->err)
sk189net/core/datagram.cif (sk->shutdown & RCV_SHUTDOWN)
sk191net/core/datagram.cif (sk->type==SOCK_SEQPACKET && sk->state==TCP_CLOSE)
sk196net/core/datagram.cif (skb_peek(&sk->receive_queue) != NULL)
sk204net/core/datagram.cif (sk->err)
sk206net/core/datagram.cif (sk->shutdown & SEND_SHUTDOWN)
sk208net/core/datagram.cif (sk->type==SOCK_SEQPACKET && sk->state==TCP_SYN_SENT)
sk213net/core/datagram.cif (sk->prot && sock_wspace(sk) >= MIN_WRITE_SPACE)
sk217net/core/datagram.cif (sk->prot==NULL && sk->sndbuf-sk->wmem_alloc >= MIN_WRITE_SPACE)
sk224net/core/datagram.cif (sk->err)
sk423net/core/dev.c((struct sock *)ptype->data != skb->sk))
sk471net/core/dev.cskb->sk = NULL;
sk483net/core/skbuff.cif (skb->sk)
sk485net/core/skbuff.cif(skb->sk->prot!=NULL)
sk488net/core/skbuff.csock_rfree(skb->sk, skb);
sk490net/core/skbuff.csock_wfree(skb->sk, skb);
sk500net/core/skbuff.cskb->sk->rmem_alloc-=skb->truesize;
sk502net/core/skbuff.cskb->sk->wmem_alloc-=skb->truesize;
sk504net/core/skbuff.cif(!skb->sk->dead)
sk505net/core/skbuff.cskb->sk->write_space(skb->sk);
sk569net/core/skbuff.cskb->sk = NULL;
sk651net/core/skbuff.cn->sk = NULL;
sk693net/core/skbuff.cn->sk=NULL;
sk121net/core/sock.cint sock_setsockopt(struct sock *sk, int level, int optname,
sk137net/core/sock.csk->linger=0;
sk157net/core/sock.csk->debug=valbool;
sk160net/core/sock.csk->reuse = valbool;
sk166net/core/sock.csk->localroute=valbool;
sk169net/core/sock.csk->broadcast=valbool;
sk176net/core/sock.csk->sndbuf = val;
sk184net/core/sock.csk->rcvbuf = val;
sk188net/core/sock.csk->keepopen = valbool;
sk192net/core/sock.csk->urginline = valbool;
sk196net/core/sock.csk->no_check = valbool;
sk202net/core/sock.csk->priority = val;
sk217net/core/sock.csk->linger=0;
sk220net/core/sock.csk->lingertime=ling.l_linger;
sk221net/core/sock.csk->linger=1;
sk226net/core/sock.csk->bsdism = valbool;
sk235net/core/sock.cint sock_getsockopt(struct sock *sk, int level, int optname,
sk245net/core/sock.cval = sk->debug;
sk249net/core/sock.cval = sk->localroute;
sk253net/core/sock.cval= sk->broadcast;
sk257net/core/sock.cval=sk->sndbuf;
sk261net/core/sock.cval =sk->rcvbuf;
sk265net/core/sock.cval = sk->reuse;
sk269net/core/sock.cval = sk->keepopen;
sk273net/core/sock.cval = sk->type;          
sk277net/core/sock.cval = sock_error(sk);
sk279net/core/sock.cval=xchg(&sk->err_soft,0);
sk283net/core/sock.cval = sk->urginline;
sk287net/core/sock.cval = sk->no_check;
sk291net/core/sock.cval = sk->priority;
sk302net/core/sock.cling.l_onoff=sk->linger;
sk303net/core/sock.cling.l_linger=sk->lingertime;
sk308net/core/sock.cval = sk->bsdism;
sk328net/core/sock.cstruct sk_buff *sock_wmalloc(struct sock *sk, unsigned long size, int force, int priority)
sk330net/core/sock.cif (sk) 
sk332net/core/sock.cif (sk->wmem_alloc + size < sk->sndbuf || force) 
sk340net/core/sock.csk->wmem_alloc+= c->truesize;
sk351net/core/sock.cstruct sk_buff *sock_rmalloc(struct sock *sk, unsigned long size, int force, int priority)
sk353net/core/sock.cif (sk) 
sk355net/core/sock.cif (sk->rmem_alloc + size < sk->rcvbuf || force) 
sk363net/core/sock.csk->rmem_alloc += c->truesize;
sk374net/core/sock.cunsigned long sock_rspace(struct sock *sk)
sk378net/core/sock.cif (sk != NULL) 
sk380net/core/sock.cif (sk->rmem_alloc >= sk->rcvbuf-2*MIN_WINDOW) 
sk382net/core/sock.camt = min((sk->rcvbuf-sk->rmem_alloc)/2-MIN_WINDOW, MAX_WINDOW);
sk391net/core/sock.cunsigned long sock_wspace(struct sock *sk)
sk393net/core/sock.cif (sk != NULL) 
sk395net/core/sock.cif (sk->shutdown & SEND_SHUTDOWN)
sk397net/core/sock.cif (sk->wmem_alloc >= sk->sndbuf)
sk399net/core/sock.creturn(sk->sndbuf-sk->wmem_alloc );
sk405net/core/sock.cvoid sock_wfree(struct sock *sk, struct sk_buff *skb)
sk412net/core/sock.cif (sk) 
sk417net/core/sock.csk->wmem_alloc -= s;
sk420net/core/sock.csk->write_space(sk);
sk426net/core/sock.cvoid sock_rfree(struct sock *sk, struct sk_buff *skb)
sk433net/core/sock.cif (sk) 
sk438net/core/sock.csk->rmem_alloc -= s;
sk447net/core/sock.cstruct sk_buff *sock_alloc_send_skb(struct sock *sk, unsigned long size, unsigned long fallback, int noblock, int *errcode)
sk454net/core/sock.cif(sk->err!=0)
sk457net/core/sock.cerr= -sk->err;
sk458net/core/sock.csk->err=0;
sk464net/core/sock.cif(sk->shutdown&SEND_SHUTDOWN)
sk471net/core/sock.cskb = sock_wmalloc(sk, size, 0, sk->allocation);
sk476net/core/sock.cskb = sock_wmalloc(sk, size, 0 , GFP_BUFFER);
sk478net/core/sock.cskb=sock_wmalloc(sk, fallback, 0, GFP_KERNEL);
sk489net/core/sock.csk->socket->flags |= SO_NOSPACE;
sk495net/core/sock.cif(sk->shutdown&SEND_SHUTDOWN)
sk500net/core/sock.ctmp = sk->wmem_alloc;
sk502net/core/sock.cif(sk->shutdown&SEND_SHUTDOWN)
sk510net/core/sock.cif( tmp <= sk->wmem_alloc)
sk520net/core/sock.cif (sk->wmem_alloc + size >= sk->sndbuf) 
sk523net/core/sock.csk->socket->flags &= ~SO_NOSPACE;
sk524net/core/sock.cinterruptible_sleep_on(sk->sleep);
sk541net/core/sock.cvoid __release_sock(struct sock *sk)
sk546net/core/sock.cif (!sk->prot)
sk560net/core/sock.cwhile ((skb = __skb_dequeue(&sk->back_log)) != NULL) 
sk562net/core/sock.cif (sk->prot->rcv) 
sk563net/core/sock.csk->prot->rcv(skb, skb->dev, (struct options*)skb->proto_priv,
sk566net/core/sock.c(struct inet_protocol *)sk->pair); 
sk117net/ipv4/af_inet.cstruct sock *sk;
sk119net/ipv4/af_inet.cfor(sk = prot->sock_array[num & (SOCK_ARRAY_SIZE -1 )];
sk120net/ipv4/af_inet.csk != NULL;  sk=sk->next) 
sk122net/ipv4/af_inet.cif (sk->num == num) 
sk145net/ipv4/af_inet.cstruct sock *sk;
sk161net/ipv4/af_inet.csk = prot->sock_array[(i+base+1) &(SOCK_ARRAY_SIZE -1)];
sk162net/ipv4/af_inet.cwhile(sk != NULL) 
sk164net/ipv4/af_inet.csk = sk->next;
sk192net/ipv4/af_inet.cvoid put_sock(unsigned short num, struct sock *sk)
sk198net/ipv4/af_inet.cif(sk->type==SOCK_PACKET)
sk201net/ipv4/af_inet.csk->num = num;
sk202net/ipv4/af_inet.csk->next = NULL;
sk212net/ipv4/af_inet.csk->prot->inuse += 1;
sk213net/ipv4/af_inet.cif (sk->prot->highestinuse < sk->prot->inuse)
sk214net/ipv4/af_inet.csk->prot->highestinuse = sk->prot->inuse;
sk216net/ipv4/af_inet.cif (sk->prot->sock_array[num] == NULL) 
sk218net/ipv4/af_inet.csk->prot->sock_array[num] = sk;
sk226net/ipv4/af_inet.cif ((mask & sk->rcv_saddr) &&
sk227net/ipv4/af_inet.c(mask & sk->rcv_saddr) != (mask & 0xffffffff)) 
sk237net/ipv4/af_inet.cskp = sk->prot->sock_array + num;
sk244net/ipv4/af_inet.csk->next = tmp;
sk245net/ipv4/af_inet.c*skp = sk;
sk290net/ipv4/af_inet.cvoid destroy_sock(struct sock *sk)
sk294net/ipv4/af_inet.clock_sock(sk);      /* just to be safe. */
sk296net/ipv4/af_inet.cremove_sock(sk);
sk303net/ipv4/af_inet.cdelete_timer(sk);
sk304net/ipv4/af_inet.cdel_timer(&sk->retransmit_timer);
sk310net/ipv4/af_inet.cwhile ((skb = tcp_dequeue_partial(sk)) != NULL) 
sk320net/ipv4/af_inet.cwhile((skb = skb_dequeue(&sk->write_queue)) != NULL) {
sk329net/ipv4/af_inet.cwhile((skb=skb_dequeue(&sk->receive_queue))!=NULL) 
sk335net/ipv4/af_inet.cif (skb->sk != NULL && skb->sk != sk) 
sk338net/ipv4/af_inet.cskb->sk->prot->close(skb->sk, 0);
sk349net/ipv4/af_inet.cfor(skb = sk->send_head; skb != NULL; )
sk367net/ipv4/af_inet.csk->send_head = NULL;
sk374net/ipv4/af_inet.cwhile((skb=skb_dequeue(&sk->back_log))!=NULL) 
sk377net/ipv4/af_inet.cskb->sk = NULL;
sk385net/ipv4/af_inet.cif (sk->pair) 
sk387net/ipv4/af_inet.csk->pair->prot->close(sk->pair, 0);
sk388net/ipv4/af_inet.csk->pair = NULL;
sk397net/ipv4/af_inet.cif (sk->rmem_alloc == 0 && sk->wmem_alloc == 0) 
sk399net/ipv4/af_inet.cif(sk->opt)
sk400net/ipv4/af_inet.ckfree(sk->opt);
sk401net/ipv4/af_inet.cip_rt_put(sk->ip_route_cache);
sk407net/ipv4/af_inet.ckfree_s((void *)sk,sizeof(*sk));
sk414net/ipv4/af_inet.csk->destroy = 1;
sk415net/ipv4/af_inet.csk->ack_backlog = 0;
sk416net/ipv4/af_inet.crelease_sock(sk);
sk417net/ipv4/af_inet.creset_timer(sk, TIME_DESTROY, SOCK_DESTROY_TIME);
sk429net/ipv4/af_inet.cstruct sock *sk;
sk431net/ipv4/af_inet.csk = (struct sock *) sock->data;
sk443net/ipv4/af_inet.csk->proc = arg;
sk446net/ipv4/af_inet.creturn(sk->proc);
sk459net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;  
sk461net/ipv4/af_inet.creturn sock_setsockopt(sk,level,optname,optval,optlen);
sk462net/ipv4/af_inet.cif (sk->prot->setsockopt==NULL)
sk465net/ipv4/af_inet.creturn sk->prot->setsockopt(sk,level,optname,optval,optlen);
sk475net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;    
sk477net/ipv4/af_inet.creturn sock_getsockopt(sk,level,optname,optval,optlen);
sk478net/ipv4/af_inet.cif(sk->prot->getsockopt==NULL)    
sk481net/ipv4/af_inet.creturn sk->prot->getsockopt(sk,level,optname,optval,optlen);
sk488net/ipv4/af_inet.cstatic int inet_autobind(struct sock *sk)
sk491net/ipv4/af_inet.cif (sk->num == 0) 
sk493net/ipv4/af_inet.csk->num = get_new_socknum(sk->prot, 0);
sk494net/ipv4/af_inet.cif (sk->num == 0) 
sk498net/ipv4/af_inet.cput_sock(sk->num, sk);
sk499net/ipv4/af_inet.csk->dummy_th.source = ntohs(sk->num);
sk510net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sk512net/ipv4/af_inet.cif(inet_autobind(sk)!=0)
sk526net/ipv4/af_inet.csk->max_ack_backlog = backlog;
sk527net/ipv4/af_inet.cif (sk->state != TCP_LISTEN)
sk529net/ipv4/af_inet.csk->ack_backlog = 0;
sk530net/ipv4/af_inet.csk->state = TCP_LISTEN;
sk540net/ipv4/af_inet.cstatic void def_callback1(struct sock *sk)
sk542net/ipv4/af_inet.cif(!sk->dead)
sk543net/ipv4/af_inet.cwake_up_interruptible(sk->sleep);
sk546net/ipv4/af_inet.cstatic void def_callback2(struct sock *sk,int len)
sk548net/ipv4/af_inet.cif(!sk->dead)
sk550net/ipv4/af_inet.cwake_up_interruptible(sk->sleep);
sk551net/ipv4/af_inet.csock_wake_async(sk->socket, 1);
sk555net/ipv4/af_inet.cstatic void def_callback3(struct sock *sk)
sk557net/ipv4/af_inet.cif(!sk->dead && sk->wmem_alloc*2 <= sk->sndbuf)
sk559net/ipv4/af_inet.cwake_up_interruptible(sk->sleep);
sk560net/ipv4/af_inet.csock_wake_async(sk->socket, 2);
sk573net/ipv4/af_inet.cstruct sock *sk;
sk577net/ipv4/af_inet.csk = (struct sock *) kmalloc(sizeof(*sk), GFP_KERNEL);
sk578net/ipv4/af_inet.cif (sk == NULL) 
sk580net/ipv4/af_inet.cmemset(sk,0,sizeof(*sk));  /* Efficient way to set most fields to zero */
sk590net/ipv4/af_inet.ckfree_s((void *)sk, sizeof(*sk));
sk594net/ipv4/af_inet.csk->no_check = TCP_NO_CHECK;
sk601net/ipv4/af_inet.ckfree_s((void *)sk, sizeof(*sk));
sk605net/ipv4/af_inet.csk->no_check = UDP_NO_CHECK;
sk612net/ipv4/af_inet.ckfree_s((void *)sk, sizeof(*sk));
sk617net/ipv4/af_inet.ckfree_s((void *)sk, sizeof(*sk));
sk621net/ipv4/af_inet.csk->reuse = 1;
sk622net/ipv4/af_inet.csk->num = protocol;
sk628net/ipv4/af_inet.ckfree_s((void *)sk, sizeof(*sk));
sk633net/ipv4/af_inet.ckfree_s((void *)sk, sizeof(*sk));
sk637net/ipv4/af_inet.csk->reuse = 1;
sk638net/ipv4/af_inet.csk->num = protocol;
sk642net/ipv4/af_inet.ckfree_s((void *)sk, sizeof(*sk));
sk645net/ipv4/af_inet.csk->socket = sock;
sk647net/ipv4/af_inet.csk->nonagle = 1;
sk649net/ipv4/af_inet.csk->type = sock->type;
sk650net/ipv4/af_inet.csk->protocol = protocol;
sk651net/ipv4/af_inet.csk->allocation = GFP_KERNEL;
sk652net/ipv4/af_inet.csk->sndbuf = SK_WMEM_MAX;
sk653net/ipv4/af_inet.csk->rcvbuf = SK_RMEM_MAX;
sk654net/ipv4/af_inet.csk->rto = TCP_TIMEOUT_INIT;    /*TCP_WRITE_TIME*/
sk655net/ipv4/af_inet.csk->cong_window = 1; /* start with only sending one packet at a time. */
sk656net/ipv4/af_inet.csk->priority = 1;
sk657net/ipv4/af_inet.csk->state = TCP_CLOSE;
sk660net/ipv4/af_inet.csk->max_unacked = 2048; /* needs to be at most 2 full packets. */
sk661net/ipv4/af_inet.csk->delay_acks = 1;
sk662net/ipv4/af_inet.csk->max_ack_backlog = SOMAXCONN;
sk663net/ipv4/af_inet.cskb_queue_head_init(&sk->write_queue);
sk664net/ipv4/af_inet.cskb_queue_head_init(&sk->receive_queue);
sk665net/ipv4/af_inet.csk->mtu = 576;
sk666net/ipv4/af_inet.csk->prot = prot;
sk667net/ipv4/af_inet.csk->sleep = sock->wait;
sk668net/ipv4/af_inet.cinit_timer(&sk->timer);
sk669net/ipv4/af_inet.cinit_timer(&sk->retransmit_timer);
sk670net/ipv4/af_inet.csk->timer.data = (unsigned long)sk;
sk671net/ipv4/af_inet.csk->timer.function = &net_timer;
sk672net/ipv4/af_inet.cskb_queue_head_init(&sk->back_log);
sk673net/ipv4/af_inet.csock->data =(void *) sk;
sk674net/ipv4/af_inet.csk->dummy_th.doff = sizeof(sk->dummy_th)/4;
sk675net/ipv4/af_inet.csk->ip_ttl=64;
sk676net/ipv4/af_inet.cif(sk->type==SOCK_RAW && protocol==IPPROTO_RAW)
sk677net/ipv4/af_inet.csk->ip_hdrincl=1;
sk679net/ipv4/af_inet.csk->ip_hdrincl=0;
sk681net/ipv4/af_inet.csk->ip_mc_loop=1;
sk682net/ipv4/af_inet.csk->ip_mc_ttl=1;
sk683net/ipv4/af_inet.c*sk->ip_mc_name=0;
sk684net/ipv4/af_inet.csk->ip_mc_list=NULL;
sk691net/ipv4/af_inet.csk->dummy_th.ack=1;  
sk692net/ipv4/af_inet.csk->dummy_th.doff=sizeof(struct tcphdr)>>2;
sk694net/ipv4/af_inet.csk->state_change = def_callback1;
sk695net/ipv4/af_inet.csk->data_ready = def_callback2;
sk696net/ipv4/af_inet.csk->write_space = def_callback3;
sk697net/ipv4/af_inet.csk->error_report = def_callback1;
sk699net/ipv4/af_inet.cif (sk->num) 
sk707net/ipv4/af_inet.cput_sock(sk->num, sk);
sk708net/ipv4/af_inet.csk->dummy_th.source = ntohs(sk->num);
sk711net/ipv4/af_inet.cif (sk->prot->init) 
sk713net/ipv4/af_inet.cerr = sk->prot->init(sk);
sk716net/ipv4/af_inet.cdestroy_sock(sk);
sk742net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sk744net/ipv4/af_inet.cif (sk == NULL) 
sk747net/ipv4/af_inet.csk->state_change(sk);
sk753net/ipv4/af_inet.cip_mc_drop_socket(sk);
sk764net/ipv4/af_inet.cif (sk->linger) {
sk766net/ipv4/af_inet.cif (!sk->lingertime)
sk767net/ipv4/af_inet.ctimeout = jiffies + HZ*sk->lingertime;
sk773net/ipv4/af_inet.csk->socket = NULL;
sk775net/ipv4/af_inet.csk->prot->close(sk, timeout);
sk784net/ipv4/af_inet.cstruct sock *sk=(struct sock *)sock->data, *sk2;
sk792net/ipv4/af_inet.cif(sk->prot->bind)
sk793net/ipv4/af_inet.creturn sk->prot->bind(sk,uaddr, addr_len);
sk796net/ipv4/af_inet.cif (sk->state != TCP_CLOSE)
sk803net/ipv4/af_inet.cif (sk->num != 0) 
sk817net/ipv4/af_inet.csnum = get_new_socknum(sk->prot, 0);
sk836net/ipv4/af_inet.csk->rcv_saddr = addr->sin_addr.s_addr;
sk838net/ipv4/af_inet.csk->saddr = 0;  /* Use device */
sk840net/ipv4/af_inet.csk->saddr = addr->sin_addr.s_addr;
sk846net/ipv4/af_inet.cfor(sk2 = sk->prot->sock_array[snum & (SOCK_ARRAY_SIZE -1)];
sk861net/ipv4/af_inet.cif (!sk2->rcv_saddr || !sk->rcv_saddr)
sk866net/ipv4/af_inet.cif(sk2->reuse && sk->reuse)
sk876net/ipv4/af_inet.cif (sk2->rcv_saddr != sk->rcv_saddr) 
sk882net/ipv4/af_inet.cif (!sk->reuse)
sk900net/ipv4/af_inet.cremove_sock(sk);
sk905net/ipv4/af_inet.cput_sock(snum, sk);
sk906net/ipv4/af_inet.csk->dummy_th.source = ntohs(sk->num);
sk907net/ipv4/af_inet.csk->daddr = 0;
sk908net/ipv4/af_inet.csk->dummy_th.dest = 0;
sk910net/ipv4/af_inet.cip_rt_put(sk->ip_route_cache);
sk911net/ipv4/af_inet.csk->ip_route_cache=NULL;
sk923net/ipv4/af_inet.cstruct sock *sk=(struct sock *)sock->data;
sk927net/ipv4/af_inet.cif (sock->state == SS_CONNECTING && tcp_connected(sk->state))
sk934net/ipv4/af_inet.cif (sock->state == SS_CONNECTING && sk->protocol == IPPROTO_TCP && (flags & O_NONBLOCK))
sk936net/ipv4/af_inet.cif(sk->err!=0)
sk937net/ipv4/af_inet.creturn sock_error(sk);
sk943net/ipv4/af_inet.cif(inet_autobind(sk)!=0)
sk945net/ipv4/af_inet.cif (sk->prot->connect == NULL) 
sk947net/ipv4/af_inet.cerr = sk->prot->connect(sk, (struct sockaddr_in *)uaddr, addr_len);
sk953net/ipv4/af_inet.cif (sk->state > TCP_FIN_WAIT2 && sock->state==SS_CONNECTING)
sk956net/ipv4/af_inet.creturn sock_error(sk);
sk959net/ipv4/af_inet.cif (sk->state != TCP_ESTABLISHED &&(flags & O_NONBLOCK)) 
sk963net/ipv4/af_inet.cwhile(sk->state == TCP_SYN_SENT || sk->state == TCP_SYN_RECV) 
sk965net/ipv4/af_inet.cinterruptible_sleep_on(sk->sleep);
sk973net/ipv4/af_inet.cif(sk->err && sk->protocol == IPPROTO_TCP)
sk977net/ipv4/af_inet.creturn sock_error(sk); /* set by tcp_err() */
sk983net/ipv4/af_inet.cif (sk->state != TCP_ESTABLISHED && sk->err) 
sk986net/ipv4/af_inet.creturn sock_error(sk);
sk1017net/ipv4/af_inet.cstruct sock *sk=(struct sock *)newsock->data;
sk1019net/ipv4/af_inet.cdestroy_sock(sk);
sk1085net/ipv4/af_inet.cstruct sock *sk;
sk1088net/ipv4/af_inet.csk = (struct sock *) sock->data;
sk1091net/ipv4/af_inet.cif (!tcp_connected(sk->state)) 
sk1093net/ipv4/af_inet.csin->sin_port = sk->dummy_th.dest;
sk1094net/ipv4/af_inet.csin->sin_addr.s_addr = sk->daddr;
sk1098net/ipv4/af_inet.c__u32 addr = sk->rcv_saddr;
sk1100net/ipv4/af_inet.caddr = sk->saddr;
sk1104net/ipv4/af_inet.csin->sin_port = sk->dummy_th.source;
sk1116net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sk1118net/ipv4/af_inet.cif (sk->prot->recvmsg == NULL) 
sk1120net/ipv4/af_inet.cif(sk->err)
sk1121net/ipv4/af_inet.creturn sock_error(sk);
sk1123net/ipv4/af_inet.cif(inet_autobind(sk)!=0)
sk1125net/ipv4/af_inet.creturn(sk->prot->recvmsg(sk, ubuf, size, noblock, flags,addr_len));
sk1132net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sk1133net/ipv4/af_inet.cif (sk->shutdown & SEND_SHUTDOWN) 
sk1138net/ipv4/af_inet.cif (sk->prot->sendmsg == NULL) 
sk1140net/ipv4/af_inet.cif(sk->err)
sk1141net/ipv4/af_inet.creturn sock_error(sk);
sk1143net/ipv4/af_inet.cif(inet_autobind(sk)!=0)
sk1145net/ipv4/af_inet.creturn(sk->prot->sendmsg(sk, msg, size, noblock, flags));
sk1152net/ipv4/af_inet.cstruct sock *sk=(struct sock*)sock->data;
sk1163net/ipv4/af_inet.cif (sock->state == SS_CONNECTING && sk->state == TCP_ESTABLISHED)
sk1165net/ipv4/af_inet.cif (!sk || !tcp_connected(sk->state)) 
sk1167net/ipv4/af_inet.csk->shutdown |= how;
sk1168net/ipv4/af_inet.cif (sk->prot->shutdown)
sk1169net/ipv4/af_inet.csk->prot->shutdown(sk, how);
sk1176net/ipv4/af_inet.cstruct sock *sk=(struct sock *) sock->data;
sk1177net/ipv4/af_inet.cif (sk->prot->select == NULL) 
sk1181net/ipv4/af_inet.creturn(sk->prot->select(sk, sel_type, wait));
sk1196net/ipv4/af_inet.cstruct sock *sk=(struct sock *)sock->data;
sk1211net/ipv4/af_inet.csk->proc = pid;
sk1218net/ipv4/af_inet.cput_fs_long(sk->proc,(int *)arg);
sk1221net/ipv4/af_inet.cif(sk->stamp.tv_sec==0)
sk1226net/ipv4/af_inet.cmemcpy_tofs((void *)arg,&sk->stamp,sizeof(struct timeval));
sk1280net/ipv4/af_inet.cif (sk->prot->ioctl==NULL) 
sk1282net/ipv4/af_inet.creturn(sk->prot->ioctl(sk, cmd, arg));
sk1361net/ipv4/af_inet.cstruct sock *get_sock_raw(struct sock *sk, 
sk1368net/ipv4/af_inet.cs=sk;
sk1390net/ipv4/af_inet.cstruct sock *get_sock_mcast(struct sock *sk, 
sk1409net/ipv4/af_inet.cs=sk;
sk733net/ipv4/arp.cif(skb->sk==NULL)
sk736net/ipv4/arp.cdev_queue_xmit(skb,skb->dev,skb->sk->priority);
sk1231net/ipv4/arp.cif (skb->sk)
sk1233net/ipv4/arp.cskb->sk->err = EHOSTDOWN;
sk1234net/ipv4/arp.cskb->sk->error_report(skb->sk);
sk234net/ipv4/icmp.cstruct sock *sk=icmp_socket.data;
sk238net/ipv4/icmp.cip_build_xmit(sk, icmp_glue_bits, icmp_param, 
sk754net/ipv4/icmp.cstruct sock *sk;
sk760net/ipv4/icmp.csk=icmp_socket.data;
sk761net/ipv4/icmp.csk->allocation=GFP_ATOMIC;
sk762net/ipv4/icmp.csk->num = 256;      /* Don't receive any data */
sk576net/ipv4/igmp.cint ip_mc_join_group(struct sock *sk , struct device *dev, unsigned long addr)
sk584net/ipv4/igmp.cif(sk->ip_mc_list==NULL)
sk586net/ipv4/igmp.cif((sk->ip_mc_list=(struct ip_mc_socklist *)kmalloc(sizeof(*sk->ip_mc_list), GFP_KERNEL))==NULL)
sk588net/ipv4/igmp.cmemset(sk->ip_mc_list,'\0',sizeof(*sk->ip_mc_list));
sk592net/ipv4/igmp.cif(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev)
sk594net/ipv4/igmp.cif(sk->ip_mc_list->multidev[i]==NULL)
sk600net/ipv4/igmp.csk->ip_mc_list->multiaddr[unused]=addr;
sk601net/ipv4/igmp.csk->ip_mc_list->multidev[unused]=dev;
sk610net/ipv4/igmp.cint ip_mc_leave_group(struct sock *sk, struct device *dev, unsigned long addr)
sk617net/ipv4/igmp.cif(sk->ip_mc_list==NULL)
sk622net/ipv4/igmp.cif(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev)
sk624net/ipv4/igmp.csk->ip_mc_list->multidev[i]=NULL;
sk636net/ipv4/igmp.cvoid ip_mc_drop_socket(struct sock *sk)
sk640net/ipv4/igmp.cif(sk->ip_mc_list==NULL)
sk645net/ipv4/igmp.cif(sk->ip_mc_list->multidev[i])
sk647net/ipv4/igmp.cip_mc_dec_group(sk->ip_mc_list->multidev[i], sk->ip_mc_list->multiaddr[i]);
sk648net/ipv4/igmp.csk->ip_mc_list->multidev[i]=NULL;
sk651net/ipv4/igmp.ckfree_s(sk->ip_mc_list,sizeof(*sk->ip_mc_list));
sk652net/ipv4/igmp.csk->ip_mc_list=NULL;
sk476net/ipv4/ip_fragment.cskb->sk = NULL;
sk577net/ipv4/ip_fragment.cskb->sk = NULL;
sk618net/ipv4/ip_fragment.cvoid ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag)
sk734net/ipv4/ip_fragment.cif (sk)
sk737net/ipv4/ip_fragment.csk->wmem_alloc += skb2->truesize;
sk738net/ipv4/ip_fragment.cskb2->sk=sk;
sk788net/ipv4/ip_fragment.cip_queue_xmit(sk, dev, skb2, 2);
sk160net/ipv4/ip_input.cextern void sort_send(struct sock *sk);
sk180net/ipv4/ip_input.cint ip_ioctl(struct sock *sk, int cmd, unsigned long arg)
sk77net/ipv4/ip_output.cnewskb->sk=NULL;
sk211net/ipv4/ip_output.cif(MULTICAST(daddr) && *dev==NULL && skb->sk && *skb->sk->ip_mc_name)
sk212net/ipv4/ip_output.c*dev=dev_get(skb->sk->ip_mc_name);
sk334net/ipv4/ip_output.cvoid ip_queue_xmit(struct sock *sk, struct device *dev,
sk384net/ipv4/ip_output.cif (sk == NULL)
sk397net/ipv4/ip_output.cip_fragment(sk,skb,dev,0);
sk435net/ipv4/ip_output.csk->packets_out++;
sk446net/ipv4/ip_output.cif (sk->send_head == NULL)
sk448net/ipv4/ip_output.csk->send_tail = skb;
sk449net/ipv4/ip_output.csk->send_head = skb;
sk453net/ipv4/ip_output.csk->send_tail->link3 = skb;
sk454net/ipv4/ip_output.csk->send_tail = skb;
sk463net/ipv4/ip_output.cskb->sk = sk;
sk482net/ipv4/ip_output.cif(sk==NULL || sk->ip_mc_loop)
sk521net/ipv4/ip_output.cif (sk != NULL)
sk523net/ipv4/ip_output.cdev_queue_xmit(skb, dev, sk->priority);
sk532net/ipv4/ip_output.cif(sk)
sk533net/ipv4/ip_output.csk->err = ENETDOWN;
sk561net/ipv4/ip_output.cint ip_build_xmit(struct sock *sk,
sk588net/ipv4/ip_output.cif (opt && opt->srr && !sk->ip_hdrincl)
sk594net/ipv4/ip_output.cif(sk && MULTICAST(daddr) && *sk->ip_mc_name)
sk596net/ipv4/ip_output.cdev=dev_get(sk->ip_mc_name);
sk600net/ipv4/ip_output.cif (sk->saddr && (!LOOPBACK(sk->saddr) || LOOPBACK(daddr)))
sk601net/ipv4/ip_output.csaddr = sk->saddr;
sk608net/ipv4/ip_output.crt = ip_check_route(&sk->ip_route_cache, daddr,
sk609net/ipv4/ip_output.csk->localroute || (flags&MSG_DONTROUTE) ||
sk620net/ipv4/ip_output.cif (sk->saddr && (!LOOPBACK(sk->saddr) || LOOPBACK(daddr)))
sk621net/ipv4/ip_output.csaddr = sk->saddr;
sk643net/ipv4/ip_output.cif (!sk->ip_hdrincl && opt) 
sk649net/ipv4/ip_output.cstruct sk_buff *skb=sock_alloc_send_skb(sk, length+15+dev->hard_header_len,0, noblock, &error);
sk659net/ipv4/ip_output.cskb->sk=sk;
sk685net/ipv4/ip_output.cif(!sk->ip_hdrincl)
sk689net/ipv4/ip_output.ciph->tos=sk->ip_tos;
sk693net/ipv4/ip_output.ciph->ttl=sk->ip_ttl;
sk721net/ipv4/ip_output.cdev_queue_xmit(skb,dev,sk->priority);
sk730net/ipv4/ip_output.cif (sk && !sk->ip_hdrincl && opt) 
sk739net/ipv4/ip_output.cif(!sk->ip_hdrincl)
sk779net/ipv4/ip_output.cif (sk->ip_hdrincl && offset > 0)
sk808net/ipv4/ip_output.cskb = sock_alloc_send_skb(sk, fraglen+15, 0, noblock, &error);
sk826net/ipv4/ip_output.cskb->sk = sk;
sk869net/ipv4/ip_output.cif(!sk->ip_hdrincl) 
sk879net/ipv4/ip_output.ciph->tos = sk->ip_tos;
sk886net/ipv4/ip_output.ciph->ttl = sk->ip_mc_ttl;
sk889net/ipv4/ip_output.ciph->ttl = sk->ip_ttl;
sk944net/ipv4/ip_output.cif(sk==NULL || sk->ip_mc_loop)
sk988net/ipv4/ip_output.cdev_queue_xmit(skb, dev, sk->priority);
sk1004net/ipv4/ip_output.cif(sk!=NULL)
sk1005net/ipv4/ip_output.csk->err=ENETDOWN;
sk111net/ipv4/ip_sockglue.cint ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen)
sk137net/ipv4/ip_sockglue.creturn ip_mroute_setsockopt(sk,optname,optval,optlen);
sk173net/ipv4/ip_sockglue.cold_opt = sk->opt;
sk174net/ipv4/ip_sockglue.csk->opt = opt;
sk183net/ipv4/ip_sockglue.csk->ip_tos=val;
sk185net/ipv4/ip_sockglue.csk->priority=SOPRI_INTERACTIVE;
sk187net/ipv4/ip_sockglue.csk->priority=SOPRI_BACKGROUND;
sk192net/ipv4/ip_sockglue.csk->ip_ttl=val;
sk195net/ipv4/ip_sockglue.cif(sk->type!=SOCK_RAW)
sk197net/ipv4/ip_sockglue.csk->ip_hdrincl=val?1:0;
sk202net/ipv4/ip_sockglue.csk->ip_mc_ttl=(int)ucval;
sk209net/ipv4/ip_sockglue.csk->ip_mc_loop=(int)ucval;
sk234net/ipv4/ip_sockglue.csk->ip_mc_name[0]=0;
sk250net/ipv4/ip_sockglue.cstrcpy(sk->ip_mc_name,dev->name);
sk314net/ipv4/ip_sockglue.creturn ip_mc_join_group(sk,dev,mreq.imr_multiaddr.s_addr);
sk365net/ipv4/ip_sockglue.creturn ip_mc_leave_group(sk,dev,mreq.imr_multiaddr.s_addr);
sk430net/ipv4/ip_sockglue.cint ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen)
sk443net/ipv4/ip_sockglue.creturn ip_mroute_getsockopt(sk,optname,optval,optlen);
sk458net/ipv4/ip_sockglue.cif (sk->opt)
sk459net/ipv4/ip_sockglue.cmemcpy(optbuf, sk->opt, sizeof(struct options)+sk->opt->optlen);
sk503net/ipv4/ip_sockglue.cval=sk->ip_tos;
sk506net/ipv4/ip_sockglue.cval=sk->ip_ttl;
sk509net/ipv4/ip_sockglue.cval=sk->ip_hdrincl;
sk513net/ipv4/ip_sockglue.cval=sk->ip_mc_ttl;
sk516net/ipv4/ip_sockglue.cval=sk->ip_mc_loop;
sk522net/ipv4/ip_sockglue.clen=strlen(sk->ip_mc_name);
sk527net/ipv4/ip_sockglue.cmemcpy_tofs((void *)optval,sk->ip_mc_name, len);
sk286net/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)
sk76net/ipv4/packet.cstruct sock *sk;
sk83net/ipv4/packet.csk = (struct sock *) pt->data;  
sk103net/ipv4/packet.cif(sock_queue_rcv_skb(sk,skb)<0)
sk105net/ipv4/packet.cskb->sk = NULL;
sk122net/ipv4/packet.cstatic int packet_sendmsg(struct sock *sk, struct msghdr *msg, int len,
sk167net/ipv4/packet.cskb = sock_wmalloc(sk, len, 0, GFP_KERNEL);
sk184net/ipv4/packet.cskb->sk = sk;
sk194net/ipv4/packet.cdev_queue_xmit(skb, dev, sk->priority);
sk207net/ipv4/packet.cstatic void packet_close(struct sock *sk, unsigned long timeout)
sk213net/ipv4/packet.clock_sock(sk);
sk214net/ipv4/packet.csk->state = TCP_CLOSE;
sk220net/ipv4/packet.cunregister_netdevice_notifier(&sk->protinfo.af_packet.notifier);
sk222net/ipv4/packet.cif(sk->protinfo.af_packet.prot_hook)
sk228net/ipv4/packet.cdev_remove_pack((struct packet_type *)sk->protinfo.af_packet.prot_hook);
sk234net/ipv4/packet.ckfree_s((void *)sk->protinfo.af_packet.prot_hook, sizeof(struct packet_type));
sk235net/ipv4/packet.csk->protinfo.af_packet.prot_hook = NULL;
sk238net/ipv4/packet.crelease_sock(sk);
sk239net/ipv4/packet.cdestroy_sock(sk);
sk246net/ipv4/packet.cint packet_attach(struct sock *sk, struct device *dev)
sk253net/ipv4/packet.cp->type = sk->num;
sk254net/ipv4/packet.cp->data = (void *)sk;
sk262net/ipv4/packet.csk->protinfo.af_packet.prot_hook = p;
sk263net/ipv4/packet.csk->protinfo.af_packet.bound_dev = dev;
sk271net/ipv4/packet.cstatic int packet_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len)
sk308net/ipv4/packet.cmemcpy(sk->protinfo.af_packet.device_name,name,15);
sk314net/ipv4/packet.cif(sk->protinfo.af_packet.prot_hook)
sk316net/ipv4/packet.cdev_remove_pack(sk->protinfo.af_packet.prot_hook);
sk317net/ipv4/packet.csk->protinfo.af_packet.prot_hook->dev=dev;
sk318net/ipv4/packet.csk->protinfo.af_packet.bound_dev=dev;
sk319net/ipv4/packet.cdev_add_pack(sk->protinfo.af_packet.prot_hook);
sk323net/ipv4/packet.cint err=packet_attach(sk, dev);
sk363net/ipv4/packet.cstatic int packet_init(struct sock *sk)
sk369net/ipv4/packet.cint err=packet_attach(sk, NULL);
sk377net/ipv4/packet.csk->protinfo.af_packet.notifier.notifier_call=packet_unbind;
sk378net/ipv4/packet.csk->protinfo.af_packet.notifier.priority=0;
sk380net/ipv4/packet.cregister_netdevice_notifier(&sk->protinfo.af_packet.notifier);
sk391net/ipv4/packet.cint packet_recvmsg(struct sock *sk, struct msghdr *msg, int len,
sk399net/ipv4/packet.cif (sk->shutdown & RCV_SHUTDOWN) 
sk406net/ipv4/packet.cif(sk->protinfo.af_packet.prot_hook==NULL)
sk423net/ipv4/packet.cskb=skb_recv_datagram(sk,flags,noblock,&err);
sk442net/ipv4/packet.csk->stamp=skb->stamp;
sk459net/ipv4/packet.cskb_free_datagram(sk, skb);
sk82net/ipv4/raw.cstruct sock *sk;
sk86net/ipv4/raw.csk = (struct sock *) protocol->data;
sk87net/ipv4/raw.cif (sk == NULL) 
sk93net/ipv4/raw.cif (sk->cong_window > 1) sk->cong_window = sk->cong_window/2;
sk99net/ipv4/raw.csk->err = EPROTO;
sk100net/ipv4/raw.csk->error_report(sk);
sk105net/ipv4/raw.csk->err = icmp_err_convert[code & 0xff].errno;
sk106net/ipv4/raw.csk->error_report(sk);
sk119net/ipv4/raw.cint raw_rcv(struct sock *sk, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr)
sk122net/ipv4/raw.cskb->sk = sk;
sk136net/ipv4/raw.cif(sk->bsdism)
sk142net/ipv4/raw.cif(sock_queue_rcv_skb(sk,skb)<0)
sk145net/ipv4/raw.cskb->sk=NULL;
sk190net/ipv4/raw.cstatic int raw_sendto(struct sock *sk, const unsigned char *from, 
sk219net/ipv4/raw.cif (sk->state != TCP_ESTABLISHED) 
sk222net/ipv4/raw.csin.sin_port = sk->num;
sk223net/ipv4/raw.csin.sin_addr.s_addr = sk->daddr;
sk226net/ipv4/raw.csin.sin_port = sk->num;
sk235net/ipv4/raw.cif (!sk->bsdism && sk->broadcast == 0 && ip_chk_addr(sin.sin_addr.s_addr)==IS_BROADCAST)
sk238net/ipv4/raw.cif(sk->ip_hdrincl)
sk242net/ipv4/raw.cerr=ip_build_xmit(sk, raw_getrawfrag, from, len, sin.sin_addr.s_addr, 0, sk->opt, flags, sin.sin_port, noblock);
sk248net/ipv4/raw.cerr=ip_build_xmit(sk, raw_getfrag, from, len, sin.sin_addr.s_addr, 0, sk->opt, flags, sin.sin_port, noblock);
sk257net/ipv4/raw.cstatic int raw_sendmsg(struct sock *sk, struct msghdr *msg, int len, int noblock, 
sk261net/ipv4/raw.creturn raw_sendto(sk,msg->msg_iov[0].iov_base,len, noblock, flags, msg->msg_name, msg->msg_namelen);
sk281net/ipv4/raw.cerr=raw_sendto(sk,buf,len, noblock, flags, msg->msg_name, msg->msg_namelen);
sk288net/ipv4/raw.cstatic void raw_close(struct sock *sk, unsigned long timeout)
sk290net/ipv4/raw.csk->state = TCP_CLOSE;
sk292net/ipv4/raw.cif(sk==mroute_socket)
sk294net/ipv4/raw.cmroute_close(sk);
sk298net/ipv4/raw.cdestroy_sock(sk);
sk302net/ipv4/raw.cstatic int raw_init(struct sock *sk)
sk313net/ipv4/raw.cint raw_recvmsg(struct sock *sk, struct msghdr *msg, int len,
sk324net/ipv4/raw.cif (sk->shutdown & RCV_SHUTDOWN) 
sk330net/ipv4/raw.cskb=skb_recv_datagram(sk,flags,noblock,&err);
sk337net/ipv4/raw.csk->stamp=skb->stamp;
sk345net/ipv4/raw.cskb_free_datagram(sk, skb);
sk425net/ipv4/tcp.cstatic void tcp_close(struct sock *sk, unsigned long timeout);
sk445net/ipv4/tcp.cif(p->sk->state == TCP_ESTABLISHED || p->sk->state >= TCP_FIN_WAIT1)
sk477net/ipv4/tcp.cstatic void tcp_close_pending (struct sock *sk) 
sk481net/ipv4/tcp.cwhile ((skb = skb_dequeue(&sk->receive_queue)) != NULL) 
sk483net/ipv4/tcp.ctcp_close(skb->sk, 0);
sk493net/ipv4/tcp.cvoid tcp_time_wait(struct sock *sk)
sk495net/ipv4/tcp.ctcp_set_state(sk,TCP_TIME_WAIT);
sk496net/ipv4/tcp.csk->shutdown = SHUTDOWN_MASK;
sk497net/ipv4/tcp.cif (!sk->dead)
sk498net/ipv4/tcp.csk->state_change(sk);
sk499net/ipv4/tcp.ctcp_reset_msl_timer(sk, TIME_CLOSE, TCP_TIMEWAIT_LEN);
sk516net/ipv4/tcp.cstruct sock *sk;
sk525net/ipv4/tcp.csk = get_sock(&tcp_prot, th->source, daddr, th->dest, saddr);
sk527net/ipv4/tcp.cif (sk == NULL) 
sk537net/ipv4/tcp.cif (sk->cong_window > 4)
sk538net/ipv4/tcp.csk->cong_window--;
sk544net/ipv4/tcp.csk->err=EPROTO;
sk545net/ipv4/tcp.csk->error_report(sk);
sk558net/ipv4/tcp.cif ((rt = sk->ip_route_cache) != NULL)
sk562net/ipv4/tcp.cif (sk->mtu > new_mtu - sizeof(struct iphdr) - sizeof(struct tcphdr)
sk564net/ipv4/tcp.csk->mtu = new_mtu - sizeof(struct iphdr) - sizeof(struct tcphdr);
sk577net/ipv4/tcp.cif(icmp_err_convert[code].fatal || sk->state == TCP_SYN_SENT || sk->state == TCP_SYN_RECV)
sk579net/ipv4/tcp.csk->err = icmp_err_convert[code].errno;
sk580net/ipv4/tcp.cif (sk->state == TCP_SYN_SENT || sk->state == TCP_SYN_RECV) 
sk583net/ipv4/tcp.ctcp_set_state(sk,TCP_CLOSE);
sk584net/ipv4/tcp.csk->error_report(sk);    /* Wake people up to see the error (see connect in sock.c) */
sk588net/ipv4/tcp.csk->err_soft = icmp_err_convert[code].errno;
sk599net/ipv4/tcp.cstatic int tcp_readable(struct sock *sk)
sk607net/ipv4/tcp.cif(sk && sk->debug)
sk608net/ipv4/tcp.cprintk("tcp_readable: %p - ",sk);
sk612net/ipv4/tcp.cif (sk == NULL || (skb = skb_peek(&sk->receive_queue)) == NULL)
sk615net/ipv4/tcp.cif(sk && sk->debug) 
sk620net/ipv4/tcp.ccounted = sk->copied_seq;  /* Where we are at the moment */
sk662net/ipv4/tcp.cwhile(skb != (struct sk_buff *)&sk->receive_queue);
sk665net/ipv4/tcp.cif(sk->debug)
sk673net/ipv4/tcp.cstatic int tcp_listen_select(struct sock *sk, int sel_type, select_table *wait)
sk678net/ipv4/tcp.clock_sock(sk);
sk679net/ipv4/tcp.cretval = (tcp_find_established(sk) != NULL);
sk680net/ipv4/tcp.crelease_sock(sk);
sk696net/ipv4/tcp.cstatic int tcp_select(struct sock *sk, int sel_type, select_table *wait)
sk698net/ipv4/tcp.cif (sk->state == TCP_LISTEN)
sk699net/ipv4/tcp.creturn tcp_listen_select(sk, sel_type, wait);
sk703net/ipv4/tcp.cif (sk->err)
sk705net/ipv4/tcp.cif (sk->state == TCP_SYN_SENT || sk->state == TCP_SYN_RECV)
sk708net/ipv4/tcp.cif (sk->shutdown & RCV_SHUTDOWN)
sk711net/ipv4/tcp.cif (sk->acked_seq == sk->copied_seq)
sk714net/ipv4/tcp.cif (sk->urg_seq != sk->copied_seq ||
sk715net/ipv4/tcp.csk->acked_seq != sk->copied_seq+1 ||
sk716net/ipv4/tcp.csk->urginline || !sk->urg_data)
sk721net/ipv4/tcp.cif (sk->err)
sk723net/ipv4/tcp.cif (sk->shutdown & SEND_SHUTDOWN) 
sk725net/ipv4/tcp.cif (sk->state == TCP_SYN_SENT || sk->state == TCP_SYN_RECV)
sk732net/ipv4/tcp.cif (sock_wspace(sk) < sk->mtu+128+sk->prot->max_header)
sk737net/ipv4/tcp.cif (sk->urg_data)
sk741net/ipv4/tcp.cselect_wait(sk->sleep, wait);
sk745net/ipv4/tcp.cint tcp_ioctl(struct sock *sk, int cmd, unsigned long arg)
sk758net/ipv4/tcp.cif (sk->state == TCP_LISTEN) 
sk761net/ipv4/tcp.clock_sock(sk);
sk762net/ipv4/tcp.camount = tcp_readable(sk);
sk763net/ipv4/tcp.crelease_sock(sk);
sk772net/ipv4/tcp.cint answ = sk->urg_data && sk->urg_seq == sk->copied_seq;
sk784net/ipv4/tcp.cif (sk->state == TCP_LISTEN) return(-EINVAL);
sk785net/ipv4/tcp.camount = sock_wspace(sk);
sk836net/ipv4/tcp.cextern __inline int tcp_build_header(struct tcphdr *th, struct sock *sk, int push)
sk839net/ipv4/tcp.cmemcpy(th,(void *) &(sk->dummy_th), sizeof(*th));
sk840net/ipv4/tcp.cth->seq = htonl(sk->write_seq);
sk842net/ipv4/tcp.csk->ack_backlog = 0;
sk843net/ipv4/tcp.csk->bytes_rcv = 0;
sk844net/ipv4/tcp.csk->ack_timed = 0;
sk845net/ipv4/tcp.cth->ack_seq = htonl(sk->acked_seq);
sk846net/ipv4/tcp.csk->window = tcp_select_window(sk);
sk847net/ipv4/tcp.cth->window = htons(sk->window);
sk855net/ipv4/tcp.cstatic void wait_for_tcp_connect(struct sock * sk)
sk857net/ipv4/tcp.crelease_sock(sk);
sk859net/ipv4/tcp.cif (sk->state != TCP_ESTABLISHED && sk->state != TCP_CLOSE_WAIT && sk->err == 0) 
sk861net/ipv4/tcp.cinterruptible_sleep_on(sk->sleep);  
sk864net/ipv4/tcp.clock_sock(sk);
sk870net/ipv4/tcp.cstatic void wait_for_tcp_memory(struct sock * sk)
sk872net/ipv4/tcp.crelease_sock(sk);
sk874net/ipv4/tcp.cif (sk->wmem_alloc*2 > sk->sndbuf &&
sk875net/ipv4/tcp.c(sk->state == TCP_ESTABLISHED||sk->state == TCP_CLOSE_WAIT)
sk876net/ipv4/tcp.c&& sk->err == 0) 
sk878net/ipv4/tcp.csk->socket->flags &= ~SO_NOSPACE;
sk879net/ipv4/tcp.cinterruptible_sleep_on(sk->sleep);
sk882net/ipv4/tcp.clock_sock(sk);
sk891net/ipv4/tcp.cstatic int do_tcp_sendmsg(struct sock *sk, struct msghdr *msg,
sk913net/ipv4/tcp.cprot = sk->prot;
sk919net/ipv4/tcp.cif (sk->err) 
sk923net/ipv4/tcp.creturn sock_error(sk);
sk929net/ipv4/tcp.cif (sk->shutdown & SEND_SHUTDOWN) 
sk939net/ipv4/tcp.cwhile (sk->state != TCP_ESTABLISHED && sk->state != TCP_CLOSE_WAIT) 
sk944net/ipv4/tcp.cif (sk->err) 
sk945net/ipv4/tcp.creturn sock_error(sk);
sk947net/ipv4/tcp.cif (sk->state != TCP_SYN_SENT && sk->state != TCP_SYN_RECV)
sk949net/ipv4/tcp.cif (sk->keepopen)
sk960net/ipv4/tcp.cwait_for_tcp_connect(sk);
sk988net/ipv4/tcp.cint new_mss = min(sk->mtu, sk->max_window);
sk989net/ipv4/tcp.cif (new_mss < sk->mss)
sk991net/ipv4/tcp.ctcp_send_partial(sk);
sk992net/ipv4/tcp.csk->mss = new_mss;
sk997net/ipv4/tcp.cif ((skb = tcp_dequeue_partial(sk)) != NULL) 
sk1006net/ipv4/tcp.ccopy = min(sk->mss - tcp_size, seglen);
sk1018net/ipv4/tcp.csk->write_seq += copy;
sk1021net/ipv4/tcp.cif (tcp_size >= sk->mss || (flags & MSG_OOB) || !sk->packets_out)
sk1022net/ipv4/tcp.ctcp_send_skb(sk, skb);
sk1024net/ipv4/tcp.ctcp_enqueue_partial(skb, sk);
sk1040net/ipv4/tcp.ccopy = sk->window_seq - sk->write_seq;
sk1041net/ipv4/tcp.cif (copy <= 0 || copy < (sk->max_window >> 1) || copy > sk->mss)
sk1042net/ipv4/tcp.ccopy = sk->mss;
sk1051net/ipv4/tcp.cif (copy < sk->mss && !(flags & MSG_OOB) && sk->packets_out) 
sk1053net/ipv4/tcp.cskb = sock_wmalloc(sk, sk->mtu + 128 + prot->max_header + 15, 0, GFP_KERNEL);
sk1058net/ipv4/tcp.cskb = sock_wmalloc(sk, copy + prot->max_header + 15 , 0, GFP_KERNEL);
sk1067net/ipv4/tcp.csk->socket->flags |= SO_NOSPACE;
sk1082net/ipv4/tcp.cwait_for_tcp_memory(sk);
sk1086net/ipv4/tcp.cskb->sk = sk;
sk1088net/ipv4/tcp.cskb->localroute = sk->localroute|(flags&MSG_DONTROUTE);
sk1095net/ipv4/tcp.ctmp = prot->build_header(skb, sk->saddr, sk->daddr, &dev,
sk1096net/ipv4/tcp.cIPPROTO_TCP, sk->opt, skb->truesize,sk->ip_tos,sk->ip_ttl,&sk->ip_route_cache);
sk1099net/ipv4/tcp.csock_wfree(sk, skb);
sk1109net/ipv4/tcp.ctmp = tcp_build_header(skb->h.th, sk, seglen-copy);
sk1112net/ipv4/tcp.csock_wfree(sk, skb);
sk1132net/ipv4/tcp.csk->write_seq += copy;
sk1136net/ipv4/tcp.ctcp_enqueue_partial(send_tmp, sk);
sk1139net/ipv4/tcp.ctcp_send_skb(sk, skb);
sk1142net/ipv4/tcp.csk->err = 0;
sk1148net/ipv4/tcp.cstatic int tcp_sendmsg(struct sock *sk, struct msghdr *msg,
sk1167net/ipv4/tcp.cif(sk->state == TCP_CLOSE)
sk1170net/ipv4/tcp.cif (addr->sin_port != sk->dummy_th.dest) 
sk1172net/ipv4/tcp.cif (addr->sin_addr.s_addr != sk->daddr) 
sk1176net/ipv4/tcp.clock_sock(sk);
sk1177net/ipv4/tcp.cretval = do_tcp_sendmsg(sk, msg, len, nonblock, flags);
sk1188net/ipv4/tcp.cif (sk->partial) {
sk1189net/ipv4/tcp.cif (!sk->packets_out ||
sk1190net/ipv4/tcp.c(sk->nonagle && before(sk->write_seq , sk->window_seq))) {
sk1191net/ipv4/tcp.ctcp_send_partial(sk);
sk1195net/ipv4/tcp.crelease_sock(sk);
sk1208net/ipv4/tcp.cvoid tcp_read_wakeup(struct sock *sk)
sk1215net/ipv4/tcp.cif (!sk->ack_backlog) 
sk1222net/ipv4/tcp.cif ((sk->state == TCP_CLOSE) || (sk->state == TCP_TIME_WAIT))
sk1236net/ipv4/tcp.cbuff = sock_wmalloc(sk,MAX_ACK_SIZE,1, GFP_ATOMIC);
sk1240net/ipv4/tcp.ctcp_reset_xmit_timer(sk, TIME_WRITE, HZ);
sk1244net/ipv4/tcp.cbuff->sk = sk;
sk1245net/ipv4/tcp.cbuff->localroute = sk->localroute;
sk1252net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
sk1253net/ipv4/tcp.cIPPROTO_TCP, sk->opt, MAX_ACK_SIZE,sk->ip_tos,sk->ip_ttl,&sk->ip_route_cache);
sk1257net/ipv4/tcp.csock_wfree(sk, buff);
sk1263net/ipv4/tcp.cmemcpy(t1,(void *) &sk->dummy_th, sizeof(*t1));
sk1264net/ipv4/tcp.ct1->seq = htonl(sk->sent_seq);
sk1266net/ipv4/tcp.csk->ack_backlog = 0;
sk1267net/ipv4/tcp.csk->bytes_rcv = 0;
sk1269net/ipv4/tcp.csk->window = tcp_select_window(sk);
sk1270net/ipv4/tcp.ct1->window = htons(sk->window);
sk1271net/ipv4/tcp.ct1->ack_seq = htonl(sk->acked_seq);
sk1273net/ipv4/tcp.ctcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), buff);
sk1274net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
sk1284net/ipv4/tcp.cstatic int tcp_recv_urg(struct sock * sk, int nonblock,
sk1290net/ipv4/tcp.cif (sk->urginline || !sk->urg_data || sk->urg_data == URG_READ)
sk1293net/ipv4/tcp.cif (sk->err) 
sk1294net/ipv4/tcp.creturn sock_error(sk);
sk1296net/ipv4/tcp.cif (sk->state == TCP_CLOSE || sk->done) 
sk1298net/ipv4/tcp.cif (!sk->done) 
sk1300net/ipv4/tcp.csk->done = 1;
sk1306net/ipv4/tcp.cif (sk->shutdown & RCV_SHUTDOWN) 
sk1308net/ipv4/tcp.csk->done = 1;
sk1311net/ipv4/tcp.clock_sock(sk);
sk1312net/ipv4/tcp.cif (sk->urg_data & URG_VALID) 
sk1314net/ipv4/tcp.cchar c = sk->urg_data;
sk1316net/ipv4/tcp.csk->urg_data = URG_READ;
sk1322net/ipv4/tcp.csin->sin_addr.s_addr=sk->daddr;
sk1323net/ipv4/tcp.csin->sin_port=sk->dummy_th.dest;
sk1327net/ipv4/tcp.crelease_sock(sk);
sk1330net/ipv4/tcp.crelease_sock(sk);
sk1348net/ipv4/tcp.cstatic inline void tcp_eat_skb(struct sock *sk, struct sk_buff * skb)
sk1350net/ipv4/tcp.csk->ack_backlog++;
sk1351net/ipv4/tcp.cskb->sk = sk;
sk1352net/ipv4/tcp.c__skb_unlink(skb, &sk->receive_queue);
sk1363net/ipv4/tcp.cstatic void cleanup_rbuf(struct sock *sk)
sk1372net/ipv4/tcp.cwhile ((skb=skb_peek(&sk->receive_queue)) != NULL) {
sk1375net/ipv4/tcp.ctcp_eat_skb(sk, skb);
sk1385net/ipv4/tcp.crspace=sock_rspace(sk);
sk1386net/ipv4/tcp.cif(sk->debug)
sk1408net/ipv4/tcp.cif (rspace > (sk->window - sk->bytes_rcv + sk->mtu)) 
sk1411net/ipv4/tcp.ctcp_read_wakeup(sk);
sk1416net/ipv4/tcp.cint was_active = del_timer(&sk->retransmit_timer);
sk1417net/ipv4/tcp.cif (!was_active || jiffies+TCP_ACK_TIME < sk->timer.expires) 
sk1419net/ipv4/tcp.ctcp_reset_xmit_timer(sk, TIME_WRITE, TCP_ACK_TIME);
sk1422net/ipv4/tcp.cadd_timer(&sk->retransmit_timer);
sk1431net/ipv4/tcp.cstatic int tcp_recvmsg(struct sock *sk, struct msghdr *msg,
sk1444net/ipv4/tcp.cif (sk->state == TCP_LISTEN)
sk1452net/ipv4/tcp.creturn tcp_recv_urg(sk, nonblock, msg, len, flags, addr_len);
sk1460net/ipv4/tcp.cpeek_seq = sk->copied_seq;
sk1461net/ipv4/tcp.cseq = &sk->copied_seq;
sk1465net/ipv4/tcp.cadd_wait_queue(sk->sleep, &wait);
sk1466net/ipv4/tcp.clock_sock(sk);
sk1476net/ipv4/tcp.cif (copied && sk->urg_data && sk->urg_seq == *seq)
sk1485net/ipv4/tcp.cskb = skb_peek(&sk->receive_queue);
sk1503net/ipv4/tcp.cwhile (skb != (struct sk_buff *)&sk->receive_queue);
sk1508net/ipv4/tcp.cif (sk->err) 
sk1510net/ipv4/tcp.ccopied = sock_error(sk);
sk1514net/ipv4/tcp.cif (sk->state == TCP_CLOSE) 
sk1516net/ipv4/tcp.cif (!sk->done) 
sk1518net/ipv4/tcp.csk->done = 1;
sk1525net/ipv4/tcp.cif (sk->shutdown & RCV_SHUTDOWN) 
sk1527net/ipv4/tcp.csk->done = 1;
sk1537net/ipv4/tcp.ccleanup_rbuf(sk);
sk1538net/ipv4/tcp.crelease_sock(sk);
sk1539net/ipv4/tcp.csk->socket->flags |= SO_WAITDATA;
sk1541net/ipv4/tcp.csk->socket->flags &= ~SO_WAITDATA;
sk1542net/ipv4/tcp.clock_sock(sk);
sk1572net/ipv4/tcp.cif (sk->urg_data) 
sk1574net/ipv4/tcp.cu32 urg_offset = sk->urg_seq - *seq;
sk1579net/ipv4/tcp.cif (!sk->urginline) 
sk1617net/ipv4/tcp.cif (after(sk->copied_seq,sk->urg_seq))
sk1618net/ipv4/tcp.csk->urg_data = 0;
sk1632net/ipv4/tcp.ctcp_eat_skb(sk, skb);    
sk1645net/ipv4/tcp.csk->shutdown |= RCV_SHUTDOWN;
sk1654net/ipv4/tcp.csin->sin_addr.s_addr=sk->daddr;
sk1655net/ipv4/tcp.csin->sin_port=sk->dummy_th.dest;
sk1660net/ipv4/tcp.cremove_wait_queue(sk->sleep, &wait);
sk1664net/ipv4/tcp.ccleanup_rbuf(sk);
sk1665net/ipv4/tcp.crelease_sock(sk);
sk1678net/ipv4/tcp.cstatic int tcp_close_state(struct sock *sk, int dead)
sk1682net/ipv4/tcp.cswitch(sk->state)
sk1694net/ipv4/tcp.cns=sk->state;
sk1705net/ipv4/tcp.ctcp_set_state(sk,ns);
sk1718net/ipv4/tcp.cint timer_active=del_timer(&sk->timer);
sk1720net/ipv4/tcp.cadd_timer(&sk->timer);
sk1722net/ipv4/tcp.ctcp_reset_msl_timer(sk, TIME_CLOSE, TCP_FIN_TIMEOUT);
sk1733net/ipv4/tcp.cvoid tcp_shutdown(struct sock *sk, int how)
sk1748net/ipv4/tcp.cif (sk->state == TCP_FIN_WAIT1 ||
sk1749net/ipv4/tcp.csk->state == TCP_FIN_WAIT2 ||
sk1750net/ipv4/tcp.csk->state == TCP_CLOSING ||
sk1751net/ipv4/tcp.csk->state == TCP_LAST_ACK ||
sk1752net/ipv4/tcp.csk->state == TCP_TIME_WAIT || 
sk1753net/ipv4/tcp.csk->state == TCP_CLOSE ||
sk1754net/ipv4/tcp.csk->state == TCP_LISTEN
sk1759net/ipv4/tcp.clock_sock(sk);
sk1765net/ipv4/tcp.csk->shutdown |= SEND_SHUTDOWN;
sk1771net/ipv4/tcp.cif (sk->partial)
sk1772net/ipv4/tcp.ctcp_send_partial(sk);
sk1778net/ipv4/tcp.cif (tcp_close_state(sk,0))
sk1779net/ipv4/tcp.ctcp_send_fin(sk);
sk1781net/ipv4/tcp.crelease_sock(sk);
sk1789net/ipv4/tcp.cstatic inline int closing(struct sock * sk)
sk1791net/ipv4/tcp.cswitch (sk->state) {
sk1801net/ipv4/tcp.cstatic void tcp_close(struct sock *sk, unsigned long timeout)
sk1810net/ipv4/tcp.clock_sock(sk);
sk1813net/ipv4/tcp.cif(sk->state == TCP_LISTEN)
sk1816net/ipv4/tcp.ctcp_set_state(sk, TCP_CLOSE);
sk1817net/ipv4/tcp.ctcp_close_pending(sk);
sk1818net/ipv4/tcp.crelease_sock(sk);
sk1819net/ipv4/tcp.csk->dead = 1;
sk1823net/ipv4/tcp.csk->keepopen = 1;
sk1824net/ipv4/tcp.csk->shutdown = SHUTDOWN_MASK;
sk1826net/ipv4/tcp.cif (!sk->dead) 
sk1827net/ipv4/tcp.csk->state_change(sk);
sk1835net/ipv4/tcp.cwhile((skb=skb_dequeue(&sk->receive_queue))!=NULL)
sk1842net/ipv4/tcp.cif (sk->partial) 
sk1843net/ipv4/tcp.ctcp_send_partial(sk);
sk1850net/ipv4/tcp.cif (tcp_close_state(sk,1)==1)
sk1852net/ipv4/tcp.ctcp_send_fin(sk);
sk1857net/ipv4/tcp.crelease_sock(sk);
sk1859net/ipv4/tcp.cwhile(closing(sk) && current->timeout)
sk1861net/ipv4/tcp.cinterruptible_sleep_on(sk->sleep);
sk1868net/ipv4/tcp.clock_sock(sk);
sk1877net/ipv4/tcp.crelease_sock(sk);
sk1878net/ipv4/tcp.csk->dead = 1;
sk1886net/ipv4/tcp.cstatic struct sock *tcp_accept(struct sock *sk, int flags)
sk1896net/ipv4/tcp.cif (sk->state != TCP_LISTEN) 
sk1898net/ipv4/tcp.csk->err = EINVAL;
sk1904net/ipv4/tcp.clock_sock(sk);
sk1906net/ipv4/tcp.cwhile((skb = tcp_dequeue_established(sk)) == NULL) 
sk1911net/ipv4/tcp.crelease_sock(sk);
sk1912net/ipv4/tcp.csk->err = EAGAIN;
sk1916net/ipv4/tcp.crelease_sock(sk);
sk1917net/ipv4/tcp.cinterruptible_sleep_on(sk->sleep);
sk1921net/ipv4/tcp.csk->err = ERESTARTSYS;
sk1924net/ipv4/tcp.clock_sock(sk);
sk1932net/ipv4/tcp.cnewsk = skb->sk;
sk1935net/ipv4/tcp.csk->ack_backlog--;
sk1936net/ipv4/tcp.crelease_sock(sk);
sk1944net/ipv4/tcp.cstatic int tcp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len)
sk1954net/ipv4/tcp.cif (sk->state != TCP_CLOSE) 
sk1961net/ipv4/tcp.cif(sk->daddr)
sk1984net/ipv4/tcp.clock_sock(sk);
sk1985net/ipv4/tcp.csk->daddr = usin->sin_addr.s_addr;
sk1986net/ipv4/tcp.csk->write_seq = tcp_init_seq();
sk1987net/ipv4/tcp.csk->window_seq = sk->write_seq;
sk1988net/ipv4/tcp.csk->rcv_ack_seq = sk->write_seq -1;
sk1989net/ipv4/tcp.csk->err = 0;
sk1990net/ipv4/tcp.csk->dummy_th.dest = usin->sin_port;
sk1991net/ipv4/tcp.crelease_sock(sk);
sk1993net/ipv4/tcp.cbuff = sock_wmalloc(sk,MAX_SYN_SIZE,0, GFP_KERNEL);
sk1998net/ipv4/tcp.clock_sock(sk);
sk1999net/ipv4/tcp.cbuff->sk = sk;
sk2001net/ipv4/tcp.cbuff->localroute = sk->localroute;
sk2008net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
sk2009net/ipv4/tcp.cIPPROTO_TCP, NULL, MAX_SYN_SIZE,sk->ip_tos,sk->ip_ttl,&sk->ip_route_cache);
sk2012net/ipv4/tcp.csock_wfree(sk, buff);
sk2013net/ipv4/tcp.crelease_sock(sk);
sk2016net/ipv4/tcp.cif ((rt = sk->ip_route_cache) != NULL && !sk->saddr)
sk2017net/ipv4/tcp.csk->saddr = rt->rt_src;
sk2018net/ipv4/tcp.csk->rcv_saddr = sk->saddr;
sk2022net/ipv4/tcp.cmemcpy(t1,(void *)&(sk->dummy_th), sizeof(*t1));
sk2023net/ipv4/tcp.cbuff->seq = sk->write_seq++;
sk2025net/ipv4/tcp.csk->sent_seq = sk->write_seq;
sk2026net/ipv4/tcp.cbuff->end_seq = sk->write_seq;
sk2034net/ipv4/tcp.csk->window_clamp=rt->rt_window;
sk2036net/ipv4/tcp.csk->window_clamp=0;
sk2038net/ipv4/tcp.cif (sk->user_mss)
sk2039net/ipv4/tcp.csk->mtu = sk->user_mss;
sk2041net/ipv4/tcp.csk->mtu = rt->rt_mtu - sizeof(struct iphdr) - sizeof(struct tcphdr);
sk2043net/ipv4/tcp.csk->mtu = 576 - sizeof(struct iphdr) - sizeof(struct tcphdr);
sk2049net/ipv4/tcp.cif(sk->mtu <32)
sk2050net/ipv4/tcp.csk->mtu = 32;  /* Sanity limit */
sk2052net/ipv4/tcp.csk->mtu = min(sk->mtu, dev->mtu - sizeof(struct iphdr) - sizeof(struct tcphdr));
sk2066net/ipv4/tcp.csk->mtu=skip_pick_mtu(sk->mtu,dev);
sk2076net/ipv4/tcp.cptr[2] = (sk->mtu) >> 8;
sk2077net/ipv4/tcp.cptr[3] = (sk->mtu) & 0xff;
sk2079net/ipv4/tcp.ctcp_send_check(t1, sk->saddr, sk->daddr,
sk2087net/ipv4/tcp.ctcp_set_state(sk,TCP_SYN_SENT);
sk2089net/ipv4/tcp.csk->rto = rt->rt_irtt;
sk2091net/ipv4/tcp.csk->rto = TCP_TIMEOUT_INIT;
sk2092net/ipv4/tcp.csk->retransmit_timer.function=&tcp_retransmit_timer;
sk2093net/ipv4/tcp.csk->retransmit_timer.data = (unsigned long)sk;
sk2094net/ipv4/tcp.ctcp_reset_xmit_timer(sk, TIME_WRITE, sk->rto);  /* Timer for repeating the SYN until an answer  */
sk2095net/ipv4/tcp.csk->retransmits = 0;        /* Now works the right way instead of a hacked 
sk2098net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 0);  
sk2099net/ipv4/tcp.ctcp_reset_xmit_timer(sk, TIME_WRITE, sk->rto);
sk2103net/ipv4/tcp.crelease_sock(sk);
sk2111net/ipv4/tcp.cint tcp_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen)
sk2116net/ipv4/tcp.creturn ip_setsockopt(sk,level,optname,optval,optlen);
sk2137net/ipv4/tcp.csk->user_mss=val;
sk2140net/ipv4/tcp.csk->nonagle=(val==0)?0:1;
sk2147net/ipv4/tcp.cint tcp_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen)
sk2152net/ipv4/tcp.creturn ip_getsockopt(sk,level,optname,optval,optlen);
sk2157net/ipv4/tcp.cval=sk->user_mss;
sk2160net/ipv4/tcp.cval=sk->nonagle;
sk38net/ipv4/tcp_input.cextern __inline__ void tcp_delack_estimator(struct sock *sk)
sk44net/ipv4/tcp_input.cif (sk->lrcvtime == 0) 
sk46net/ipv4/tcp_input.csk->lrcvtime = jiffies;
sk47net/ipv4/tcp_input.csk->ato = HZ/3;
sk53net/ipv4/tcp_input.cm = jiffies - sk->lrcvtime;
sk55net/ipv4/tcp_input.csk->lrcvtime = jiffies;
sk60net/ipv4/tcp_input.cif (m > (sk->rtt >> 3)) 
sk62net/ipv4/tcp_input.csk->ato = sk->rtt >> 3;
sk69net/ipv4/tcp_input.csk->ato = (sk->ato >> 1) + m;
sk83net/ipv4/tcp_input.cextern __inline__ void tcp_rtt_estimator(struct sock *sk, struct sk_buff *oskb)
sk97net/ipv4/tcp_input.cm -= (sk->rtt >> 3);    /* m is now error in rtt est */
sk98net/ipv4/tcp_input.csk->rtt += m;           /* rtt = 7/8 rtt + 1/8 new */
sk101net/ipv4/tcp_input.cm -= (sk->mdev >> 2);   /* similar update on mdev */
sk102net/ipv4/tcp_input.csk->mdev += m;        /* mdev = 3/4 mdev + 1/4 new */
sk108net/ipv4/tcp_input.csk->rto = ((sk->rtt >> 2) + sk->mdev) >> 1;
sk109net/ipv4/tcp_input.cif (sk->rto > 120*HZ)
sk110net/ipv4/tcp_input.csk->rto = 120*HZ;
sk111net/ipv4/tcp_input.cif (sk->rto < HZ/5)  /* Was 1*HZ - keep .2 as minimum cos of the BSD delayed acks */
sk112net/ipv4/tcp_input.csk->rto = HZ/5;
sk113net/ipv4/tcp_input.csk->backoff = 0;
sk136net/ipv4/tcp_input.cstruct sock * sk;
sk138net/ipv4/tcp_input.csk = (struct sock *) th_cache_sk;
sk139net/ipv4/tcp_input.cif (!sk || saddr != th_cache_saddr || daddr != th_cache_daddr ||
sk141net/ipv4/tcp_input.csk = get_sock(&tcp_prot, dport, saddr, sport, daddr);
sk142net/ipv4/tcp_input.cif (sk) {
sk147net/ipv4/tcp_input.cth_cache_sk=sk;
sk150net/ipv4/tcp_input.creturn sk;
sk157net/ipv4/tcp_input.cstatic void bad_tcp_sequence(struct sock *sk, struct tcphdr *th, short len,
sk170net/ipv4/tcp_input.cif (sk->state==TCP_SYN_SENT || sk->state==TCP_SYN_RECV) 
sk172net/ipv4/tcp_input.ctcp_send_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl);
sk185net/ipv4/tcp_input.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
sk193net/ipv4/tcp_input.cextern __inline__ int tcp_sequence(struct sock *sk, u32 seq, u32 end_seq)
sk195net/ipv4/tcp_input.cu32 end_window = sk->acked_seq + sk->window;
sk199net/ipv4/tcp_input.c(before(seq, end_window) && !before(end_seq, sk->acked_seq));
sk207net/ipv4/tcp_input.cstatic int tcp_reset(struct sock *sk, struct sk_buff *skb)
sk209net/ipv4/tcp_input.csk->zapped = 1;
sk213net/ipv4/tcp_input.csk->err = ECONNRESET;
sk214net/ipv4/tcp_input.cif (sk->state == TCP_SYN_SENT)
sk215net/ipv4/tcp_input.csk->err = ECONNREFUSED;
sk216net/ipv4/tcp_input.cif (sk->state == TCP_CLOSE_WAIT)
sk217net/ipv4/tcp_input.csk->err = EPIPE;
sk227net/ipv4/tcp_input.cif(sk->state!=TCP_TIME_WAIT)
sk229net/ipv4/tcp_input.ctcp_set_state(sk,TCP_CLOSE);
sk230net/ipv4/tcp_input.csk->shutdown = SHUTDOWN_MASK;
sk233net/ipv4/tcp_input.ctcp_set_state(sk,TCP_CLOSE);
sk234net/ipv4/tcp_input.csk->shutdown = SHUTDOWN_MASK;
sk236net/ipv4/tcp_input.cif (!sk->dead) 
sk237net/ipv4/tcp_input.csk->state_change(sk);
sk254net/ipv4/tcp_input.cstatic void tcp_options(struct sock *sk, struct tcphdr *th)
sk283net/ipv4/tcp_input.csk->mtu=min(sk->mtu,ntohs(*(unsigned short *)ptr));
sk296net/ipv4/tcp_input.csk->mtu=min(sk->mtu, 536);  /* default MSS if none sent */
sk299net/ipv4/tcp_input.csk->mss = min(sk->max_window >> 1, sk->mtu);
sk301net/ipv4/tcp_input.csk->mss = min(sk->max_window, sk->mtu);
sk302net/ipv4/tcp_input.csk->max_unacked = 2 * sk->mss;
sk315net/ipv4/tcp_input.cstatic void tcp_conn_request(struct sock *sk, struct sk_buff *skb,
sk325net/ipv4/tcp_input.cif (!sk->dead) 
sk327net/ipv4/tcp_input.csk->data_ready(sk,0);
sk331net/ipv4/tcp_input.cif(sk->debug)
sk332net/ipv4/tcp_input.cprintk("Reset on %p: Connect on dead socket.\n",sk);
sk333net/ipv4/tcp_input.ctcp_send_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl);
sk347net/ipv4/tcp_input.cif (sk->ack_backlog >= sk->max_ack_backlog) 
sk371net/ipv4/tcp_input.cmemcpy(newsk, sk, sizeof(*newsk));
sk376net/ipv4/tcp_input.csk->opt = (struct options*)kmalloc(sizeof(struct options)+opt->optlen, GFP_ATOMIC);
sk377net/ipv4/tcp_input.cif (!sk->opt) 
sk384net/ipv4/tcp_input.cif (ip_options_echo(sk->opt, opt, daddr, saddr, skb)) 
sk386net/ipv4/tcp_input.ckfree_s(sk->opt, sizeof(struct options)+opt->optlen);
sk414net/ipv4/tcp_input.cnewsk->localroute = sk->localroute;
sk462net/ipv4/tcp_input.cnewsk->ip_ttl=sk->ip_ttl;
sk481net/ipv4/tcp_input.cif (sk->user_mss)
sk482net/ipv4/tcp_input.cnewsk->mtu = sk->user_mss;
sk506net/ipv4/tcp_input.csk->mtu=skip_pick_mtu(sk->mtu,dev);
sk515net/ipv4/tcp_input.ctcp_send_synack(newsk, sk, skb);
sk529net/ipv4/tcp_input.cvoid tcp_window_shrunk(struct sock * sk, u32 window_seq)
sk535net/ipv4/tcp_input.cskb2 = sk->send_head;
sk536net/ipv4/tcp_input.csk->send_head = NULL;
sk537net/ipv4/tcp_input.csk->send_tail = NULL;
sk551net/ipv4/tcp_input.cif (sk->packets_out > 0) 
sk552net/ipv4/tcp_input.csk->packets_out--;
sk560net/ipv4/tcp_input.cskb_queue_head(&sk->write_queue,skb);
sk567net/ipv4/tcp_input.cif (sk->send_head == NULL) 
sk569net/ipv4/tcp_input.csk->send_head = skb;
sk570net/ipv4/tcp_input.csk->send_tail = skb;
sk574net/ipv4/tcp_input.csk->send_tail->link3 = skb;
sk575net/ipv4/tcp_input.csk->send_tail = skb;
sk591net/ipv4/tcp_input.cstatic int tcp_ack(struct sock *sk, struct tcphdr *th, u32 ack, int len)
sk603net/ipv4/tcp_input.cif(sk->zapped)
sk611net/ipv4/tcp_input.cif (sk->ip_xmit_timeout == TIME_KEEPOPEN)
sk612net/ipv4/tcp_input.csk->retransmits = 0;
sk619net/ipv4/tcp_input.cif (after(ack, sk->sent_seq) || before(ack, sk->rcv_ack_seq)) 
sk633net/ipv4/tcp_input.cif (window_seq > sk->max_window) 
sk635net/ipv4/tcp_input.csk->max_window = window_seq;
sk639net/ipv4/tcp_input.csk->mss = min(window_seq>>1, sk->mtu);
sk641net/ipv4/tcp_input.csk->mss = min(window_seq, sk->mtu);
sk649net/ipv4/tcp_input.cif (after(sk->window_seq, window_seq)) {
sk651net/ipv4/tcp_input.ctcp_window_shrunk(sk, window_seq);
sk657net/ipv4/tcp_input.csk->window_seq = window_seq;
sk662net/ipv4/tcp_input.cif (sk->send_tail == NULL || sk->send_head == NULL) 
sk664net/ipv4/tcp_input.csk->send_head = NULL;
sk665net/ipv4/tcp_input.csk->send_tail = NULL;
sk666net/ipv4/tcp_input.csk->packets_out= 0;
sk673net/ipv4/tcp_input.cif (sk->ip_xmit_timeout == TIME_WRITE && 
sk674net/ipv4/tcp_input.csk->cong_window < 2048 && after(ack, sk->rcv_ack_seq)) 
sk686net/ipv4/tcp_input.cif (sk->cong_window < sk->ssthresh)  
sk690net/ipv4/tcp_input.csk->cong_window++;
sk697net/ipv4/tcp_input.cif (sk->cong_count >= sk->cong_window) 
sk699net/ipv4/tcp_input.csk->cong_window++;
sk700net/ipv4/tcp_input.csk->cong_count = 0;
sk703net/ipv4/tcp_input.csk->cong_count++;
sk711net/ipv4/tcp_input.csk->rcv_ack_seq = ack;
sk718net/ipv4/tcp_input.csk->err_soft = 0;
sk726net/ipv4/tcp_input.cif (sk->ip_xmit_timeout == TIME_PROBE0) 
sk728net/ipv4/tcp_input.csk->retransmits = 0;  /* Our probe was answered */
sk734net/ipv4/tcp_input.cif (skb_peek(&sk->write_queue) != NULL &&   /* should always be non-null */
sk735net/ipv4/tcp_input.c! before (sk->window_seq, sk->write_queue.next->end_seq)) 
sk737net/ipv4/tcp_input.csk->backoff = 0;
sk743net/ipv4/tcp_input.csk->rto = ((sk->rtt >> 2) + sk->mdev) >> 1;
sk744net/ipv4/tcp_input.cif (sk->rto > 120*HZ)
sk745net/ipv4/tcp_input.csk->rto = 120*HZ;
sk746net/ipv4/tcp_input.cif (sk->rto < HZ/5)  /* Was 1*HZ, then 1 - turns out we must allow about
sk749net/ipv4/tcp_input.csk->rto = HZ/5;
sk757net/ipv4/tcp_input.cwhile(sk->send_head != NULL) 
sk760net/ipv4/tcp_input.cif (sk->send_head->link3 &&
sk761net/ipv4/tcp_input.cafter(sk->send_head->end_seq, sk->send_head->link3->end_seq)) 
sk769net/ipv4/tcp_input.cif (before(sk->send_head->end_seq, ack+1)) 
sk772net/ipv4/tcp_input.cif (sk->retransmits) 
sk787net/ipv4/tcp_input.cif (sk->send_head->link3)  /* Any more queued retransmits? */
sk788net/ipv4/tcp_input.csk->retransmits = 1;
sk790net/ipv4/tcp_input.csk->retransmits = 0;
sk808net/ipv4/tcp_input.cif (sk->packets_out > 0) 
sk809net/ipv4/tcp_input.csk->packets_out --;
sk811net/ipv4/tcp_input.coskb = sk->send_head;
sk814net/ipv4/tcp_input.ctcp_rtt_estimator(sk,oskb);
sk818net/ipv4/tcp_input.coskb = sk->send_head;
sk820net/ipv4/tcp_input.csk->send_head = oskb->link3;
sk821net/ipv4/tcp_input.cif (sk->send_head == NULL) 
sk823net/ipv4/tcp_input.csk->send_tail = NULL;
sk834net/ipv4/tcp_input.cif (!sk->dead)
sk835net/ipv4/tcp_input.csk->write_space(sk);
sk856net/ipv4/tcp_input.cif (skb_peek(&sk->write_queue) != NULL) 
sk858net/ipv4/tcp_input.cif (after (sk->window_seq+1, sk->write_queue.next->end_seq) &&
sk859net/ipv4/tcp_input.c(sk->retransmits == 0 || 
sk860net/ipv4/tcp_input.csk->ip_xmit_timeout != TIME_WRITE ||
sk861net/ipv4/tcp_input.cbefore(sk->write_queue.next->end_seq, sk->rcv_ack_seq + 1))
sk862net/ipv4/tcp_input.c&& sk->packets_out < sk->cong_window) 
sk868net/ipv4/tcp_input.ctcp_write_xmit(sk);
sk870net/ipv4/tcp_input.celse if (before(sk->window_seq, sk->write_queue.next->end_seq) &&
sk871net/ipv4/tcp_input.csk->send_head == NULL &&
sk872net/ipv4/tcp_input.csk->ack_backlog == 0 &&
sk873net/ipv4/tcp_input.csk->state != TCP_TIME_WAIT) 
sk878net/ipv4/tcp_input.ctcp_reset_xmit_timer(sk, TIME_PROBE0, sk->rto);
sk896net/ipv4/tcp_input.cswitch(sk->state) {
sk902net/ipv4/tcp_input.ctcp_reset_msl_timer(sk, TIME_CLOSE, TCP_TIMEWAIT_LEN);
sk914net/ipv4/tcp_input.cif (sk->send_head || skb_peek(&sk->write_queue) != NULL || sk->ack_backlog) {
sk915net/ipv4/tcp_input.ctcp_reset_xmit_timer(sk, TIME_WRITE, sk->rto);
sk916net/ipv4/tcp_input.c} else if (sk->keepopen) {
sk917net/ipv4/tcp_input.ctcp_reset_xmit_timer(sk, TIME_KEEPOPEN, TCP_TIMEOUT_LEN);
sk919net/ipv4/tcp_input.cdel_timer(&sk->retransmit_timer);
sk920net/ipv4/tcp_input.csk->ip_xmit_timeout = 0;
sk931net/ipv4/tcp_input.cif (sk->packets_out == 0 && sk->partial != NULL &&
sk932net/ipv4/tcp_input.cskb_peek(&sk->write_queue) == NULL && sk->send_head == NULL) 
sk935net/ipv4/tcp_input.ctcp_send_partial(sk);
sk946net/ipv4/tcp_input.cif (sk->state == TCP_LAST_ACK) 
sk948net/ipv4/tcp_input.cif (!sk->dead)
sk949net/ipv4/tcp_input.csk->state_change(sk);
sk950net/ipv4/tcp_input.cif(sk->debug)
sk952net/ipv4/tcp_input.csk->rcv_ack_seq,sk->write_seq,sk->acked_seq,sk->fin_seq);
sk953net/ipv4/tcp_input.cif (sk->rcv_ack_seq == sk->write_seq /*&& sk->acked_seq == sk->fin_seq*/) 
sk956net/ipv4/tcp_input.csk->shutdown = SHUTDOWN_MASK;
sk957net/ipv4/tcp_input.ctcp_set_state(sk,TCP_CLOSE);
sk969net/ipv4/tcp_input.cif (sk->state == TCP_FIN_WAIT1) 
sk972net/ipv4/tcp_input.cif (!sk->dead) 
sk973net/ipv4/tcp_input.csk->state_change(sk);
sk974net/ipv4/tcp_input.cif (sk->rcv_ack_seq == sk->write_seq) 
sk977net/ipv4/tcp_input.csk->shutdown |= SEND_SHUTDOWN;
sk978net/ipv4/tcp_input.ctcp_set_state(sk, TCP_FIN_WAIT2);
sk988net/ipv4/tcp_input.cif (sk->state == TCP_CLOSING) 
sk991net/ipv4/tcp_input.cif (!sk->dead) 
sk992net/ipv4/tcp_input.csk->state_change(sk);
sk993net/ipv4/tcp_input.cif (sk->rcv_ack_seq == sk->write_seq) 
sk996net/ipv4/tcp_input.ctcp_time_wait(sk);
sk1004net/ipv4/tcp_input.cif(sk->state==TCP_SYN_RECV)
sk1006net/ipv4/tcp_input.ctcp_set_state(sk, TCP_ESTABLISHED);
sk1007net/ipv4/tcp_input.ctcp_options(sk,th);
sk1008net/ipv4/tcp_input.csk->dummy_th.dest=th->source;
sk1009net/ipv4/tcp_input.csk->copied_seq = sk->acked_seq;
sk1010net/ipv4/tcp_input.cif(!sk->dead)
sk1011net/ipv4/tcp_input.csk->state_change(sk);
sk1012net/ipv4/tcp_input.cif(sk->max_window==0)
sk1014net/ipv4/tcp_input.csk->max_window=32;  /* Sanity check */
sk1015net/ipv4/tcp_input.csk->mss=min(sk->max_window,sk->mtu);
sk1048net/ipv4/tcp_input.cif (((!flag) || (flag&4)) && sk->send_head != NULL &&
sk1049net/ipv4/tcp_input.c(((flag&2) && sk->retransmits) ||
sk1050net/ipv4/tcp_input.c(sk->send_head->when + sk->rto < jiffies))) 
sk1052net/ipv4/tcp_input.cif(sk->send_head->when + sk->rto < jiffies)
sk1053net/ipv4/tcp_input.ctcp_retransmit(sk,0);  
sk1056net/ipv4/tcp_input.ctcp_do_retransmit(sk, 1);
sk1057net/ipv4/tcp_input.ctcp_reset_xmit_timer(sk, TIME_WRITE, sk->rto);
sk1064net/ipv4/tcp_input.cif(sk->debug)
sk1065net/ipv4/tcp_input.cprintk("Ack ignored %u %u\n",ack,sk->sent_seq);
sk1071net/ipv4/tcp_input.cif (after(ack, sk->sent_seq)) 
sk1080net/ipv4/tcp_input.cif (sk->keepopen) 
sk1082net/ipv4/tcp_input.cif(sk->ip_xmit_timeout==TIME_KEEPOPEN)
sk1083net/ipv4/tcp_input.ctcp_reset_xmit_timer(sk, TIME_KEEPOPEN, TCP_TIMEOUT_LEN);
sk1105net/ipv4/tcp_input.cstatic int tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th)
sk1107net/ipv4/tcp_input.csk->fin_seq = skb->end_seq;
sk1109net/ipv4/tcp_input.cif (!sk->dead) 
sk1111net/ipv4/tcp_input.csk->state_change(sk);
sk1112net/ipv4/tcp_input.csock_wake_async(sk->socket, 1);
sk1115net/ipv4/tcp_input.cswitch(sk->state) 
sk1124net/ipv4/tcp_input.ctcp_set_state(sk,TCP_CLOSE_WAIT);
sk1126net/ipv4/tcp_input.csk->shutdown = SHUTDOWN_MASK;
sk1141net/ipv4/tcp_input.ctcp_reset_msl_timer(sk, TIME_CLOSE, TCP_TIMEWAIT_LEN);
sk1156net/ipv4/tcp_input.cif(sk->ip_xmit_timeout != TIME_WRITE)
sk1157net/ipv4/tcp_input.ctcp_reset_xmit_timer(sk, TIME_WRITE, sk->rto);
sk1158net/ipv4/tcp_input.ctcp_set_state(sk,TCP_CLOSING);
sk1164net/ipv4/tcp_input.ctcp_reset_msl_timer(sk, TIME_CLOSE, TCP_TIMEWAIT_LEN);
sk1165net/ipv4/tcp_input.csk->shutdown|=SHUTDOWN_MASK;
sk1166net/ipv4/tcp_input.ctcp_set_state(sk,TCP_TIME_WAIT);
sk1174net/ipv4/tcp_input.ctcp_set_state(sk,TCP_LAST_ACK);
sk1177net/ipv4/tcp_input.ctcp_reset_msl_timer(sk, TIME_CLOSE, TCP_TIMEWAIT_LEN);
sk1192net/ipv4/tcp_input.cstatic int tcp_data(struct sk_buff *skb, struct sock *sk, 
sk1209net/ipv4/tcp_input.csk->bytes_rcv += skb->len;
sk1218net/ipv4/tcp_input.ctcp_send_ack(sk->sent_seq, sk->acked_seq,sk, th, saddr);
sk1229net/ipv4/tcp_input.cif(sk->shutdown & RCV_SHUTDOWN)
sk1254net/ipv4/tcp_input.cshut_seq = sk->acked_seq+1;  /* Last byte */
sk1258net/ipv4/tcp_input.cif(sk->debug)
sk1260net/ipv4/tcp_input.csk, new_seq, shut_seq, sk->blog);
sk1261net/ipv4/tcp_input.cif(sk->dead)
sk1263net/ipv4/tcp_input.csk->acked_seq = new_seq + th->fin;
sk1264net/ipv4/tcp_input.ctcp_send_reset(sk->saddr, sk->daddr, skb->h.th,
sk1265net/ipv4/tcp_input.csk->prot, NULL, skb->dev, sk->ip_tos, sk->ip_ttl);
sk1267net/ipv4/tcp_input.csk->err = EPIPE;
sk1268net/ipv4/tcp_input.csk->error_report(sk);
sk1269net/ipv4/tcp_input.csk->shutdown = SHUTDOWN_MASK;
sk1270net/ipv4/tcp_input.ctcp_set_state(sk,TCP_CLOSE);
sk1292net/ipv4/tcp_input.cif (skb_peek(&sk->receive_queue) == NULL)   /* Empty queue is easy case */
sk1294net/ipv4/tcp_input.cskb_queue_head(&sk->receive_queue,skb);
sk1299net/ipv4/tcp_input.cfor(skb1=sk->receive_queue.prev; ; skb1 = skb1->prev) 
sk1301net/ipv4/tcp_input.cif(sk->debug)
sk1306net/ipv4/tcp_input.cprintk("copied_seq = %d acked_seq = %d\n", sk->copied_seq,
sk1307net/ipv4/tcp_input.csk->acked_seq);
sk1341net/ipv4/tcp_input.cif (skb1 == skb_peek(&sk->receive_queue))
sk1343net/ipv4/tcp_input.cskb_queue_head(&sk->receive_queue, skb);
sk1353net/ipv4/tcp_input.cif (before(sk->acked_seq, sk->copied_seq)) 
sk1356net/ipv4/tcp_input.csk->acked_seq = sk->copied_seq;
sk1365net/ipv4/tcp_input.cif ((!dup_dumped && (skb1 == NULL || skb1->acked)) || before(skb->seq, sk->acked_seq+1)) 
sk1367net/ipv4/tcp_input.cif (before(skb->seq, sk->acked_seq+1)) 
sk1370net/ipv4/tcp_input.cif (after(skb->end_seq, sk->acked_seq)) 
sk1371net/ipv4/tcp_input.csk->acked_seq = skb->end_seq;
sk1382net/ipv4/tcp_input.ctcp_fin(skb,sk,skb->h.th);
sk1386net/ipv4/tcp_input.cskb2 != (struct sk_buff *)&sk->receive_queue;
sk1389net/ipv4/tcp_input.cif (before(skb2->seq, sk->acked_seq+1)) 
sk1391net/ipv4/tcp_input.cif (after(skb2->end_seq, sk->acked_seq))
sk1392net/ipv4/tcp_input.csk->acked_seq = skb2->end_seq;
sk1401net/ipv4/tcp_input.ctcp_fin(skb,sk,skb->h.th);
sk1408net/ipv4/tcp_input.csk->ack_backlog = sk->max_ack_backlog;
sk1425net/ipv4/tcp_input.cif (!sk->delay_acks ||
sk1427net/ipv4/tcp_input.csk->bytes_rcv > sk->max_unacked || th->fin ||
sk1428net/ipv4/tcp_input.csk->ato > HZ/2 ||
sk1429net/ipv4/tcp_input.ctcp_raise_window(sk)) {
sk1430net/ipv4/tcp_input.ctcp_send_ack(sk->sent_seq, sk->acked_seq,sk,th, saddr);
sk1434net/ipv4/tcp_input.csk->ack_backlog++;
sk1436net/ipv4/tcp_input.cif(sk->debug)        
sk1439net/ipv4/tcp_input.ctcp_reset_xmit_timer(sk, TIME_WRITE, sk->ato);
sk1460net/ipv4/tcp_input.cwhile (sock_rspace(sk) < sk->mtu) 
sk1462net/ipv4/tcp_input.cskb1 = skb_peek(&sk->receive_queue);
sk1481net/ipv4/tcp_input.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
sk1482net/ipv4/tcp_input.csk->ack_backlog++;
sk1483net/ipv4/tcp_input.ctcp_reset_xmit_timer(sk, TIME_WRITE, min(sk->ato, HZ/2));
sk1490net/ipv4/tcp_input.cif (!sk->dead) 
sk1492net/ipv4/tcp_input.cif(sk->debug)
sk1494net/ipv4/tcp_input.csk->data_ready(sk,0);
sk1508net/ipv4/tcp_input.cstatic void tcp_check_urg(struct sock * sk, struct tcphdr * th)
sk1517net/ipv4/tcp_input.cif (after(sk->copied_seq, ptr))
sk1521net/ipv4/tcp_input.cif (sk->urg_data && !after(ptr, sk->urg_seq))
sk1525net/ipv4/tcp_input.cif (sk->proc != 0) {
sk1526net/ipv4/tcp_input.cif (sk->proc > 0) {
sk1527net/ipv4/tcp_input.ckill_proc(sk->proc, SIGURG, 1);
sk1529net/ipv4/tcp_input.ckill_pg(-sk->proc, SIGURG, 1);
sk1532net/ipv4/tcp_input.csk->urg_data = URG_NOTYET;
sk1533net/ipv4/tcp_input.csk->urg_seq = ptr;
sk1540net/ipv4/tcp_input.cstatic inline void tcp_urg(struct sock *sk, struct tcphdr *th, unsigned long len)
sk1547net/ipv4/tcp_input.ctcp_check_urg(sk,th);
sk1553net/ipv4/tcp_input.cif (sk->urg_data == URG_NOTYET) {
sk1559net/ipv4/tcp_input.cptr = sk->urg_seq - ntohl(th->seq) + th->doff*4;
sk1561net/ipv4/tcp_input.csk->urg_data = URG_VALID | *(ptr + (unsigned char *) th);
sk1562net/ipv4/tcp_input.cif (!sk->dead)
sk1563net/ipv4/tcp_input.csk->data_ready(sk,0);
sk1579net/ipv4/tcp_input.cstruct sock *sk;
sk1589net/ipv4/tcp_input.csk = skb->sk;
sk1614net/ipv4/tcp_input.csk = get_tcp_sock(saddr, th->source, daddr, th->dest);
sk1615net/ipv4/tcp_input.cif (!sk)
sk1617net/ipv4/tcp_input.cskb->sk = sk;
sk1629net/ipv4/tcp_input.cif (sk->users) 
sk1631net/ipv4/tcp_input.cskb_queue_tail(&sk->back_log, skb);
sk1645net/ipv4/tcp_input.cif (sk->zapped || sk->state==TCP_CLOSE)
sk1648net/ipv4/tcp_input.cif (!sk->prot) 
sk1659net/ipv4/tcp_input.cskb->sk=sk;
sk1660net/ipv4/tcp_input.csk->rmem_alloc += skb->truesize;
sk1673net/ipv4/tcp_input.cif(sk->state!=TCP_ESTABLISHED)    /* Skip this lot for normal flow */
sk1680net/ipv4/tcp_input.cif(sk->state==TCP_LISTEN)
sk1683net/ipv4/tcp_input.ctcp_send_reset(daddr,saddr,th,sk->prot,opt,dev,sk->ip_tos, sk->ip_ttl);
sk1702net/ipv4/tcp_input.ctcp_conn_request(sk, skb, daddr, saddr, opt, dev, tcp_init_seq());
sk1723net/ipv4/tcp_input.cif (sk->state == TCP_SYN_RECV && th->syn && skb->seq+1 == sk->acked_seq)
sk1735net/ipv4/tcp_input.cif(sk->state==TCP_SYN_SENT)
sk1741net/ipv4/tcp_input.cif(!tcp_ack(sk,th,skb->ack_seq,len))
sk1747net/ipv4/tcp_input.csk->prot, opt,dev,sk->ip_tos,sk->ip_ttl);
sk1752net/ipv4/tcp_input.creturn tcp_reset(sk,skb);
sk1759net/ipv4/tcp_input.csk->prot, opt,dev,sk->ip_tos,sk->ip_ttl);
sk1768net/ipv4/tcp_input.csk->acked_seq = skb->seq+1;
sk1769net/ipv4/tcp_input.csk->lastwin_seq = skb->seq+1;
sk1770net/ipv4/tcp_input.csk->fin_seq = skb->seq;
sk1771net/ipv4/tcp_input.ctcp_send_ack(sk->sent_seq,sk->acked_seq,sk,th,sk->daddr);
sk1772net/ipv4/tcp_input.ctcp_set_state(sk, TCP_ESTABLISHED);
sk1773net/ipv4/tcp_input.ctcp_options(sk,th);
sk1774net/ipv4/tcp_input.csk->dummy_th.dest=th->source;
sk1775net/ipv4/tcp_input.csk->copied_seq = sk->acked_seq;
sk1776net/ipv4/tcp_input.cif(!sk->dead)
sk1778net/ipv4/tcp_input.csk->state_change(sk);
sk1779net/ipv4/tcp_input.csock_wake_async(sk->socket, 0);
sk1781net/ipv4/tcp_input.cif(sk->max_window==0)
sk1783net/ipv4/tcp_input.csk->max_window = 32;
sk1784net/ipv4/tcp_input.csk->mss = min(sk->max_window, sk->mtu);
sk1794net/ipv4/tcp_input.cif(sk->saddr==saddr && sk->daddr==daddr &&
sk1795net/ipv4/tcp_input.csk->dummy_th.source==th->source &&
sk1796net/ipv4/tcp_input.csk->dummy_th.dest==th->dest)
sk1799net/ipv4/tcp_input.creturn tcp_reset(sk,skb);
sk1801net/ipv4/tcp_input.ctcp_set_state(sk,TCP_SYN_RECV);
sk1831net/ipv4/tcp_input.cif (sk->state == TCP_TIME_WAIT && th->syn && sk->dead && 
sk1832net/ipv4/tcp_input.cafter(skb->seq, sk->acked_seq) && !th->rst)
sk1834net/ipv4/tcp_input.cu32 seq = sk->write_seq;
sk1835net/ipv4/tcp_input.cif(sk->debug)
sk1838net/ipv4/tcp_input.csk->rmem_alloc -= skb->truesize;
sk1839net/ipv4/tcp_input.cskb->sk = NULL;
sk1840net/ipv4/tcp_input.csk->err=ECONNRESET;
sk1841net/ipv4/tcp_input.ctcp_set_state(sk, TCP_CLOSE);
sk1842net/ipv4/tcp_input.csk->shutdown = SHUTDOWN_MASK;
sk1843net/ipv4/tcp_input.csk=get_sock(&tcp_prot, th->dest, saddr, th->source, daddr);
sk1845net/ipv4/tcp_input.cif (sk && sk->state==TCP_LISTEN)
sk1847net/ipv4/tcp_input.cskb->sk = sk;
sk1848net/ipv4/tcp_input.csk->rmem_alloc += skb->truesize;
sk1849net/ipv4/tcp_input.ctcp_conn_request(sk, skb, daddr, saddr,opt, dev,seq+128000);
sk1864net/ipv4/tcp_input.cif (!tcp_sequence(sk, skb->seq, skb->end_seq-th->syn))
sk1866net/ipv4/tcp_input.cbad_tcp_sequence(sk, th, len, opt, saddr, dev);
sk1872net/ipv4/tcp_input.creturn tcp_reset(sk,skb);
sk1881net/ipv4/tcp_input.creturn tcp_reset(sk,skb);  
sk1884net/ipv4/tcp_input.ctcp_delack_estimator(sk);
sk1891net/ipv4/tcp_input.cif(th->ack && !tcp_ack(sk,th,skb->ack_seq,len))
sk1897net/ipv4/tcp_input.cif(sk->state==TCP_SYN_RECV)
sk1899net/ipv4/tcp_input.ctcp_send_reset(daddr, saddr, th,sk->prot, opt, dev,sk->ip_tos,sk->ip_ttl);
sk1913net/ipv4/tcp_input.cif (sk->rmem_alloc  >= sk->rcvbuf) 
sk1924net/ipv4/tcp_input.ctcp_urg(sk, th, len);
sk1930net/ipv4/tcp_input.cif(tcp_data(skb,sk, saddr, len))
sk1949net/ipv4/tcp_input.cskb->sk = NULL;
sk31net/ipv4/tcp_output.cvoid tcp_send_skb(struct sock *sk, struct sk_buff *skb)
sk86net/ipv4/tcp_output.cif (after(skb->end_seq, sk->window_seq) ||
sk87net/ipv4/tcp_output.c(sk->retransmits && sk->ip_xmit_timeout == TIME_WRITE) ||
sk88net/ipv4/tcp_output.csk->packets_out >= sk->cong_window) 
sk98net/ipv4/tcp_output.cskb_queue_tail(&sk->write_queue, skb);
sk100net/ipv4/tcp_output.cif (before(sk->window_seq, sk->write_queue.next->end_seq) &&
sk101net/ipv4/tcp_output.csk->send_head == NULL && sk->ack_backlog == 0)
sk102net/ipv4/tcp_output.ctcp_reset_xmit_timer(sk, TIME_PROBE0, sk->rto);
sk110net/ipv4/tcp_output.cth->ack_seq = htonl(sk->acked_seq);
sk111net/ipv4/tcp_output.cth->window = htons(tcp_select_window(sk));
sk113net/ipv4/tcp_output.ctcp_send_check(th, sk->saddr, sk->daddr, size, skb);
sk115net/ipv4/tcp_output.csk->sent_seq = sk->write_seq;
sk123net/ipv4/tcp_output.csk->prot->queue_xmit(sk, skb->dev, skb, 0);
sk126net/ipv4/tcp_output.csk->ack_backlog = 0;
sk127net/ipv4/tcp_output.csk->bytes_rcv = 0;
sk135net/ipv4/tcp_output.ctcp_reset_xmit_timer(sk, TIME_WRITE, sk->rto);
sk148net/ipv4/tcp_output.cstruct sk_buff * tcp_dequeue_partial(struct sock * sk)
sk155net/ipv4/tcp_output.cskb = sk->partial;
sk157net/ipv4/tcp_output.csk->partial = NULL;
sk158net/ipv4/tcp_output.cdel_timer(&sk->partial_timer);
sk168net/ipv4/tcp_output.cvoid tcp_send_partial(struct sock *sk)
sk172net/ipv4/tcp_output.cif (sk == NULL)
sk174net/ipv4/tcp_output.cwhile ((skb = tcp_dequeue_partial(sk)) != NULL)
sk175net/ipv4/tcp_output.ctcp_send_skb(sk, skb);
sk182net/ipv4/tcp_output.cvoid tcp_enqueue_partial(struct sk_buff * skb, struct sock * sk)
sk189net/ipv4/tcp_output.ctmp = sk->partial;
sk191net/ipv4/tcp_output.cdel_timer(&sk->partial_timer);
sk192net/ipv4/tcp_output.csk->partial = skb;
sk193net/ipv4/tcp_output.cinit_timer(&sk->partial_timer);
sk197net/ipv4/tcp_output.csk->partial_timer.expires = jiffies+HZ;
sk198net/ipv4/tcp_output.csk->partial_timer.function = (void (*)(unsigned long)) tcp_send_partial;
sk199net/ipv4/tcp_output.csk->partial_timer.data = (unsigned long) sk;
sk200net/ipv4/tcp_output.cadd_timer(&sk->partial_timer);
sk203net/ipv4/tcp_output.ctcp_send_skb(sk, tmp);
sk212net/ipv4/tcp_output.cvoid tcp_write_xmit(struct sock *sk)
sk221net/ipv4/tcp_output.cif(sk->zapped)
sk232net/ipv4/tcp_output.cwhile((skb = skb_peek(&sk->write_queue)) != NULL &&
sk233net/ipv4/tcp_output.cbefore(skb->end_seq, sk->window_seq + 1) &&
sk234net/ipv4/tcp_output.c(sk->retransmits == 0 ||
sk235net/ipv4/tcp_output.csk->ip_xmit_timeout != TIME_WRITE ||
sk236net/ipv4/tcp_output.cbefore(skb->end_seq, sk->rcv_ack_seq + 1))
sk237net/ipv4/tcp_output.c&& sk->packets_out < sk->cong_window) 
sk246net/ipv4/tcp_output.cif (before(skb->end_seq, sk->rcv_ack_seq +1)) 
sk253net/ipv4/tcp_output.csk->retransmits = 0;
sk255net/ipv4/tcp_output.cif (!sk->dead) 
sk256net/ipv4/tcp_output.csk->write_space(sk);
sk274net/ipv4/tcp_output.cif (size > sk->mtu - sizeof(struct iphdr))
sk281net/ipv4/tcp_output.cth->ack_seq = htonl(sk->acked_seq);
sk282net/ipv4/tcp_output.cth->window = htons(tcp_select_window(sk));
sk284net/ipv4/tcp_output.ctcp_send_check(th, sk->saddr, sk->daddr, size, skb);
sk286net/ipv4/tcp_output.csk->sent_seq = skb->end_seq;
sk292net/ipv4/tcp_output.csk->prot->queue_xmit(sk, skb->dev, skb, skb->free);
sk295net/ipv4/tcp_output.csk->ack_backlog = 0;
sk296net/ipv4/tcp_output.csk->bytes_rcv = 0;
sk302net/ipv4/tcp_output.ctcp_reset_xmit_timer(sk, TIME_WRITE, sk->rto);
sk313net/ipv4/tcp_output.cvoid tcp_do_retransmit(struct sock *sk, int all)
sk321net/ipv4/tcp_output.cprot = sk->prot;
sk322net/ipv4/tcp_output.cskb = sk->send_head;
sk379net/ipv4/tcp_output.crt = ip_check_route(&sk->ip_route_cache, opt->srr?opt->faddr:iph->daddr, skb->localroute);
sk391net/ipv4/tcp_output.cif(skb->sk)
sk393net/ipv4/tcp_output.cskb->sk->err_soft=ENETUNREACH;
sk394net/ipv4/tcp_output.cskb->sk->error_report(skb->sk);
sk431net/ipv4/tcp_output.cth->ack_seq = htonl(sk->acked_seq);
sk432net/ipv4/tcp_output.csk->ack_backlog = 0;
sk433net/ipv4/tcp_output.csk->bytes_rcv = 0;
sk434net/ipv4/tcp_output.cth->window = ntohs(tcp_select_window(sk));
sk435net/ipv4/tcp_output.ctcp_send_check(th, sk->saddr, sk->daddr, size, skb);
sk451net/ipv4/tcp_output.cif (sk && !skb_device_locked(skb))
sk457net/ipv4/tcp_output.cdev_queue_xmit(skb, dev, sk->priority);
sk467net/ipv4/tcp_output.csk->prot->retransmits ++;
sk482net/ipv4/tcp_output.cif (ct >= sk->cong_window)
sk516net/ipv4/tcp_output.cbuff->sk = NULL;
sk568net/ipv4/tcp_output.cvoid tcp_send_fin(struct sock *sk)
sk570net/ipv4/tcp_output.cstruct proto *prot =(struct proto *)sk->prot;
sk571net/ipv4/tcp_output.cstruct tcphdr *th =(struct tcphdr *)&sk->dummy_th;
sk577net/ipv4/tcp_output.cbuff = sock_wmalloc(sk, MAX_RESET_SIZE,1 , GFP_KERNEL);
sk590net/ipv4/tcp_output.cbuff->sk = sk;
sk591net/ipv4/tcp_output.cbuff->localroute = sk->localroute;
sk598net/ipv4/tcp_output.ctmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev,
sk599net/ipv4/tcp_output.cIPPROTO_TCP, sk->opt,
sk600net/ipv4/tcp_output.csizeof(struct tcphdr),sk->ip_tos,sk->ip_ttl,&sk->ip_route_cache);
sk610net/ipv4/tcp_output.csock_wfree(sk,buff);
sk611net/ipv4/tcp_output.csk->write_seq++;
sk612net/ipv4/tcp_output.ct=del_timer(&sk->timer);
sk614net/ipv4/tcp_output.cadd_timer(&sk->timer);
sk616net/ipv4/tcp_output.ctcp_reset_msl_timer(sk, TIME_CLOSE, TCP_TIMEWAIT_LEN);
sk628net/ipv4/tcp_output.cbuff->seq = sk->write_seq;
sk629net/ipv4/tcp_output.csk->write_seq++;
sk630net/ipv4/tcp_output.cbuff->end_seq = sk->write_seq;
sk632net/ipv4/tcp_output.ct1->ack_seq = htonl(sk->acked_seq);
sk633net/ipv4/tcp_output.ct1->window = htons(sk->window=tcp_select_window(sk));
sk635net/ipv4/tcp_output.ctcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), buff);
sk642net/ipv4/tcp_output.cif (skb_peek(&sk->write_queue) != NULL) 
sk650net/ipv4/tcp_output.cskb_queue_tail(&sk->write_queue, buff);
sk654net/ipv4/tcp_output.csk->sent_seq = sk->write_seq;
sk655net/ipv4/tcp_output.csk->prot->queue_xmit(sk, dev, buff, 0);
sk656net/ipv4/tcp_output.ctcp_reset_xmit_timer(sk, TIME_WRITE, sk->rto);
sk661net/ipv4/tcp_output.cvoid tcp_send_synack(struct sock * newsk, struct sock * sk, struct sk_buff * skb)
sk672net/ipv4/tcp_output.csk->err = ENOMEM;
sk679net/ipv4/tcp_output.cbuff->sk = newsk;
sk686net/ipv4/tcp_output.ctmp = sk->prot->build_header(buff, newsk->saddr, newsk->daddr, &ndev,
sk687net/ipv4/tcp_output.cIPPROTO_TCP, NULL, MAX_SYN_SIZE,sk->ip_tos,sk->ip_ttl,&newsk->ip_route_cache);
sk695net/ipv4/tcp_output.csk->err = tmp;
sk699net/ipv4/tcp_output.cskb->sk = sk;
sk734net/ipv4/tcp_output.cskb->sk = newsk;
sk740net/ipv4/tcp_output.csk->rmem_alloc -= skb->truesize;
sk743net/ipv4/tcp_output.cskb_queue_tail(&sk->receive_queue,skb);
sk744net/ipv4/tcp_output.csk->ack_backlog++;
sk753net/ipv4/tcp_output.cstruct sock *sk,
sk761net/ipv4/tcp_output.cif(sk->zapped)
sk769net/ipv4/tcp_output.cbuff = sock_wmalloc(sk, MAX_ACK_SIZE, 1, GFP_ATOMIC);
sk779net/ipv4/tcp_output.csk->ack_backlog++;
sk780net/ipv4/tcp_output.cif (sk->ip_xmit_timeout != TIME_WRITE && tcp_connected(sk->state)) 
sk782net/ipv4/tcp_output.ctcp_reset_xmit_timer(sk, TIME_WRITE, HZ);
sk791net/ipv4/tcp_output.cbuff->sk = sk;
sk792net/ipv4/tcp_output.cbuff->localroute = sk->localroute;
sk799net/ipv4/tcp_output.ctmp = sk->prot->build_header(buff, sk->saddr, daddr, &dev,
sk800net/ipv4/tcp_output.cIPPROTO_TCP, sk->opt, MAX_ACK_SIZE,sk->ip_tos,sk->ip_ttl,&sk->ip_route_cache);
sk804net/ipv4/tcp_output.csock_wfree(sk, buff);
sk809net/ipv4/tcp_output.cmemcpy(t1, &sk->dummy_th, sizeof(*t1));
sk818net/ipv4/tcp_output.csk->window = tcp_select_window(sk);
sk819net/ipv4/tcp_output.ct1->window = ntohs(sk->window);
sk827net/ipv4/tcp_output.cif (ack == sk->acked_seq) {             
sk828net/ipv4/tcp_output.csk->ack_backlog = 0;
sk829net/ipv4/tcp_output.csk->bytes_rcv = 0;
sk830net/ipv4/tcp_output.csk->ack_timed = 0;
sk832net/ipv4/tcp_output.cif (sk->send_head == NULL && skb_peek(&sk->write_queue) == NULL
sk833net/ipv4/tcp_output.c&& sk->ip_xmit_timeout == TIME_WRITE)   
sk834net/ipv4/tcp_output.cif(sk->keepopen) 
sk835net/ipv4/tcp_output.ctcp_reset_xmit_timer(sk,TIME_KEEPOPEN,TCP_TIMEOUT_LEN);
sk837net/ipv4/tcp_output.cdelete_timer(sk);               
sk845net/ipv4/tcp_output.ctcp_send_check(t1, sk->saddr, daddr, sizeof(*t1), buff);
sk846net/ipv4/tcp_output.cif (sk->debug)
sk848net/ipv4/tcp_output.csk->prot->queue_xmit(sk, dev, buff, 1);
sk857net/ipv4/tcp_output.cvoid tcp_write_wakeup(struct sock *sk)
sk864net/ipv4/tcp_output.cif (sk->zapped)
sk873net/ipv4/tcp_output.cif (sk->state != TCP_ESTABLISHED && 
sk874net/ipv4/tcp_output.csk->state != TCP_CLOSE_WAIT &&
sk875net/ipv4/tcp_output.csk->state != TCP_FIN_WAIT1 && 
sk876net/ipv4/tcp_output.csk->state != TCP_LAST_ACK &&
sk877net/ipv4/tcp_output.csk->state != TCP_CLOSING
sk882net/ipv4/tcp_output.cif ( before(sk->sent_seq, sk->window_seq) && 
sk883net/ipv4/tcp_output.c(skb=skb_peek(&sk->write_queue)))
sk903net/ipv4/tcp_output.cwin_size = sk->window_seq - sk->sent_seq;
sk916net/ipv4/tcp_output.cbuff = sock_wmalloc(sk, win_size + th->doff * 4 + 
sk918net/ipv4/tcp_output.csk->prot->max_header + 15, 
sk930net/ipv4/tcp_output.cbuff->sk = sk;
sk931net/ipv4/tcp_output.cbuff->localroute = sk->localroute;
sk937net/ipv4/tcp_output.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
sk938net/ipv4/tcp_output.cIPPROTO_TCP, sk->opt, buff->truesize,
sk939net/ipv4/tcp_output.csk->ip_tos,sk->ip_ttl,&sk->ip_route_cache);
sk942net/ipv4/tcp_output.csock_wfree(sk, buff);
sk961net/ipv4/tcp_output.cnth->ack_seq = htonl(sk->acked_seq);
sk962net/ipv4/tcp_output.cnth->window = htons(tcp_select_window(sk));
sk976net/ipv4/tcp_output.cbuff->end_seq = sk->sent_seq + win_size;
sk977net/ipv4/tcp_output.csk->sent_seq = buff->end_seq;    /* Hack */
sk985net/ipv4/tcp_output.ctcp_send_check(nth, sk->saddr, sk->daddr, 
sk990net/ipv4/tcp_output.cbuff = sock_wmalloc(sk,MAX_ACK_SIZE,1, GFP_ATOMIC);
sk995net/ipv4/tcp_output.cbuff->sk = sk;
sk996net/ipv4/tcp_output.cbuff->localroute = sk->localroute;
sk1003net/ipv4/tcp_output.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
sk1004net/ipv4/tcp_output.cIPPROTO_TCP, sk->opt, MAX_ACK_SIZE,sk->ip_tos,sk->ip_ttl,&sk->ip_route_cache);
sk1007net/ipv4/tcp_output.csock_wfree(sk, buff);
sk1012net/ipv4/tcp_output.cmemcpy(t1,(void *) &sk->dummy_th, sizeof(*t1));
sk1019net/ipv4/tcp_output.ct1->seq = htonl(sk->sent_seq-1);
sk1021net/ipv4/tcp_output.ct1->ack_seq = htonl(sk->acked_seq);
sk1022net/ipv4/tcp_output.ct1->window = htons(tcp_select_window(sk));
sk1023net/ipv4/tcp_output.ctcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), buff);
sk1031net/ipv4/tcp_output.csk->prot->queue_xmit(sk, dev, buff, 1);
sk1039net/ipv4/tcp_output.cvoid tcp_send_probe0(struct sock *sk)
sk1041net/ipv4/tcp_output.cif (sk->zapped)
sk1044net/ipv4/tcp_output.ctcp_write_wakeup(sk);
sk1046net/ipv4/tcp_output.csk->backoff++;
sk1047net/ipv4/tcp_output.csk->rto = min(sk->rto << 1, 120*HZ);
sk1048net/ipv4/tcp_output.csk->retransmits++;
sk1049net/ipv4/tcp_output.csk->prot->retransmits ++;
sk1050net/ipv4/tcp_output.ctcp_reset_xmit_timer (sk, TIME_PROBE0, sk->rto);
sk29net/ipv4/tcp_timer.cvoid tcp_reset_xmit_timer(struct sock *sk, int why, unsigned long when)
sk31net/ipv4/tcp_timer.cdel_timer(&sk->retransmit_timer);
sk32net/ipv4/tcp_timer.csk->ip_xmit_timeout = why;
sk38net/ipv4/tcp_timer.csk->retransmit_timer.expires=jiffies+when;
sk39net/ipv4/tcp_timer.cadd_timer(&sk->retransmit_timer);
sk52net/ipv4/tcp_timer.cstatic void tcp_retransmit_time(struct sock *sk, int all)
sk54net/ipv4/tcp_timer.ctcp_do_retransmit(sk, all);
sk73net/ipv4/tcp_timer.csk->retransmits++;
sk74net/ipv4/tcp_timer.csk->prot->retransmits++;
sk75net/ipv4/tcp_timer.csk->backoff++;
sk76net/ipv4/tcp_timer.csk->rto = min(sk->rto << 1, 120*HZ);
sk77net/ipv4/tcp_timer.ctcp_reset_xmit_timer(sk, TIME_WRITE, sk->rto);
sk90net/ipv4/tcp_timer.cvoid tcp_retransmit(struct sock *sk, int all)
sk94net/ipv4/tcp_timer.ctcp_retransmit_time(sk, all);
sk98net/ipv4/tcp_timer.csk->ssthresh = sk->cong_window >> 1; /* remember window where we lost */
sk100net/ipv4/tcp_timer.csk->cong_count = 0;
sk102net/ipv4/tcp_timer.csk->cong_window = 1;
sk105net/ipv4/tcp_timer.ctcp_retransmit_time(sk, all);
sk112net/ipv4/tcp_timer.cstatic int tcp_write_timeout(struct sock *sk)
sk117net/ipv4/tcp_timer.cif ((sk->state == TCP_ESTABLISHED && sk->retransmits && !(sk->retransmits & 7))
sk118net/ipv4/tcp_timer.c|| (sk->state != TCP_ESTABLISHED && sk->retransmits > TCP_RETR1)) 
sk124net/ipv4/tcp_timer.cip_rt_advice(&sk->ip_route_cache, 0);
sk131net/ipv4/tcp_timer.cif(sk->retransmits > TCP_SYN_RETRIES && sk->state==TCP_SYN_SENT)
sk133net/ipv4/tcp_timer.cif(sk->err_soft)
sk134net/ipv4/tcp_timer.csk->err=sk->err_soft;
sk136net/ipv4/tcp_timer.csk->err=ETIMEDOUT;
sk137net/ipv4/tcp_timer.csk->error_report(sk);
sk138net/ipv4/tcp_timer.cdel_timer(&sk->retransmit_timer);
sk140net/ipv4/tcp_timer.ctcp_set_state(sk,TCP_CLOSE);
sk147net/ipv4/tcp_timer.cif (sk->retransmits > TCP_RETR2) 
sk149net/ipv4/tcp_timer.cif(sk->err_soft)
sk150net/ipv4/tcp_timer.csk->err = sk->err_soft;
sk152net/ipv4/tcp_timer.csk->err = ETIMEDOUT;
sk153net/ipv4/tcp_timer.csk->error_report(sk);
sk154net/ipv4/tcp_timer.cdel_timer(&sk->retransmit_timer);
sk158net/ipv4/tcp_timer.cif (sk->state == TCP_FIN_WAIT1 || sk->state == TCP_FIN_WAIT2 || sk->state == TCP_CLOSING ) 
sk160net/ipv4/tcp_timer.ctcp_set_state(sk,TCP_TIME_WAIT);
sk161net/ipv4/tcp_timer.ctcp_reset_msl_timer (sk, TIME_CLOSE, TCP_TIMEWAIT_LEN);
sk168net/ipv4/tcp_timer.ctcp_set_state(sk, TCP_CLOSE);
sk179net/ipv4/tcp_timer.cstatic void tcp_time_write_timeout(struct sock * sk)
sk186net/ipv4/tcp_timer.cskb = sk->send_head;
sk188net/ipv4/tcp_timer.cif (sk->ack_backlog)
sk189net/ipv4/tcp_timer.ctcp_read_wakeup(sk);
sk198net/ipv4/tcp_timer.cif (jiffies < skb->when + sk->rto) 
sk200net/ipv4/tcp_timer.cif (sk->ack_backlog)
sk201net/ipv4/tcp_timer.ctcp_read_wakeup(sk);
sk202net/ipv4/tcp_timer.ctcp_reset_xmit_timer (sk, TIME_WRITE, skb->when + sk->rto - jiffies);
sk211net/ipv4/tcp_timer.csk->retransmits++;
sk212net/ipv4/tcp_timer.csk->prot->retransmits++;
sk213net/ipv4/tcp_timer.csk->prot->retransmit (sk, 0);
sk214net/ipv4/tcp_timer.ctcp_write_timeout(sk);
sk230net/ipv4/tcp_timer.cstruct sock *sk = (struct sock*)data;
sk231net/ipv4/tcp_timer.cint why = sk->ip_xmit_timeout;
sk237net/ipv4/tcp_timer.cif(sk->zapped)
sk244net/ipv4/tcp_timer.cif (sk->users) 
sk247net/ipv4/tcp_timer.csk->retransmit_timer.expires = jiffies+HZ;
sk248net/ipv4/tcp_timer.cadd_timer(&sk->retransmit_timer);
sk252net/ipv4/tcp_timer.cif (sk->ack_backlog && !sk->dead) 
sk253net/ipv4/tcp_timer.csk->data_ready(sk,0);
sk261net/ipv4/tcp_timer.ctcp_send_probe0(sk);
sk262net/ipv4/tcp_timer.ctcp_write_timeout(sk);
sk267net/ipv4/tcp_timer.ctcp_time_write_timeout(sk);
sk276net/ipv4/tcp_timer.ctcp_reset_xmit_timer (sk, TIME_KEEPOPEN, TCP_TIMEOUT_LEN);
sk278net/ipv4/tcp_timer.cif (sk->prot->write_wakeup)
sk279net/ipv4/tcp_timer.csk->prot->write_wakeup (sk);
sk280net/ipv4/tcp_timer.csk->retransmits++;
sk281net/ipv4/tcp_timer.csk->prot->retransmits++;
sk282net/ipv4/tcp_timer.ctcp_write_timeout(sk);
sk88net/ipv4/timer.cstruct sock *sk = (struct sock*)data;
sk89net/ipv4/timer.cint why = sk->timeout;
sk95net/ipv4/timer.cif (sk->users)
sk97net/ipv4/timer.csk->timer.expires = jiffies+HZ;
sk98net/ipv4/timer.cadd_timer(&sk->timer);
sk105net/ipv4/timer.cif (sk->ack_backlog && !sk->zapped) 
sk107net/ipv4/timer.csk->prot->read_wakeup (sk);
sk108net/ipv4/timer.cif (! sk->dead)
sk109net/ipv4/timer.csk->data_ready(sk,0);
sk118net/ipv4/timer.cif (!sk->dead) {
sk119net/ipv4/timer.creset_timer(sk, TIME_DONE, TCP_DONE_TIME);
sk123net/ipv4/timer.cif (sk->state != TCP_CLOSE) 
sk128net/ipv4/timer.cdestroy_sock (sk);
sk137net/ipv4/timer.cdestroy_sock(sk);
sk142net/ipv4/timer.csk->state = TCP_CLOSE;
sk143net/ipv4/timer.cdelete_timer (sk);
sk144net/ipv4/timer.cif (!sk->dead)
sk145net/ipv4/timer.csk->state_change(sk);
sk146net/ipv4/timer.csk->shutdown = SHUTDOWN_MASK;
sk147net/ipv4/timer.creset_timer (sk, TIME_DONE, TCP_DONE_TIME);
sk138net/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);
sk158net/ipv4/udp.cstruct sock *sk;
sk166net/ipv4/udp.csk = get_sock(&udp_prot, uh->source, daddr, uh->dest, saddr);
sk168net/ipv4/udp.cif (sk == NULL) 
sk173net/ipv4/udp.cif (sk->cong_window > 1) 
sk174net/ipv4/udp.csk->cong_window = sk->cong_window/2;
sk180net/ipv4/udp.csk->err = EPROTO;
sk181net/ipv4/udp.csk->error_report(sk);
sk203net/ipv4/udp.cif(sk->bsdism && sk->state!=TCP_ESTABLISHED)
sk205net/ipv4/udp.csk->err = icmp_err_convert[code].errno;
sk206net/ipv4/udp.csk->error_report(sk);
sk300net/ipv4/udp.cstatic int udp_send(struct sock *sk, struct sockaddr_in *sin,
sk311net/ipv4/udp.cufh.uh.source = sk->dummy_th.source;
sk325net/ipv4/udp.cif(sk->no_check)
sk326net/ipv4/udp.ca = ip_build_xmit(sk, udp_getfrag_nosum, &ufh, ulen, 
sk327net/ipv4/udp.csin->sin_addr.s_addr, saddr, sk->opt, rt, IPPROTO_UDP, noblock);
sk329net/ipv4/udp.ca = ip_build_xmit(sk, udp_getfrag, &ufh, ulen, 
sk330net/ipv4/udp.csin->sin_addr.s_addr, saddr, sk->opt, rt, IPPROTO_UDP, noblock);
sk338net/ipv4/udp.cstatic int udp_sendto(struct sock *sk, const unsigned char *from, int len, int noblock,
sk366net/ipv4/udp.cif (sk->state != TCP_ESTABLISHED) 
sk369net/ipv4/udp.csin.sin_port = sk->dummy_th.dest;
sk370net/ipv4/udp.csin.sin_addr.s_addr = sk->daddr;
sk392net/ipv4/udp.cif(!sk->broadcast && ip_chk_addr(usin->sin_addr.s_addr)==IS_BROADCAST)
sk395net/ipv4/udp.clock_sock(sk);
sk398net/ipv4/udp.ctmp = udp_send(sk, usin, from, len, flags, saddr, noblock);
sk401net/ipv4/udp.crelease_sock(sk);
sk409net/ipv4/udp.cstatic int udp_sendmsg(struct sock *sk, struct msghdr *msg, int len, int noblock, 
sk413net/ipv4/udp.creturn udp_sendto(sk,msg->msg_iov[0].iov_base,len, noblock, flags, msg->msg_name, msg->msg_namelen);
sk433net/ipv4/udp.cerr=udp_sendto(sk,buf,len, noblock, flags, msg->msg_name, msg->msg_namelen);
sk444net/ipv4/udp.cint udp_ioctl(struct sock *sk, int cmd, unsigned long arg)
sk453net/ipv4/udp.cif (sk->state == TCP_LISTEN) return(-EINVAL);
sk454net/ipv4/udp.camount = sock_wspace(sk);
sk468net/ipv4/udp.cif (sk->state == TCP_LISTEN) return(-EINVAL);
sk470net/ipv4/udp.cskb = skb_peek(&sk->receive_queue);
sk499net/ipv4/udp.cint udp_recvmsg(struct sock *sk, struct msghdr *msg, int len,
sk520net/ipv4/udp.cskb=skb_recv_datagram(sk,flags,noblock,&er);
sk532net/ipv4/udp.csk->stamp=skb->stamp;
sk542net/ipv4/udp.cskb_free_datagram(sk, skb);
sk546net/ipv4/udp.cint udp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len)
sk557net/ipv4/udp.cif(!sk->broadcast && ip_chk_addr(usin->sin_addr.s_addr)==IS_BROADCAST)
sk560net/ipv4/udp.crt=ip_rt_route((__u32)usin->sin_addr.s_addr, sk->localroute);
sk563net/ipv4/udp.cif(!sk->saddr)
sk564net/ipv4/udp.csk->saddr = rt->rt_src;    /* Update source address */
sk565net/ipv4/udp.cif(!sk->rcv_saddr)
sk566net/ipv4/udp.csk->rcv_saddr = rt->rt_src;
sk567net/ipv4/udp.csk->daddr = usin->sin_addr.s_addr;
sk568net/ipv4/udp.csk->dummy_th.dest = usin->sin_port;
sk569net/ipv4/udp.csk->state = TCP_ESTABLISHED;
sk571net/ipv4/udp.csk->ip_route_cache = rt;
sk576net/ipv4/udp.cstatic void udp_close(struct sock *sk, unsigned long timeout)
sk578net/ipv4/udp.clock_sock(sk);
sk579net/ipv4/udp.csk->state = TCP_CLOSE;
sk580net/ipv4/udp.cif(uh_cache_sk==sk)
sk582net/ipv4/udp.crelease_sock(sk);
sk583net/ipv4/udp.cdestroy_sock(sk);
sk595net/ipv4/udp.cstruct sock *sk;
sk664net/ipv4/udp.csk=get_sock_mcast(udp_prot.sock_array[ntohs(uh->dest)&(SOCK_ARRAY_SIZE-1)], uh->dest,
sk666net/ipv4/udp.cif(sk)
sk672net/ipv4/udp.csknext=get_sock_mcast(sk->next, uh->dest, saddr, uh->source, daddr);
sk678net/ipv4/udp.cudp_deliver(sk, uh, skb1, dev,saddr,daddr,len);
sk679net/ipv4/udp.csk=sknext;
sk689net/ipv4/udp.csk=(struct sock *)uh_cache_sk;
sk692net/ipv4/udp.csk = get_sock(&udp_prot, uh->dest, saddr, uh->source, daddr);
sk697net/ipv4/udp.cuh_cache_sk=sk;
sk700net/ipv4/udp.cif (sk == NULL) 
sk711net/ipv4/udp.cskb->sk = NULL;
sk715net/ipv4/udp.creturn udp_deliver(sk,uh,skb,dev, saddr, daddr, len);
sk718net/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)
sk720net/ipv4/udp.cskb->sk = sk;
sk739net/ipv4/udp.cif (sock_queue_rcv_skb(sk,skb)<0) 
sk744net/ipv4/udp.cskb->sk = NULL;
sk138net/ipx/af_ipx.cipx_remove_socket(ipx_socket *sk)
sk148net/ipx/af_ipx.cintrfc = sk->protinfo.af_ipx.intrfc;
sk155net/ipx/af_ipx.cif(s==sk) {
sk162net/ipx/af_ipx.cif(s->next==sk) {
sk163net/ipx/af_ipx.cs->next=sk->next;
sk180net/ipx/af_ipx.cipx_destroy_socket(ipx_socket *sk)
sk184net/ipx/af_ipx.cipx_remove_socket(sk);
sk185net/ipx/af_ipx.cwhile((skb=skb_dequeue(&sk->receive_queue))!=NULL) {
sk189net/ipx/af_ipx.ckfree_s(sk,sizeof(*sk));
sk235net/ipx/af_ipx.cipxitf_insert_socket(ipx_interface *intrfc, ipx_socket *sk)
sk239net/ipx/af_ipx.csk->protinfo.af_ipx.intrfc = intrfc;
sk240net/ipx/af_ipx.csk->next = NULL;
sk242net/ipx/af_ipx.cintrfc->if_sklist = sk;
sk246net/ipx/af_ipx.cs->next = sk;
sk594net/ipx/af_ipx.cif(skb->sk)
sk596net/ipx/af_ipx.cskb->sk->wmem_alloc-=skb->truesize;
sk597net/ipx/af_ipx.cskb->sk=NULL;
sk609net/ipx/af_ipx.cif (!send_to_wire && skb->sk)
sk611net/ipx/af_ipx.cskb->sk->wmem_alloc-=skb->truesize;
sk612net/ipx/af_ipx.cskb->sk=NULL;
sk1159net/ipx/af_ipx.cstatic int ipxrtr_route_packet(ipx_socket *sk, struct sockaddr_ipx *usipx, struct iovec *iov, int len)
sk1188net/ipx/af_ipx.cskb=sock_alloc_send_skb(sk, size, 0, 0, &err);
sk1195net/ipx/af_ipx.cskb->sk=sk;
sk1205net/ipx/af_ipx.cipx->ipx_source.net = sk->protinfo.af_ipx.intrfc->if_netnum;
sk1207net/ipx/af_ipx.cmemcpy(ipx->ipx_source.node, sk->protinfo.af_ipx.node, IPX_NODE_LEN);
sk1209net/ipx/af_ipx.cif ((err = ntohs(sk->protinfo.af_ipx.port)) == 0x453 || err == 0x452)  
sk1217net/ipx/af_ipx.cipx->ipx_source.net = sk->protinfo.af_ipx.intrfc->if_netnum;
sk1218net/ipx/af_ipx.cmemcpy(ipx->ipx_source.node, sk->protinfo.af_ipx.intrfc->if_node, IPX_NODE_LEN);
sk1221net/ipx/af_ipx.cipx->ipx_source.sock = sk->protinfo.af_ipx.port;
sk1498net/ipx/af_ipx.cipx_socket *sk;
sk1501net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sk1517net/ipx/af_ipx.csk->protinfo.af_ipx.type=opt;
sk1525net/ipx/af_ipx.creturn sock_setsockopt(sk,level,optname,optval,optlen);
sk1535net/ipx/af_ipx.cipx_socket *sk;
sk1539net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sk1548net/ipx/af_ipx.cval=sk->protinfo.af_ipx.type;
sk1556net/ipx/af_ipx.creturn sock_getsockopt(sk,level,optname,optval,optlen);
sk1576net/ipx/af_ipx.cstatic void def_callback1(struct sock *sk)
sk1578net/ipx/af_ipx.cif(!sk->dead)
sk1579net/ipx/af_ipx.cwake_up_interruptible(sk->sleep);
sk1582net/ipx/af_ipx.cstatic void def_callback2(struct sock *sk, int len)
sk1584net/ipx/af_ipx.cif(!sk->dead)
sk1586net/ipx/af_ipx.cwake_up_interruptible(sk->sleep);
sk1587net/ipx/af_ipx.csock_wake_async(sk->socket, 1);
sk1594net/ipx/af_ipx.cipx_socket *sk;
sk1595net/ipx/af_ipx.csk=(ipx_socket *)kmalloc(sizeof(*sk),GFP_KERNEL);
sk1596net/ipx/af_ipx.cif(sk==NULL)
sk1603net/ipx/af_ipx.ckfree_s((void *)sk,sizeof(*sk));
sk1606net/ipx/af_ipx.csk->dead=0;
sk1607net/ipx/af_ipx.csk->next=NULL;
sk1608net/ipx/af_ipx.csk->broadcast=0;
sk1609net/ipx/af_ipx.csk->rcvbuf=SK_RMEM_MAX;
sk1610net/ipx/af_ipx.csk->sndbuf=SK_WMEM_MAX;
sk1611net/ipx/af_ipx.csk->wmem_alloc=0;
sk1612net/ipx/af_ipx.csk->rmem_alloc=0;
sk1613net/ipx/af_ipx.csk->users=0;
sk1614net/ipx/af_ipx.csk->shutdown=0;
sk1615net/ipx/af_ipx.csk->prot=NULL;  /* So we use default free mechanisms */
sk1616net/ipx/af_ipx.csk->err=0;
sk1617net/ipx/af_ipx.cskb_queue_head_init(&sk->receive_queue);
sk1618net/ipx/af_ipx.cskb_queue_head_init(&sk->write_queue);
sk1619net/ipx/af_ipx.csk->send_head=NULL;
sk1620net/ipx/af_ipx.cskb_queue_head_init(&sk->back_log);
sk1621net/ipx/af_ipx.csk->state=TCP_CLOSE;
sk1622net/ipx/af_ipx.csk->socket=sock;
sk1623net/ipx/af_ipx.csk->type=sock->type;
sk1624net/ipx/af_ipx.csk->protinfo.af_ipx.type=0;    /* General user level IPX */
sk1625net/ipx/af_ipx.csk->debug=0;
sk1626net/ipx/af_ipx.csk->protinfo.af_ipx.intrfc = NULL;
sk1627net/ipx/af_ipx.cmemset(&sk->protinfo.af_ipx.dest_addr,'\0',
sk1628net/ipx/af_ipx.csizeof(sk->protinfo.af_ipx.dest_addr));
sk1629net/ipx/af_ipx.csk->protinfo.af_ipx.port = 0;
sk1630net/ipx/af_ipx.csk->protinfo.af_ipx.ncp_server = 0;
sk1631net/ipx/af_ipx.csk->mtu=IPX_MTU;
sk1635net/ipx/af_ipx.csock->data=(void *)sk;
sk1636net/ipx/af_ipx.csk->sleep=sock->wait;
sk1639net/ipx/af_ipx.csk->state_change=def_callback1;
sk1640net/ipx/af_ipx.csk->data_ready=def_callback2;
sk1641net/ipx/af_ipx.csk->write_space=def_callback1;
sk1642net/ipx/af_ipx.csk->error_report=def_callback1;
sk1644net/ipx/af_ipx.csk->zapped=1;
sk1650net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sk1651net/ipx/af_ipx.cif(sk==NULL)
sk1653net/ipx/af_ipx.cif(!sk->dead)
sk1654net/ipx/af_ipx.csk->state_change(sk);
sk1655net/ipx/af_ipx.csk->dead=1;
sk1657net/ipx/af_ipx.cipx_destroy_socket(sk);
sk1686net/ipx/af_ipx.cipx_socket *sk;
sk1690net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sk1692net/ipx/af_ipx.cif(sk->zapped==0)
sk1711net/ipx/af_ipx.csk->protinfo.af_ipx.port=addr->sipx_port;
sk1728net/ipx/af_ipx.cmemcpy(sk->protinfo.af_ipx.node, intrfc->if_node,
sk1733net/ipx/af_ipx.cmemcpy(sk->protinfo.af_ipx.node, addr->sipx_node, IPX_NODE_LEN);
sk1736net/ipx/af_ipx.csk->protinfo.af_ipx.node, 
sk1737net/ipx/af_ipx.csk->protinfo.af_ipx.port) != NULL)
sk1739net/ipx/af_ipx.cif(sk->debug)
sk1752net/ipx/af_ipx.cmemcpy(sk->protinfo.af_ipx.node, intrfc->if_node, 
sk1756net/ipx/af_ipx.cif(sk->debug)
sk1769net/ipx/af_ipx.cif(sk->debug)
sk1777net/ipx/af_ipx.cipxitf_insert_socket(intrfc, sk);
sk1778net/ipx/af_ipx.csk->zapped=0;
sk1779net/ipx/af_ipx.cif(sk->debug)
sk1787net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sk1790net/ipx/af_ipx.csk->state = TCP_CLOSE;  
sk1797net/ipx/af_ipx.cif(sk->protinfo.af_ipx.port==0)
sk1806net/ipx/af_ipx.cmemcpy(uaddr.sipx_node, sk->protinfo.af_ipx.intrfc->if_node,
sk1816net/ipx/af_ipx.csk->protinfo.af_ipx.dest_addr.net=addr->sipx_network;
sk1817net/ipx/af_ipx.csk->protinfo.af_ipx.dest_addr.sock=addr->sipx_port;
sk1818net/ipx/af_ipx.cmemcpy(sk->protinfo.af_ipx.dest_addr.node,
sk1820net/ipx/af_ipx.csk->protinfo.af_ipx.type=addr->sipx_type;
sk1822net/ipx/af_ipx.csk->state=TCP_ESTABLISHED;
sk1843net/ipx/af_ipx.cipx_socket *sk;
sk1845net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sk1850net/ipx/af_ipx.cif(sk->state!=TCP_ESTABLISHED)
sk1852net/ipx/af_ipx.caddr=&sk->protinfo.af_ipx.dest_addr;
sk1857net/ipx/af_ipx.cif (sk->protinfo.af_ipx.intrfc != NULL) {
sk1858net/ipx/af_ipx.csipx.sipx_network = sk->protinfo.af_ipx.intrfc->if_netnum;
sk1860net/ipx/af_ipx.cmemcpy(sipx.sipx_node, sk->protinfo.af_ipx.node, IPX_NODE_LEN);
sk1863net/ipx/af_ipx.csk->protinfo.af_ipx.intrfc->if_node, IPX_NODE_LEN);
sk1870net/ipx/af_ipx.csipx.sipx_port = sk->protinfo.af_ipx.port;
sk1874net/ipx/af_ipx.csipx.sipx_type = sk->protinfo.af_ipx.type;
sk1979net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sk1984net/ipx/af_ipx.cif (sk->zapped) return -EIO; /* Socket not bound */
sk1989net/ipx/af_ipx.cif(sk->protinfo.af_ipx.port == 0) 
sk1997net/ipx/af_ipx.cmemcpy(uaddr.sipx_node, sk->protinfo.af_ipx.intrfc
sk2012net/ipx/af_ipx.cif(sk->state!=TCP_ESTABLISHED)
sk2016net/ipx/af_ipx.cusipx->sipx_type=sk->protinfo.af_ipx.type;
sk2017net/ipx/af_ipx.cusipx->sipx_port=sk->protinfo.af_ipx.dest_addr.sock;
sk2018net/ipx/af_ipx.cusipx->sipx_network=sk->protinfo.af_ipx.dest_addr.net;
sk2019net/ipx/af_ipx.cmemcpy(usipx->sipx_node,sk->protinfo.af_ipx.dest_addr.node,IPX_NODE_LEN);
sk2022net/ipx/af_ipx.cretval = ipxrtr_route_packet(sk, usipx, msg->msg_iov, len);
sk2032net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sk2040net/ipx/af_ipx.cif(sk->err)
sk2041net/ipx/af_ipx.creturn sock_error(sk);
sk2043net/ipx/af_ipx.cif (sk->zapped)
sk2047net/ipx/af_ipx.cskb=skb_recv_datagram(sk,flags,noblock,&er);
sk2067net/ipx/af_ipx.cskb_free_datagram(sk, skb);
sk2071net/ipx/af_ipx.cstatic int ipx_shutdown(struct socket *sk,int how)
sk2078net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sk2080net/ipx/af_ipx.creturn datagram_select(sk,sel_type,wait);
sk2087net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sk2095net/ipx/af_ipx.camount=sk->sndbuf-sk->wmem_alloc;
sk2104net/ipx/af_ipx.cif((skb=skb_peek(&sk->receive_queue))!=NULL)
sk2132net/ipx/af_ipx.cif (sk)
sk2134net/ipx/af_ipx.cif(sk->stamp.tv_sec==0)
sk2139net/ipx/af_ipx.cmemcpy_tofs((void *)arg,&sk->stamp,sizeof(struct timeval));
sk72net/netrom/af_netrom.cstatic void nr_remove_socket(struct sock *sk)
sk80net/netrom/af_netrom.cif ((s = nr_list) == sk) {
sk87net/netrom/af_netrom.cif (s->next == sk) {
sk88net/netrom/af_netrom.cs->next = sk->next;
sk137net/netrom/af_netrom.cstatic void nr_insert_socket(struct sock *sk)
sk144net/netrom/af_netrom.csk->next = nr_list;
sk145net/netrom/af_netrom.cnr_list  = sk;
sk238net/netrom/af_netrom.cvoid nr_destroy_socket(struct sock *sk)  /* Not static as its used by the timer */
sk246net/netrom/af_netrom.cdel_timer(&sk->timer);
sk248net/netrom/af_netrom.cnr_remove_socket(sk);
sk249net/netrom/af_netrom.cnr_clear_queues(sk);    /* Flush the queues */
sk251net/netrom/af_netrom.cwhile ((skb = skb_dequeue(&sk->receive_queue)) != NULL) {
sk252net/netrom/af_netrom.cif (skb->sk != sk) {      /* A pending connection */
sk253net/netrom/af_netrom.cskb->sk->dead = 1;  /* Queue the unaccepted socket for death */
sk254net/netrom/af_netrom.cnr_set_timer(skb->sk);
sk255net/netrom/af_netrom.cskb->sk->nr->state = NR_STATE_0;
sk261net/netrom/af_netrom.cif (sk->wmem_alloc || sk->rmem_alloc) { /* Defer: outstanding buffers */
sk262net/netrom/af_netrom.cinit_timer(&sk->timer);
sk263net/netrom/af_netrom.csk->timer.expires  = jiffies + 10 * HZ;
sk264net/netrom/af_netrom.csk->timer.function = nr_destroy_timer;
sk265net/netrom/af_netrom.csk->timer.data     = (unsigned long)sk;
sk266net/netrom/af_netrom.cadd_timer(&sk->timer);
sk268net/netrom/af_netrom.ckfree_s(sk->nr, sizeof(*sk->nr));
sk269net/netrom/af_netrom.ckfree_s(sk, sizeof(*sk));
sk288net/netrom/af_netrom.cstruct sock *sk;
sk291net/netrom/af_netrom.csk = (struct sock *)sock->data;
sk294net/netrom/af_netrom.creturn sock_setsockopt(sk, level, optname, optval, optlen);
sk311net/netrom/af_netrom.csk->nr->rtt = (opt * PR_SLOWHZ) / 2;
sk317net/netrom/af_netrom.csk->nr->t2 = opt * PR_SLOWHZ;
sk323net/netrom/af_netrom.csk->nr->n2 = opt;
sk327net/netrom/af_netrom.csk->nr->hdrincl = opt ? 1 : 0;
sk338net/netrom/af_netrom.cstruct sock *sk;
sk342net/netrom/af_netrom.csk = (struct sock *)sock->data;
sk345net/netrom/af_netrom.creturn sock_getsockopt(sk, level, optname, optval, optlen);
sk352net/netrom/af_netrom.cval = (sk->nr->t1 * 2) / PR_SLOWHZ;
sk356net/netrom/af_netrom.cval = sk->nr->t2 / PR_SLOWHZ;
sk360net/netrom/af_netrom.cval = sk->nr->n2;
sk364net/netrom/af_netrom.cval = sk->nr->hdrincl;
sk386net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sk388net/netrom/af_netrom.cif (sk->state != TCP_LISTEN) {
sk389net/netrom/af_netrom.cmemset(&sk->nr->user_addr, '\0', AX25_ADDR_LEN);
sk390net/netrom/af_netrom.csk->max_ack_backlog = backlog;
sk391net/netrom/af_netrom.csk->state           = TCP_LISTEN;
sk398net/netrom/af_netrom.cstatic void def_callback1(struct sock *sk)
sk400net/netrom/af_netrom.cif (!sk->dead)
sk401net/netrom/af_netrom.cwake_up_interruptible(sk->sleep);
sk404net/netrom/af_netrom.cstatic void def_callback2(struct sock *sk, int len)
sk406net/netrom/af_netrom.cif (!sk->dead)
sk407net/netrom/af_netrom.cwake_up_interruptible(sk->sleep);
sk412net/netrom/af_netrom.cstruct sock *sk;
sk418net/netrom/af_netrom.cif ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL)
sk422net/netrom/af_netrom.ckfree_s(sk, sizeof(*sk));
sk426net/netrom/af_netrom.cskb_queue_head_init(&sk->receive_queue);
sk427net/netrom/af_netrom.cskb_queue_head_init(&sk->write_queue);
sk428net/netrom/af_netrom.cskb_queue_head_init(&sk->back_log);
sk430net/netrom/af_netrom.cinit_timer(&sk->timer);
sk432net/netrom/af_netrom.csk->socket        = sock;
sk433net/netrom/af_netrom.csk->type          = sock->type;
sk434net/netrom/af_netrom.csk->protocol      = protocol;
sk435net/netrom/af_netrom.csk->dead          = 0;
sk436net/netrom/af_netrom.csk->next          = NULL;
sk437net/netrom/af_netrom.csk->broadcast     = 0;
sk438net/netrom/af_netrom.csk->allocation    = GFP_KERNEL;
sk439net/netrom/af_netrom.csk->rcvbuf        = SK_RMEM_MAX;
sk440net/netrom/af_netrom.csk->sndbuf        = SK_WMEM_MAX;
sk441net/netrom/af_netrom.csk->wmem_alloc    = 0;
sk442net/netrom/af_netrom.csk->rmem_alloc    = 0;
sk443net/netrom/af_netrom.csk->users         = 0;
sk444net/netrom/af_netrom.csk->debug         = 0;
sk445net/netrom/af_netrom.csk->destroy       = 0;
sk446net/netrom/af_netrom.csk->prot          = NULL;  /* So we use default free mechanisms */
sk447net/netrom/af_netrom.csk->err           = 0;
sk448net/netrom/af_netrom.csk->localroute    = 0;
sk449net/netrom/af_netrom.csk->send_head     = NULL;
sk450net/netrom/af_netrom.csk->state         = TCP_CLOSE;
sk451net/netrom/af_netrom.csk->shutdown      = 0;
sk452net/netrom/af_netrom.csk->priority      = SOPRI_NORMAL;
sk453net/netrom/af_netrom.csk->ack_backlog   = 0;
sk454net/netrom/af_netrom.csk->mtu           = NETROM_MTU;  /* 236 */
sk455net/netrom/af_netrom.csk->zapped        = 1;
sk456net/netrom/af_netrom.csk->window    = nr_default.window;
sk458net/netrom/af_netrom.csk->state_change = def_callback1;
sk459net/netrom/af_netrom.csk->data_ready   = def_callback2;
sk460net/netrom/af_netrom.csk->write_space  = def_callback1;
sk461net/netrom/af_netrom.csk->error_report = def_callback1;
sk464net/netrom/af_netrom.csock->data = (void *)sk;
sk465net/netrom/af_netrom.csk->sleep  = sock->wait;
sk505net/netrom/af_netrom.cnr->sk = sk;
sk506net/netrom/af_netrom.csk->nr = nr;
sk513net/netrom/af_netrom.cstruct sock *sk;
sk519net/netrom/af_netrom.cif ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL)
sk523net/netrom/af_netrom.ckfree_s(sk, sizeof(*sk));
sk527net/netrom/af_netrom.cskb_queue_head_init(&sk->receive_queue);
sk528net/netrom/af_netrom.cskb_queue_head_init(&sk->write_queue);
sk529net/netrom/af_netrom.cskb_queue_head_init(&sk->back_log);
sk531net/netrom/af_netrom.cinit_timer(&sk->timer);
sk533net/netrom/af_netrom.csk->type        = osk->type;
sk534net/netrom/af_netrom.csk->socket      = osk->socket;
sk535net/netrom/af_netrom.csk->dead        = 0;
sk536net/netrom/af_netrom.csk->next        = NULL;
sk537net/netrom/af_netrom.csk->priority    = osk->priority;
sk538net/netrom/af_netrom.csk->broadcast   = 0;
sk539net/netrom/af_netrom.csk->protocol    = osk->protocol;
sk540net/netrom/af_netrom.csk->rcvbuf      = osk->rcvbuf;
sk541net/netrom/af_netrom.csk->sndbuf      = osk->sndbuf;
sk542net/netrom/af_netrom.csk->wmem_alloc  = 0;
sk543net/netrom/af_netrom.csk->rmem_alloc  = 0;
sk544net/netrom/af_netrom.csk->users       = 0;
sk545net/netrom/af_netrom.csk->ack_backlog = 0;
sk546net/netrom/af_netrom.csk->destroy     = 0;
sk547net/netrom/af_netrom.csk->prot        = NULL;  /* So we use default free mechanisms */
sk548net/netrom/af_netrom.csk->err         = 0;
sk549net/netrom/af_netrom.csk->localroute  = 0;
sk550net/netrom/af_netrom.csk->send_head   = NULL;
sk551net/netrom/af_netrom.csk->debug       = osk->debug;
sk552net/netrom/af_netrom.csk->state       = TCP_ESTABLISHED;
sk553net/netrom/af_netrom.csk->window      = osk->window;
sk554net/netrom/af_netrom.csk->shutdown    = 0;
sk555net/netrom/af_netrom.csk->mtu         = osk->mtu;
sk556net/netrom/af_netrom.csk->sleep       = osk->sleep;
sk557net/netrom/af_netrom.csk->zapped      = osk->zapped;
sk559net/netrom/af_netrom.csk->state_change = def_callback1;
sk560net/netrom/af_netrom.csk->data_ready   = def_callback2;
sk561net/netrom/af_netrom.csk->write_space  = def_callback1;
sk562net/netrom/af_netrom.csk->error_report = def_callback1;
sk588net/netrom/af_netrom.csk->nr = nr;
sk589net/netrom/af_netrom.cnr->sk = sk;
sk591net/netrom/af_netrom.creturn sk;
sk596net/netrom/af_netrom.cstruct sock *sk = (struct sock *)oldsock->data;
sk598net/netrom/af_netrom.creturn nr_create(newsock, sk->protocol);
sk603net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sk605net/netrom/af_netrom.cif (sk == NULL) return 0;
sk607net/netrom/af_netrom.cswitch (sk->nr->state) {
sk610net/netrom/af_netrom.csk->state     = TCP_CLOSE;
sk611net/netrom/af_netrom.csk->state_change(sk);
sk612net/netrom/af_netrom.csk->dead      = 1;
sk613net/netrom/af_netrom.cnr_destroy_socket(sk);
sk617net/netrom/af_netrom.csk->nr->state = NR_STATE_0;
sk618net/netrom/af_netrom.csk->state     = TCP_CLOSE;
sk619net/netrom/af_netrom.csk->state_change(sk);
sk620net/netrom/af_netrom.csk->dead      = 1;
sk621net/netrom/af_netrom.cnr_destroy_socket(sk);
sk625net/netrom/af_netrom.cnr_write_internal(sk, NR_DISCACK);
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_clear_queues(sk);
sk635net/netrom/af_netrom.csk->nr->n2count = 0;
sk636net/netrom/af_netrom.cnr_write_internal(sk, NR_DISCREQ);
sk637net/netrom/af_netrom.csk->nr->t1timer = sk->nr->t1 = nr_calculate_t1(sk);
sk638net/netrom/af_netrom.csk->nr->t2timer = 0;
sk639net/netrom/af_netrom.csk->nr->t4timer = 0;
sk640net/netrom/af_netrom.csk->nr->state   = NR_STATE_2;
sk641net/netrom/af_netrom.csk->state       = TCP_CLOSE;
sk642net/netrom/af_netrom.csk->state_change(sk);
sk643net/netrom/af_netrom.csk->dead        = 1;
sk644net/netrom/af_netrom.csk->destroy     = 1;
sk652net/netrom/af_netrom.csk->socket = NULL;  /* Not used, but we should do this. **/
sk659net/netrom/af_netrom.cstruct sock *sk;
sk664net/netrom/af_netrom.csk = (struct sock *)sock->data;
sk666net/netrom/af_netrom.cif (sk->zapped == 0)
sk673net/netrom/af_netrom.cif (sk->debug)
sk684net/netrom/af_netrom.csk->nr->user_addr   = addr->fsa_digipeater[0];
sk685net/netrom/af_netrom.csk->nr->source_addr = addr->fsa_ax25.sax25_call;
sk695net/netrom/af_netrom.csk->nr->user_addr   = *user;
sk696net/netrom/af_netrom.csk->nr->source_addr = *source;
sk699net/netrom/af_netrom.csk->nr->device = dev;
sk700net/netrom/af_netrom.cnr_insert_socket(sk);
sk702net/netrom/af_netrom.csk->zapped = 0;
sk704net/netrom/af_netrom.cif (sk->debug)
sk713net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sk718net/netrom/af_netrom.cif (sk->state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) {
sk723net/netrom/af_netrom.cif (sk->state == TCP_CLOSE && sock->state == SS_CONNECTING) {
sk728net/netrom/af_netrom.cif (sk->state == TCP_ESTABLISHED)
sk731net/netrom/af_netrom.csk->state   = TCP_CLOSE;  
sk737net/netrom/af_netrom.cif (sk->zapped) {  /* Must bind first - autobinding in this may or may not work */
sk738net/netrom/af_netrom.csk->zapped = 0;
sk751net/netrom/af_netrom.csk->nr->user_addr   = *user;
sk752net/netrom/af_netrom.csk->nr->source_addr = *source;
sk753net/netrom/af_netrom.csk->nr->device      = dev;
sk755net/netrom/af_netrom.cnr_insert_socket(sk);    /* Finish the bind */
sk758net/netrom/af_netrom.csk->nr->dest_addr = addr->sax25_call;
sk763net/netrom/af_netrom.csk->nr->my_index = circuit / 256;
sk764net/netrom/af_netrom.csk->nr->my_id    = circuit % 256;
sk770net/netrom/af_netrom.csk->state     = TCP_SYN_SENT;
sk771net/netrom/af_netrom.cnr_establish_data_link(sk);
sk772net/netrom/af_netrom.csk->nr->state = NR_STATE_1;
sk773net/netrom/af_netrom.cnr_set_timer(sk);
sk776net/netrom/af_netrom.cif (sk->state != TCP_ESTABLISHED && (flags & O_NONBLOCK))
sk784net/netrom/af_netrom.cwhile (sk->state == TCP_SYN_SENT) {
sk785net/netrom/af_netrom.cinterruptible_sleep_on(sk->sleep);
sk792net/netrom/af_netrom.cif (sk->state != TCP_ESTABLISHED) {
sk795net/netrom/af_netrom.creturn sock_error(sk);  /* Always set at this point */
sk812net/netrom/af_netrom.cstruct sock *sk;
sk821net/netrom/af_netrom.csk = (struct sock *)sock->data;
sk823net/netrom/af_netrom.cif (sk->type != SOCK_SEQPACKET)
sk826net/netrom/af_netrom.cif (sk->state != TCP_LISTEN)
sk835net/netrom/af_netrom.cif ((skb = skb_dequeue(&sk->receive_queue)) == NULL) {
sk840net/netrom/af_netrom.cinterruptible_sleep_on(sk->sleep);
sk848net/netrom/af_netrom.cnewsk = skb->sk;
sk853net/netrom/af_netrom.cskb->sk = NULL;
sk855net/netrom/af_netrom.csk->ack_backlog--;
sk865net/netrom/af_netrom.cstruct sock *sk;
sk867net/netrom/af_netrom.csk = (struct sock *)sock->data;
sk870net/netrom/af_netrom.cif (sk->state != TCP_ESTABLISHED)
sk874net/netrom/af_netrom.csax->fsa_ax25.sax25_call = sk->nr->user_addr;
sk875net/netrom/af_netrom.csax->fsa_digipeater[0]   = sk->nr->dest_addr;
sk880net/netrom/af_netrom.csax->fsa_ax25.sax25_call   = sk->nr->source_addr;
sk889net/netrom/af_netrom.cstruct sock *sk;
sk896net/netrom/af_netrom.cskb->sk = NULL;    /* Initially we don't know who its for */
sk925net/netrom/af_netrom.cif (((frametype & 0x0F) != NR_CONNREQ && (sk = nr_find_socket(circuit_index, circuit_id)) != NULL) ||
sk926net/netrom/af_netrom.c((frametype & 0x0F) == NR_CONNREQ && (sk = nr_find_peer(circuit_index, circuit_id)) != NULL)) {
sk930net/netrom/af_netrom.csk->nr->bpqext = 1;
sk932net/netrom/af_netrom.csk->nr->bpqext = 0;
sk934net/netrom/af_netrom.creturn nr_process_rx_frame(sk, skb);
sk940net/netrom/af_netrom.csk = nr_find_listener(dest);
sk944net/netrom/af_netrom.cif (sk == NULL || sk->ack_backlog == sk->max_ack_backlog || (make = nr_make_new(sk)) == NULL) {
sk951net/netrom/af_netrom.cskb->sk             = make;
sk989net/netrom/af_netrom.csk->ack_backlog++;
sk990net/netrom/af_netrom.cmake->pair = sk;
sk994net/netrom/af_netrom.cskb_queue_head(&sk->receive_queue, skb);
sk998net/netrom/af_netrom.cif (!sk->dead)
sk999net/netrom/af_netrom.csk->data_ready(sk, skb->len);
sk1006net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sk1014net/netrom/af_netrom.cif (sk->err)
sk1015net/netrom/af_netrom.creturn sock_error(sk);
sk1020net/netrom/af_netrom.cif (sk->zapped)
sk1023net/netrom/af_netrom.cif (sk->nr->device == NULL)
sk1030net/netrom/af_netrom.cif (ax25cmp(&sk->nr->dest_addr, &sax.sax25_call) != 0)
sk1035net/netrom/af_netrom.cif (sk->state != TCP_ESTABLISHED)
sk1038net/netrom/af_netrom.csax.sax25_call   = sk->nr->dest_addr;
sk1041net/netrom/af_netrom.cif (sk->debug)
sk1045net/netrom/af_netrom.cif (sk->debug)
sk1050net/netrom/af_netrom.cif ((skb = sock_alloc_send_skb(sk, size, 0, 0, &err)) == NULL)
sk1053net/netrom/af_netrom.cskb->sk   = sk;
sk1065net/netrom/af_netrom.cif (sk->debug)
sk1070net/netrom/af_netrom.c*asmptr++ = sk->nr->your_index;
sk1071net/netrom/af_netrom.c*asmptr++ = sk->nr->your_id;
sk1076net/netrom/af_netrom.cif (sk->debug)
sk1087net/netrom/af_netrom.cif (sk->debug)
sk1093net/netrom/af_netrom.cif (sk->debug)
sk1096net/netrom/af_netrom.cif (sk->state != TCP_ESTABLISHED) {
sk1101net/netrom/af_netrom.cnr_output(sk, skb);  /* Shove it onto the queue */
sk1110net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sk1116net/netrom/af_netrom.cif (sk->err)
sk1117net/netrom/af_netrom.creturn sock_error(sk);
sk1126net/netrom/af_netrom.cif (sk->state != TCP_ESTABLISHED)
sk1130net/netrom/af_netrom.cif ((skb = skb_recv_datagram(sk, flags, noblock, &er)) == NULL)
sk1133net/netrom/af_netrom.cif (!sk->nr->hdrincl) {
sk1152net/netrom/af_netrom.cskb_free_datagram(sk, skb);
sk1157net/netrom/af_netrom.cstatic int nr_shutdown(struct socket *sk, int how)
sk1164net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sk1166net/netrom/af_netrom.creturn datagram_select(sk, sel_type, wait);
sk1171net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sk1179net/netrom/af_netrom.camount = sk->sndbuf - sk->wmem_alloc;
sk1188net/netrom/af_netrom.cif ((skb = skb_peek(&sk->receive_queue)) != NULL)
sk1197net/netrom/af_netrom.cif (sk != NULL) {
sk1198net/netrom/af_netrom.cif (sk->stamp.tv_sec==0)
sk1202net/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, AX25_ADDR_LEN);
sk217net/netrom/nr_out.cmemcpy(dptr, &sk->nr->dest_addr, AX25_ADDR_LEN);
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, AX25_ADDR_LEN);
sk200net/netrom/nr_subr.cmemcpy(dptr, &sk->nr->source_addr, AX25_ADDR_LEN);
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);
sk89net/unix/af_unix.cstatic void unix_remove_socket(unix_socket *sk)
sk98net/unix/af_unix.cif(*s==sk)
sk100net/unix/af_unix.c*s=sk->next;
sk109net/unix/af_unix.cstatic void unix_insert_socket(unix_socket *sk)
sk112net/unix/af_unix.csk->next=unix_socket_list;
sk113net/unix/af_unix.cunix_socket_list=sk;
sk141net/unix/af_unix.cunix_socket *sk=(unix_socket *)data;
sk142net/unix/af_unix.cif(sk->protinfo.af_unix.locks==0 && sk->wmem_alloc==0)
sk144net/unix/af_unix.cif(sk->protinfo.af_unix.name)
sk145net/unix/af_unix.ckfree(sk->protinfo.af_unix.name);
sk146net/unix/af_unix.ckfree_s(sk,sizeof(*sk));
sk154net/unix/af_unix.csk->timer.expires=jiffies+10*HZ;  /* No real hurry try it every 10 seconds or so */
sk155net/unix/af_unix.cadd_timer(&sk->timer);
sk159net/unix/af_unix.cstatic void unix_delayed_delete(unix_socket *sk)
sk161net/unix/af_unix.csk->timer.data=(unsigned long)sk;
sk162net/unix/af_unix.csk->timer.expires=jiffies+HZ;    /* Normally 1 second after will clean up. After that we try every 10 */
sk163net/unix/af_unix.csk->timer.function=unix_destroy_timer;
sk164net/unix/af_unix.cadd_timer(&sk->timer);
sk167net/unix/af_unix.cstatic void unix_destroy_socket(unix_socket *sk)
sk170net/unix/af_unix.cunix_remove_socket(sk);
sk172net/unix/af_unix.cwhile((skb=skb_dequeue(&sk->receive_queue))!=NULL)
sk174net/unix/af_unix.cif(sk->state==TCP_LISTEN)
sk176net/unix/af_unix.cunix_socket *osk=skb->sk;
sk189net/unix/af_unix.cif(sk->protinfo.af_unix.inode!=NULL)
sk191net/unix/af_unix.ciput(sk->protinfo.af_unix.inode);
sk192net/unix/af_unix.csk->protinfo.af_unix.inode=NULL;
sk195net/unix/af_unix.cif(--sk->protinfo.af_unix.locks==0 && sk->wmem_alloc==0)
sk197net/unix/af_unix.cif(sk->protinfo.af_unix.name)
sk198net/unix/af_unix.ckfree(sk->protinfo.af_unix.name);
sk199net/unix/af_unix.ckfree_s(sk,sizeof(*sk));
sk203net/unix/af_unix.csk->dead=1;
sk204net/unix/af_unix.cunix_delayed_delete(sk);  /* Try every so often until buffers are all freed */
sk223net/unix/af_unix.cunix_socket *sk=sock->data;
sk226net/unix/af_unix.creturn sock_setsockopt(sk,level,optname,optval,optlen);  
sk231net/unix/af_unix.cunix_socket *sk=sock->data;
sk234net/unix/af_unix.creturn sock_getsockopt(sk,level,optname,optval,optlen);
sk239net/unix/af_unix.cunix_socket *sk=sock->data;
sk240net/unix/af_unix.cif(sk->type!=SOCK_STREAM)
sk242net/unix/af_unix.cif(sk->protinfo.af_unix.name==NULL)
sk244net/unix/af_unix.csk->max_ack_backlog=backlog;
sk245net/unix/af_unix.csk->state=TCP_LISTEN;
sk249net/unix/af_unix.cstatic void def_callback1(struct sock *sk)
sk251net/unix/af_unix.cif(!sk->dead)
sk252net/unix/af_unix.cwake_up_interruptible(sk->sleep);
sk255net/unix/af_unix.cstatic void def_callback2(struct sock *sk, int len)
sk257net/unix/af_unix.cif(!sk->dead)
sk259net/unix/af_unix.cwake_up_interruptible(sk->sleep);
sk260net/unix/af_unix.csock_wake_async(sk->socket, 1);
sk264net/unix/af_unix.cstatic void def_callback3(struct sock *sk)
sk266net/unix/af_unix.cif(!sk->dead)
sk268net/unix/af_unix.cwake_up_interruptible(sk->sleep);
sk269net/unix/af_unix.csock_wake_async(sk->socket, 2);
sk275net/unix/af_unix.cunix_socket *sk;
sk279net/unix/af_unix.csk=(unix_socket *)kmalloc(sizeof(*sk),GFP_KERNEL);
sk280net/unix/af_unix.cif(sk==NULL)
sk295net/unix/af_unix.ckfree_s(sk,sizeof(*sk));
sk298net/unix/af_unix.csk->type=sock->type;
sk299net/unix/af_unix.cinit_timer(&sk->timer);
sk300net/unix/af_unix.cskb_queue_head_init(&sk->write_queue);
sk301net/unix/af_unix.cskb_queue_head_init(&sk->receive_queue);
sk302net/unix/af_unix.cskb_queue_head_init(&sk->back_log);
sk303net/unix/af_unix.csk->protinfo.af_unix.family=AF_UNIX;
sk304net/unix/af_unix.csk->protinfo.af_unix.inode=NULL;
sk305net/unix/af_unix.csk->protinfo.af_unix.locks=1;    /* Us */
sk306net/unix/af_unix.csk->protinfo.af_unix.readsem=MUTEX;  /* single task reading lock */
sk307net/unix/af_unix.csk->protinfo.af_unix.name=NULL;
sk308net/unix/af_unix.csk->protinfo.af_unix.other=NULL;
sk309net/unix/af_unix.csk->protocol=0;
sk310net/unix/af_unix.csk->rmem_alloc=0;
sk311net/unix/af_unix.csk->wmem_alloc=0;
sk312net/unix/af_unix.csk->dead=0;
sk313net/unix/af_unix.csk->next=NULL;
sk314net/unix/af_unix.csk->broadcast=0;
sk315net/unix/af_unix.csk->rcvbuf=SK_RMEM_MAX;
sk316net/unix/af_unix.csk->sndbuf=SK_WMEM_MAX;
sk317net/unix/af_unix.csk->allocation=GFP_KERNEL;
sk318net/unix/af_unix.csk->users=0;
sk319net/unix/af_unix.csk->bsdism=0;
sk320net/unix/af_unix.csk->debug=0;
sk321net/unix/af_unix.csk->prot=NULL;
sk322net/unix/af_unix.csk->err=0;
sk323net/unix/af_unix.csk->localroute=0;
sk324net/unix/af_unix.csk->send_head=NULL;
sk325net/unix/af_unix.csk->state=TCP_CLOSE;
sk326net/unix/af_unix.csk->priority=SOPRI_NORMAL;
sk327net/unix/af_unix.csk->ack_backlog=0;
sk328net/unix/af_unix.csk->shutdown=0;
sk329net/unix/af_unix.csk->state_change=def_callback1;
sk330net/unix/af_unix.csk->data_ready=def_callback2;
sk331net/unix/af_unix.csk->write_space=def_callback3;
sk332net/unix/af_unix.csk->error_report=def_callback1;
sk333net/unix/af_unix.csk->mtu=4096;
sk334net/unix/af_unix.csk->socket=sock;
sk335net/unix/af_unix.csock->data=(void *)sk;
sk336net/unix/af_unix.csk->sleep=sock->wait;
sk337net/unix/af_unix.csk->zapped=0;
sk338net/unix/af_unix.cunix_insert_socket(sk);
sk349net/unix/af_unix.cunix_socket *sk=sock->data;
sk354net/unix/af_unix.cif(sk==NULL)
sk357net/unix/af_unix.csk->state_change(sk);
sk358net/unix/af_unix.csk->dead=1;
sk359net/unix/af_unix.cskpair=(unix_socket *)sk->protinfo.af_unix.other;  /* Person we send to (default) */
sk360net/unix/af_unix.cif(sk->type==SOCK_STREAM && skpair!=NULL && skpair->state!=TCP_LISTEN)
sk367net/unix/af_unix.csk->protinfo.af_unix.other=NULL;    /* No pair */
sk368net/unix/af_unix.cunix_destroy_socket(sk);      /* Try and flush out this socket. Throw our buffers at least */
sk409net/unix/af_unix.cunix_socket *sk=sock->data;
sk413net/unix/af_unix.cif(sk->protinfo.af_unix.name)
sk422net/unix/af_unix.cif(sk->protinfo.af_unix.inode!=NULL)
sk425net/unix/af_unix.csk->protinfo.af_unix.name=kmalloc(addr_len+1, GFP_KERNEL);
sk426net/unix/af_unix.cif(sk->protinfo.af_unix.name==NULL)
sk428net/unix/af_unix.cmemcpy(sk->protinfo.af_unix.name, sunaddr->sun_path, addr_len+1);
sk433net/unix/af_unix.cerr=do_mknod(sk->protinfo.af_unix.name,S_IFSOCK|S_IRWXUGO,0);
sk435net/unix/af_unix.cerr=open_namei(sk->protinfo.af_unix.name, 2, S_IFSOCK, &sk->protinfo.af_unix.inode, NULL);
sk441net/unix/af_unix.ckfree_s(sk->protinfo.af_unix.name,addr_len+1);
sk442net/unix/af_unix.csk->protinfo.af_unix.name=NULL;
sk455net/unix/af_unix.cunix_socket *sk=sock->data;
sk461net/unix/af_unix.cif(sk->type==SOCK_STREAM && sk->protinfo.af_unix.other)
sk463net/unix/af_unix.cif(sock->state==SS_CONNECTING && sk->state==TCP_ESTABLISHED)
sk468net/unix/af_unix.cif(sock->state==SS_CONNECTING && sk->state == TCP_CLOSE)
sk487net/unix/af_unix.cif(sk->type==SOCK_DGRAM)
sk489net/unix/af_unix.cif(sk->protinfo.af_unix.other)
sk491net/unix/af_unix.csk->protinfo.af_unix.other->protinfo.af_unix.locks--;
sk492net/unix/af_unix.csk->protinfo.af_unix.other=NULL;
sk498net/unix/af_unix.cif(other->type!=sk->type)
sk501net/unix/af_unix.csk->protinfo.af_unix.other=other;
sk503net/unix/af_unix.csk->state=TCP_ESTABLISHED;
sk514net/unix/af_unix.cskb=sock_alloc_send_skb(sk, 0, 0, 0, &err); /* Marker object */
sk517net/unix/af_unix.cskb->sk=sk;        /* So they know it is us */
sk519net/unix/af_unix.csk->state=TCP_CLOSE;
sk527net/unix/af_unix.cif(other->type!=sk->type)
sk534net/unix/af_unix.csk->protinfo.af_unix.other=other;
sk536net/unix/af_unix.csk->state=TCP_SYN_SENT;
sk546net/unix/af_unix.cwhile(sk->state==TCP_SYN_SENT)
sk553net/unix/af_unix.cinterruptible_sleep_on(sk->sleep);
sk565net/unix/af_unix.cif(sk->state==TCP_CLOSE)
sk567net/unix/af_unix.csk->protinfo.af_unix.other->protinfo.af_unix.locks--;
sk568net/unix/af_unix.csk->protinfo.af_unix.other=NULL;
sk603net/unix/af_unix.cunix_socket *sk=sock->data;
sk607net/unix/af_unix.cif(sk->type!=SOCK_STREAM)
sk611net/unix/af_unix.cif(sk->state!=TCP_LISTEN)
sk617net/unix/af_unix.cif(sk->protinfo.af_unix.name!=NULL)
sk619net/unix/af_unix.cnewsk->protinfo.af_unix.name=kmalloc(strlen(sk->protinfo.af_unix.name)+1, GFP_KERNEL);
sk622net/unix/af_unix.cstrcpy(newsk->protinfo.af_unix.name, sk->protinfo.af_unix.name);
sk628net/unix/af_unix.cskb=skb_dequeue(&sk->receive_queue);
sk636net/unix/af_unix.cinterruptible_sleep_on(sk->sleep);
sk646net/unix/af_unix.ctsk=skb->sk;
sk648net/unix/af_unix.csk->ack_backlog--;
sk654net/unix/af_unix.csk->protinfo.af_unix.locks--;  /* Locked to child socket not master */
sk664net/unix/af_unix.cunix_socket *sk=sock->data;
sk669net/unix/af_unix.cif(sk->protinfo.af_unix.other==NULL)
sk671net/unix/af_unix.csk=sk->protinfo.af_unix.other;
sk674net/unix/af_unix.cif(sk->protinfo.af_unix.name==NULL)
sk680net/unix/af_unix.c*uaddr_len=sizeof(sunaddr->sun_family)+strlen(sk->protinfo.af_unix.name)+1;
sk681net/unix/af_unix.cstrcpy(sunaddr->sun_path,sk->protinfo.af_unix.name);    /* 108 byte limited */
sk690net/unix/af_unix.cunix_socket *sk=sock->data;
sk700net/unix/af_unix.cif(sk->err)
sk701net/unix/af_unix.creturn sock_error(sk);
sk713net/unix/af_unix.cif(sk->state==TCP_ESTABLISHED)
sk722net/unix/af_unix.cif(sk->protinfo.af_unix.other==NULL)
sk756net/unix/af_unix.cif(size>(sk->sndbuf-sizeof(struct sk_buff))/2)  /* Keep two messages in the pipe so it schedules better */
sk760net/unix/af_unix.csize=(sk->sndbuf-sizeof(struct sk_buff))/2;
sk777net/unix/af_unix.cskb=sock_alloc_send_skb(sk,size,limit,nonblock, &err);
sk783net/unix/af_unix.csk->err=-err;
sk790net/unix/af_unix.cskb->sk=sk;
sk798net/unix/af_unix.cother=sk->protinfo.af_unix.other;
sk802net/unix/af_unix.csk->protinfo.af_unix.other=NULL;
sk846net/unix/af_unix.cstatic void unix_data_wait(unix_socket * sk)
sk849net/unix/af_unix.cif (!skb_peek(&sk->receive_queue)) {
sk850net/unix/af_unix.csk->socket->flags |= SO_WAITDATA;
sk851net/unix/af_unix.cinterruptible_sleep_on(sk->sleep);
sk852net/unix/af_unix.csk->socket->flags &= ~SO_WAITDATA;
sk889net/unix/af_unix.cunix_socket *sk=sock->data;
sk906net/unix/af_unix.cif(sk->err)
sk907net/unix/af_unix.creturn sock_error(sk);
sk909net/unix/af_unix.cdown(&sk->protinfo.af_unix.readsem);    /* Lock the socket */
sk923net/unix/af_unix.cskb=skb_dequeue(&sk->receive_queue);
sk926net/unix/af_unix.cup(&sk->protinfo.af_unix.readsem);
sk927net/unix/af_unix.cif(sk->shutdown & RCV_SHUTDOWN)
sk935net/unix/af_unix.cunix_data_wait(sk);
sk936net/unix/af_unix.cdown(&sk->protinfo.af_unix.readsem);
sk942net/unix/af_unix.cif(skb->sk->protinfo.af_unix.name)
sk944net/unix/af_unix.cmemcpy(sunaddr->sun_path, skb->sk->protinfo.af_unix.name, 108);
sk969net/unix/af_unix.cskb_queue_head(&sk->receive_queue, skb);
sk978net/unix/af_unix.cup(&sk->protinfo.af_unix.readsem);
sk984net/unix/af_unix.cunix_socket *sk=(unix_socket *)sock->data;
sk985net/unix/af_unix.cunix_socket *other=sk->protinfo.af_unix.other;
sk988net/unix/af_unix.csk->shutdown|=SEND_SHUTDOWN;
sk989net/unix/af_unix.csk->state_change(sk);
sk996net/unix/af_unix.cother=sk->protinfo.af_unix.other;
sk999net/unix/af_unix.csk->shutdown|=RCV_SHUTDOWN;
sk1000net/unix/af_unix.csk->state_change(sk);
sk1018net/unix/af_unix.cunix_socket *sk=sock->data;
sk1029net/unix/af_unix.camount=sk->sndbuf-sk->wmem_alloc;
sk1037net/unix/af_unix.cif(sk->state==TCP_LISTEN)
sk1040net/unix/af_unix.cif((skb=skb_peek(&sk->receive_queue))!=NULL)