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)
sk133fs/ncpfs/sock.cstruct sock   *sk;
sk154fs/ncpfs/sock.csk   = (struct sock *)(sock->data);
sk156fs/ncpfs/sock.cif (sk == NULL)
sk164fs/ncpfs/sock.c(unsigned int)(sk->data_ready),
sk167fs/ncpfs/sock.cif (sk->data_ready == ncp_wdog_data_ready)
sk173fs/ncpfs/sock.cserver->data_ready = sk->data_ready;
sk174fs/ncpfs/sock.csk->data_ready = ncp_wdog_data_ready;
sk175fs/ncpfs/sock.csk->allocation = GFP_ATOMIC;
sk185fs/ncpfs/sock.cstruct sock   *sk;
sk205fs/ncpfs/sock.csk   = (struct sock *)(sock->data);
sk207fs/ncpfs/sock.cif (sk == NULL)
sk220fs/ncpfs/sock.cif (sk->data_ready != ncp_wdog_data_ready)
sk228fs/ncpfs/sock.c(unsigned int)(sk->data_ready),
sk231fs/ncpfs/sock.csk->data_ready = server->data_ready;
sk232fs/ncpfs/sock.csk->allocation = GFP_KERNEL;
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,
sk267include/net/sock.hvoid      (*state_change)(struct sock *sk);
sk268include/net/sock.hvoid      (*data_ready)(struct sock *sk,int bytes);
sk269include/net/sock.hvoid      (*write_space)(struct sock *sk);
sk270include/net/sock.hvoid      (*error_report)(struct sock *sk);
sk280include/net/sock.hvoid      (*close)(struct sock *sk, int timeout);
sk287include/net/sock.hint      (*connect)(struct sock *sk,
sk289include/net/sock.hstruct sock *    (*accept) (struct sock *sk, int flags);
sk290include/net/sock.hvoid      (*queue_xmit)(struct sock *sk,
sk293include/net/sock.hvoid      (*retransmit)(struct sock *sk, int all);
sk294include/net/sock.hvoid      (*write_wakeup)(struct sock *sk);
sk295include/net/sock.hvoid      (*read_wakeup)(struct sock *sk);
sk300include/net/sock.hint      (*select)(struct sock *sk, int which,
sk302include/net/sock.hint      (*ioctl)(struct sock *sk, int cmd,
sk304include/net/sock.hint      (*init)(struct sock *sk);
sk305include/net/sock.hvoid      (*shutdown)(struct sock *sk, int how);
sk306include/net/sock.hint      (*setsockopt)(struct sock *sk, int level, int optname,
sk308include/net/sock.hint      (*getsockopt)(struct sock *sk, int level, int optname,
sk310include/net/sock.hint      (*sendmsg)(struct sock *sk, struct msghdr *msg, int len,
sk312include/net/sock.hint      (*recvmsg)(struct sock *sk, struct msghdr *msg, int len,
sk314include/net/sock.hint      (*bind)(struct sock *sk, struct sockaddr *uaddr, int addr_len);
sk355include/net/sock.hextern void __release_sock(struct sock *sk);
sk357include/net/sock.hstatic inline void lock_sock(struct sock *sk)
sk362include/net/sock.hif (sk->users) {
sk368include/net/sock.hsk->users++;
sk372include/net/sock.hstatic inline void release_sock(struct sock *sk)
sk377include/net/sock.hif (sk->users == 0) {
sk379include/net/sock.hsk->users = 1;
sk384include/net/sock.hif (!--sk->users)
sk385include/net/sock.h__release_sock(sk);
sk389include/net/sock.hextern void      destroy_sock(struct sock *sk);
sk402include/net/sock.hextern struct sk_buff    *sock_wmalloc(struct sock *sk,
sk405include/net/sock.hextern struct sk_buff    *sock_rmalloc(struct sock *sk,
sk408include/net/sock.hextern void      sock_wfree(struct sock *sk,
sk410include/net/sock.hextern void      sock_rfree(struct sock *sk,
sk412include/net/sock.hextern unsigned long    sock_rspace(struct sock *sk);
sk413include/net/sock.hextern unsigned long    sock_wspace(struct sock *sk);
sk415include/net/sock.hextern int      sock_setsockopt(struct sock *sk, int level,
sk419include/net/sock.hextern int      sock_getsockopt(struct sock *sk, int level,
sk437include/net/sock.hextern __inline__ int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
sk440include/net/sock.hif(sk->rmem_alloc + skb->truesize >= sk->rcvbuf)
sk444include/net/sock.hsk->rmem_alloc+=skb->truesize;
sk445include/net/sock.hskb->sk=sk;
sk447include/net/sock.hskb_queue_tail(&sk->receive_queue,skb);
sk448include/net/sock.hif(!sk->dead)
sk449include/net/sock.hsk->data_ready(sk,skb->len);
sk457include/net/sock.hextern __inline__ int sock_error(struct sock *sk)
sk459include/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.hif(sk->state==TCP_ESTABLISHED)
sk301include/net/tcp.hif(sk->debug)
sk302include/net/tcp.hprintk("TCP sk=%p, State %s -> %s\n",sk, statename[sk->state],statename[state]);
sk307include/net/tcp.hif(state==TCP_ESTABLISHED && sk->state==TCP_SYN_RECV)
sk311include/net/tcp.hsk->state=state;
sk314include/net/tcp.hif(sk->state==TCP_CLOSE)
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;
sk641net/ax25/af_ax25.cif (ax25->sk != NULL && ax25->sk->type != SOCK_SEQPACKET)
sk730net/ax25/af_ax25.cstruct sock *sk;
sk733net/ax25/af_ax25.csk = (struct sock *)sock->data;
sk736net/ax25/af_ax25.creturn sock_setsockopt(sk, level, optname, optval, optlen);
sk751net/ax25/af_ax25.cif (sk->ax25->modulus == MODULUS) {
sk758net/ax25/af_ax25.csk->ax25->window = opt;
sk764net/ax25/af_ax25.csk->ax25->rtt = (opt * PR_SLOWHZ) / 2;
sk770net/ax25/af_ax25.csk->ax25->t2 = opt * PR_SLOWHZ;
sk776net/ax25/af_ax25.csk->ax25->n2 = opt;
sk782net/ax25/af_ax25.csk->ax25->t3 = opt * PR_SLOWHZ;
sk786net/ax25/af_ax25.csk->ax25->backoff = opt ? 1 : 0;
sk790net/ax25/af_ax25.csk->ax25->modulus = opt ? EMODULUS : MODULUS;
sk794net/ax25/af_ax25.csk->ax25->hdrincl = opt ? 1 : 0;
sk805net/ax25/af_ax25.cstruct sock *sk;
sk809net/ax25/af_ax25.csk = (struct sock *)sock->data;
sk812net/ax25/af_ax25.creturn sock_getsockopt(sk, level, optname, optval, optlen);
sk819net/ax25/af_ax25.cval = sk->ax25->window;
sk823net/ax25/af_ax25.cval = (sk->ax25->t1 * 2) / PR_SLOWHZ;
sk827net/ax25/af_ax25.cval = sk->ax25->t2 / PR_SLOWHZ;
sk831net/ax25/af_ax25.cval = sk->ax25->n2;
sk835net/ax25/af_ax25.cval = sk->ax25->t3 / PR_SLOWHZ;
sk839net/ax25/af_ax25.cval = sk->ax25->backoff;
sk843net/ax25/af_ax25.cval = (sk->ax25->modulus == EMODULUS);
sk847net/ax25/af_ax25.cval = sk->ax25->hdrincl;
sk869net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sk871net/ax25/af_ax25.cif (sk->type == SOCK_SEQPACKET && sk->state != TCP_LISTEN) {
sk872net/ax25/af_ax25.csk->max_ack_backlog = backlog;
sk873net/ax25/af_ax25.csk->state           = TCP_LISTEN;
sk880net/ax25/af_ax25.cstatic void def_callback1(struct sock *sk)
sk882net/ax25/af_ax25.cif (!sk->dead)
sk883net/ax25/af_ax25.cwake_up_interruptible(sk->sleep);
sk886net/ax25/af_ax25.cstatic void def_callback2(struct sock *sk, int len)
sk888net/ax25/af_ax25.cif (!sk->dead)
sk889net/ax25/af_ax25.cwake_up_interruptible(sk->sleep);
sk894net/ax25/af_ax25.cstruct sock *sk;
sk927net/ax25/af_ax25.cif ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL)
sk931net/ax25/af_ax25.ckfree_s(sk, sizeof(*sk));
sk935net/ax25/af_ax25.cskb_queue_head_init(&sk->receive_queue);
sk936net/ax25/af_ax25.cskb_queue_head_init(&sk->write_queue);
sk937net/ax25/af_ax25.cskb_queue_head_init(&sk->back_log);
sk939net/ax25/af_ax25.csk->socket        = sock;
sk940net/ax25/af_ax25.csk->type          = sock->type;
sk941net/ax25/af_ax25.csk->protocol      = protocol;
sk942net/ax25/af_ax25.csk->dead          = 0;
sk943net/ax25/af_ax25.csk->next          = NULL;
sk944net/ax25/af_ax25.csk->broadcast     = 0;
sk945net/ax25/af_ax25.csk->allocation    = GFP_KERNEL;
sk946net/ax25/af_ax25.csk->rcvbuf        = SK_RMEM_MAX;
sk947net/ax25/af_ax25.csk->sndbuf        = SK_WMEM_MAX;
sk948net/ax25/af_ax25.csk->wmem_alloc    = 0;
sk949net/ax25/af_ax25.csk->rmem_alloc    = 0;
sk950net/ax25/af_ax25.csk->users         = 0;
sk951net/ax25/af_ax25.csk->debug         = 0;
sk952net/ax25/af_ax25.csk->destroy       = 0;
sk953net/ax25/af_ax25.csk->prot          = NULL;  /* So we use default free mechanisms */
sk954net/ax25/af_ax25.csk->err           = 0;
sk955net/ax25/af_ax25.csk->localroute    = 0;
sk956net/ax25/af_ax25.csk->send_head     = NULL;
sk957net/ax25/af_ax25.csk->state         = TCP_CLOSE;
sk958net/ax25/af_ax25.csk->shutdown      = 0;
sk959net/ax25/af_ax25.csk->priority      = SOPRI_NORMAL;
sk960net/ax25/af_ax25.csk->ack_backlog   = 0;
sk961net/ax25/af_ax25.csk->mtu           = AX25_MTU;  /* 256 */
sk962net/ax25/af_ax25.csk->zapped        = 1;
sk964net/ax25/af_ax25.csk->state_change = def_callback1;
sk965net/ax25/af_ax25.csk->data_ready   = def_callback2;
sk966net/ax25/af_ax25.csk->write_space  = def_callback1;
sk967net/ax25/af_ax25.csk->error_report = def_callback1;
sk970net/ax25/af_ax25.csock->data = (void *)sk;
sk971net/ax25/af_ax25.csk->sleep  = sock->wait;
sk974net/ax25/af_ax25.cax25->sk = sk;
sk975net/ax25/af_ax25.csk->ax25 = ax25;
sk982net/ax25/af_ax25.cstruct sock *sk;
sk985net/ax25/af_ax25.cif ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL)
sk989net/ax25/af_ax25.ckfree_s(sk, sizeof(*sk));
sk995net/ax25/af_ax25.csk->type   = osk->type;
sk996net/ax25/af_ax25.csk->socket = osk->socket;
sk1005net/ax25/af_ax25.ckfree_s((void *)sk, sizeof(*sk));
sk1010net/ax25/af_ax25.cskb_queue_head_init(&sk->receive_queue);
sk1011net/ax25/af_ax25.cskb_queue_head_init(&sk->write_queue);
sk1012net/ax25/af_ax25.cskb_queue_head_init(&sk->back_log);
sk1014net/ax25/af_ax25.csk->dead        = 0;
sk1015net/ax25/af_ax25.csk->next        = NULL;
sk1016net/ax25/af_ax25.csk->priority    = osk->priority;
sk1017net/ax25/af_ax25.csk->broadcast   = 0;
sk1018net/ax25/af_ax25.csk->protocol    = osk->protocol;
sk1019net/ax25/af_ax25.csk->rcvbuf      = osk->rcvbuf;
sk1020net/ax25/af_ax25.csk->sndbuf      = osk->sndbuf;
sk1021net/ax25/af_ax25.csk->wmem_alloc  = 0;
sk1022net/ax25/af_ax25.csk->rmem_alloc  = 0;
sk1023net/ax25/af_ax25.csk->users       = 0;
sk1024net/ax25/af_ax25.csk->ack_backlog = 0;
sk1025net/ax25/af_ax25.csk->destroy     = 0;
sk1026net/ax25/af_ax25.csk->prot        = NULL;  /* So we use default free mechanisms */
sk1027net/ax25/af_ax25.csk->err         = 0;
sk1028net/ax25/af_ax25.csk->localroute  = 0;
sk1029net/ax25/af_ax25.csk->send_head   = NULL;
sk1030net/ax25/af_ax25.csk->debug       = osk->debug;
sk1031net/ax25/af_ax25.csk->state       = TCP_ESTABLISHED;
sk1032net/ax25/af_ax25.csk->window      = osk->window;
sk1033net/ax25/af_ax25.csk->shutdown    = 0;
sk1034net/ax25/af_ax25.csk->mtu         = osk->mtu;
sk1035net/ax25/af_ax25.csk->sleep       = osk->sleep;
sk1036net/ax25/af_ax25.csk->zapped      = osk->zapped;
sk1038net/ax25/af_ax25.csk->state_change = def_callback1;
sk1039net/ax25/af_ax25.csk->data_ready   = def_callback2;
sk1040net/ax25/af_ax25.csk->write_space  = def_callback1;
sk1041net/ax25/af_ax25.csk->error_report = def_callback1;
sk1058net/ax25/af_ax25.ckfree_s(sk, sizeof(*sk));
sk1067net/ax25/af_ax25.csk->ax25 = ax25;
sk1068net/ax25/af_ax25.cax25->sk = sk;
sk1070net/ax25/af_ax25.creturn sk;
sk1075net/ax25/af_ax25.cstruct sock *sk = (struct sock *)oldsock->data;
sk1077net/ax25/af_ax25.creturn ax25_create(newsock, sk->protocol);
sk1082net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sk1084net/ax25/af_ax25.cif (sk == NULL) return 0;
sk1086net/ax25/af_ax25.cif (sk->type == SOCK_SEQPACKET) {
sk1087net/ax25/af_ax25.cswitch (sk->ax25->state) {
sk1089net/ax25/af_ax25.csk->state       = TCP_CLOSE;
sk1090net/ax25/af_ax25.csk->state_change(sk);
sk1091net/ax25/af_ax25.csk->dead        = 1;
sk1092net/ax25/af_ax25.cax25_destroy_socket(sk->ax25);
sk1096net/ax25/af_ax25.cax25_send_control(sk->ax25, DISC, POLLON, C_COMMAND);
sk1097net/ax25/af_ax25.csk->ax25->state = AX25_STATE_0;
sk1098net/ax25/af_ax25.csk->state       = TCP_CLOSE;
sk1099net/ax25/af_ax25.csk->state_change(sk);
sk1100net/ax25/af_ax25.csk->dead        = 1;
sk1101net/ax25/af_ax25.cax25_destroy_socket(sk->ax25);
sk1105net/ax25/af_ax25.cif (sk->ax25->dama_slave)
sk1106net/ax25/af_ax25.cax25_send_control(sk->ax25, DISC, POLLON, C_COMMAND);
sk1108net/ax25/af_ax25.cax25_send_control(sk->ax25, DM, POLLON, C_RESPONSE);
sk1109net/ax25/af_ax25.csk->ax25->state = AX25_STATE_0;
sk1110net/ax25/af_ax25.csk->state       = TCP_CLOSE;
sk1111net/ax25/af_ax25.csk->state_change(sk);
sk1112net/ax25/af_ax25.csk->dead        = 1;
sk1113net/ax25/af_ax25.cax25_destroy_socket(sk->ax25);
sk1118net/ax25/af_ax25.cax25_clear_queues(sk->ax25);
sk1119net/ax25/af_ax25.csk->ax25->n2count = 0;
sk1120net/ax25/af_ax25.cif (!sk->ax25->dama_slave)
sk1121net/ax25/af_ax25.cax25_send_control(sk->ax25, DISC, POLLON, C_COMMAND);
sk1122net/ax25/af_ax25.csk->ax25->t3timer = 0;
sk1123net/ax25/af_ax25.csk->ax25->t1timer = sk->ax25->t1 = ax25_calculate_t1(sk->ax25);
sk1124net/ax25/af_ax25.csk->ax25->state   = AX25_STATE_2;
sk1125net/ax25/af_ax25.csk->state         = TCP_CLOSE;
sk1126net/ax25/af_ax25.csk->state_change(sk);
sk1127net/ax25/af_ax25.csk->dead          = 1;
sk1128net/ax25/af_ax25.csk->destroy       = 1;
sk1135net/ax25/af_ax25.csk->state       = TCP_CLOSE;
sk1136net/ax25/af_ax25.csk->state_change(sk);
sk1137net/ax25/af_ax25.csk->dead = 1;
sk1138net/ax25/af_ax25.cax25_destroy_socket(sk->ax25);
sk1142net/ax25/af_ax25.csk->socket = NULL;  /* Not used, but we should do this. **/
sk1155net/ax25/af_ax25.cstruct sock *sk;
sk1160net/ax25/af_ax25.csk = (struct sock *)sock->data;
sk1162net/ax25/af_ax25.cif (sk->zapped == 0)
sk1173net/ax25/af_ax25.cmemcpy(&sk->ax25->source_addr, &addr->fsa_ax25.sax25_call, sizeof(ax25_address));
sk1175net/ax25/af_ax25.cmemcpy(&sk->ax25->source_addr, call, sizeof(ax25_address));
sk1177net/ax25/af_ax25.cif (sk->debug)
sk1178net/ax25/af_ax25.cprintk("AX25: source address set to %s\n", ax2asc(&sk->ax25->source_addr));
sk1183net/ax25/af_ax25.cif (sk->debug)
sk1187net/ax25/af_ax25.cif (sk->debug)
sk1191net/ax25/af_ax25.cif (sk->debug)
sk1196net/ax25/af_ax25.cif (sk->debug)
sk1200net/ax25/af_ax25.cif (sk->debug)
sk1204net/ax25/af_ax25.cax25_fillin_cb(sk->ax25, dev);
sk1205net/ax25/af_ax25.cax25_insert_socket(sk->ax25);
sk1207net/ax25/af_ax25.csk->zapped = 0;
sk1209net/ax25/af_ax25.cif (sk->debug)
sk1218net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sk1222net/ax25/af_ax25.cif (sk->state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) {
sk1227net/ax25/af_ax25.cif (sk->state == TCP_CLOSE && sock->state == SS_CONNECTING) {
sk1232net/ax25/af_ax25.cif (sk->state == TCP_ESTABLISHED && sk->type == SOCK_SEQPACKET)
sk1235net/ax25/af_ax25.csk->state   = TCP_CLOSE;  
sk1252net/ax25/af_ax25.cif (sk->ax25->digipeat == NULL) {
sk1253net/ax25/af_ax25.cif ((sk->ax25->digipeat = (ax25_digi *)kmalloc(sizeof(ax25_digi), GFP_KERNEL)) == NULL)
sk1257net/ax25/af_ax25.csk->ax25->digipeat->ndigi = addr->sax25_ndigis;
sk1260net/ax25/af_ax25.csk->ax25->digipeat->repeated[ct] = 0;
sk1261net/ax25/af_ax25.cmemcpy(&sk->ax25->digipeat->calls[ct], &fsa->fsa_digipeater[ct], sizeof(ax25_address));
sk1265net/ax25/af_ax25.csk->ax25->digipeat->lastrepeat = 0;
sk1269net/ax25/af_ax25.cif (sk->debug)
sk1271net/ax25/af_ax25.cax25_rt_build_path(sk->ax25, &addr->sax25_call);
sk1279net/ax25/af_ax25.cif (sk->zapped) {
sk1280net/ax25/af_ax25.cif ((err = ax25_rt_autobind(sk->ax25, &addr->sax25_call)) < 0)
sk1282net/ax25/af_ax25.cax25_fillin_cb(sk->ax25, sk->ax25->device);
sk1283net/ax25/af_ax25.cax25_insert_socket(sk->ax25);
sk1285net/ax25/af_ax25.cif (sk->ax25->device == NULL)
sk1289net/ax25/af_ax25.cif (sk->type == SOCK_SEQPACKET && ax25_find_cb(&sk->ax25->source_addr, &addr->sax25_call, sk->ax25->device) != NULL)
sk1292net/ax25/af_ax25.cmemcpy(&sk->ax25->dest_addr, &addr->sax25_call, sizeof(ax25_address));
sk1295net/ax25/af_ax25.cif (sk->type != SOCK_SEQPACKET) {
sk1297net/ax25/af_ax25.csk->state   = TCP_ESTABLISHED;
sk1303net/ax25/af_ax25.csk->state          = TCP_SYN_SENT;
sk1305net/ax25/af_ax25.cif (ax25_dev_is_dama_slave(sk->ax25->device))
sk1306net/ax25/af_ax25.cdama_establish_data_link(sk->ax25);
sk1308net/ax25/af_ax25.cax25_establish_data_link(sk->ax25);
sk1310net/ax25/af_ax25.csk->ax25->state     = AX25_STATE_1;
sk1311net/ax25/af_ax25.cax25_set_timer(sk->ax25);    /* Start going SABM SABM until a UA or a give up and DM */
sk1314net/ax25/af_ax25.cif (sk->state != TCP_ESTABLISHED && (flags & O_NONBLOCK))
sk1320net/ax25/af_ax25.cwhile (sk->state == TCP_SYN_SENT) {
sk1321net/ax25/af_ax25.cinterruptible_sleep_on(sk->sleep);
sk1328net/ax25/af_ax25.cif (sk->state != TCP_ESTABLISHED) 
sk1333net/ax25/af_ax25.creturn sock_error(sk);  /* Always set at this point */
sk1350net/ax25/af_ax25.cstruct sock *sk;
sk1359net/ax25/af_ax25.csk = (struct sock *)sock->data;
sk1361net/ax25/af_ax25.cif (sk->type != SOCK_SEQPACKET)
sk1364net/ax25/af_ax25.cif (sk->state != TCP_LISTEN)
sk1373net/ax25/af_ax25.cif ((skb = skb_dequeue(&sk->receive_queue)) == NULL) {
sk1378net/ax25/af_ax25.cinterruptible_sleep_on(sk->sleep);
sk1386net/ax25/af_ax25.cnewsk = skb->sk;
sk1391net/ax25/af_ax25.cskb->sk = NULL;
sk1393net/ax25/af_ax25.csk->ack_backlog--;
sk1404net/ax25/af_ax25.cstruct sock *sk;
sk1407net/ax25/af_ax25.csk = (struct sock *)sock->data;
sk1410net/ax25/af_ax25.cif (sk->state != TCP_ESTABLISHED)
sk1412net/ax25/af_ax25.caddr = &sk->ax25->dest_addr;
sk1414net/ax25/af_ax25.caddr = &sk->ax25->source_addr;
sk1423net/ax25/af_ax25.cif (sk->ax25->digipeat != NULL) {
sk1424net/ax25/af_ax25.cndigi = sk->ax25->digipeat->ndigi;
sk1428net/ax25/af_ax25.cmemcpy(&sax->fsa_digipeater[i], &sk->ax25->digipeat->calls[i], sizeof(ax25_address));
sk1437net/ax25/af_ax25.cstruct sock *sk;
sk1571net/ax25/af_ax25.cif ((sk = ax25_find_socket(&dest, &src, SOCK_DGRAM)) != NULL) {
sk1572net/ax25/af_ax25.cif (sk->rmem_alloc >= sk->rcvbuf) {
sk1579net/ax25/af_ax25.cskb_queue_tail(&sk->receive_queue, skb);
sk1580net/ax25/af_ax25.cskb->sk = sk;
sk1581net/ax25/af_ax25.csk->rmem_alloc += skb->truesize;
sk1582net/ax25/af_ax25.cif (!sk->dead)
sk1583net/ax25/af_ax25.csk->data_ready(sk, skb->len);
sk1642net/ax25/af_ax25.cif ((sk = ax25_find_listener(&dest, dev, SOCK_SEQPACKET)) != NULL) {
sk1643net/ax25/af_ax25.cif (sk->ack_backlog == sk->max_ack_backlog || (make = ax25_make_new(sk, dev)) == NULL) {
sk1653net/ax25/af_ax25.cskb_queue_head(&sk->receive_queue, skb);
sk1655net/ax25/af_ax25.cskb->sk     = make;
sk1657net/ax25/af_ax25.cmake->pair  = sk;
sk1659net/ax25/af_ax25.csk->ack_backlog++;
sk1727net/ax25/af_ax25.cif (sk != NULL) {
sk1728net/ax25/af_ax25.cif (!sk->dead)
sk1729net/ax25/af_ax25.csk->data_ready(sk, skb->len );
sk1742net/ax25/af_ax25.cskb->sk = NULL;    /* Initially we don't know who its for */
sk1763net/ax25/af_ax25.cskb->sk = NULL;    /* Initially we don't know who its for */
sk1781net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sk1793net/ax25/af_ax25.cif (sk->err) {
sk1794net/ax25/af_ax25.creturn sock_error(sk);
sk1800net/ax25/af_ax25.cif (sk->zapped)
sk1803net/ax25/af_ax25.cif (sk->ax25->device == NULL)
sk1831net/ax25/af_ax25.cif (sk->type == SOCK_SEQPACKET && memcmp(&sk->ax25->dest_addr, &sax.sax25_call, sizeof(ax25_address)) != 0)
sk1840net/ax25/af_ax25.cif (sk->state != TCP_ESTABLISHED)
sk1843net/ax25/af_ax25.cmemcpy(&sax.sax25_call, &sk->ax25->dest_addr, sizeof(ax25_address));
sk1844net/ax25/af_ax25.cdp = sk->ax25->digipeat;
sk1847net/ax25/af_ax25.cif (sk->debug)
sk1851net/ax25/af_ax25.cif (sk->debug)
sk1857net/ax25/af_ax25.cif ((skb = sock_alloc_send_skb(sk, size, 0, 0, &err)) == NULL)
sk1860net/ax25/af_ax25.cskb->sk   = sk;
sk1866net/ax25/af_ax25.cif (sk->debug)
sk1874net/ax25/af_ax25.c*asmptr = sk->protocol;
sk1876net/ax25/af_ax25.cif (sk->debug)
sk1879net/ax25/af_ax25.cif (sk->type == SOCK_SEQPACKET) {
sk1881net/ax25/af_ax25.cif (sk->state != TCP_ESTABLISHED) {
sk1886net/ax25/af_ax25.cax25_output(sk->ax25, skb);  /* Shove it onto the queue and kick */
sk1892net/ax25/af_ax25.cif (sk->debug) {
sk1899net/ax25/af_ax25.casmptr += (lv = build_ax25_addr(asmptr, &sk->ax25->source_addr, &sax.sax25_call, dp, C_COMMAND, MODULUS));
sk1901net/ax25/af_ax25.cif (sk->debug)
sk1906net/ax25/af_ax25.cif (sk->debug)
sk1912net/ax25/af_ax25.cax25_queue_xmit(skb, sk->ax25->device, SOPRI_NORMAL);
sk1921net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sk1928net/ax25/af_ax25.cif (sk->err) {
sk1929net/ax25/af_ax25.creturn sock_error(sk);
sk1939net/ax25/af_ax25.cif (sk->type == SOCK_SEQPACKET && sk->state != TCP_ESTABLISHED)
sk1943net/ax25/af_ax25.cif ((skb = skb_recv_datagram(sk, flags, noblock, &er)) == NULL)
sk1946net/ax25/af_ax25.cif (sk->ax25->hdrincl) {
sk1949net/ax25/af_ax25.cif (sk->type == SOCK_SEQPACKET)
sk1991net/ax25/af_ax25.cskb_free_datagram(sk, skb);
sk1996net/ax25/af_ax25.cstatic int ax25_shutdown(struct socket *sk, int how)
sk2004net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sk2006net/ax25/af_ax25.creturn datagram_select(sk, sel_type, wait);
sk2011net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sk2019net/ax25/af_ax25.camount = sk->sndbuf - sk->wmem_alloc;
sk2029net/ax25/af_ax25.cif ((skb = skb_peek(&sk->receive_queue)) != NULL)
sk2038net/ax25/af_ax25.cif (sk != NULL) {
sk2039net/ax25/af_ax25.cif (sk->stamp.tv_sec==0)
sk2043net/ax25/af_ax25.cmemcpy_tofs((void *)arg, &sk->stamp, sizeof(struct timeval));
sk2142net/ax25/af_ax25.cif (ax25->sk != NULL) {
sk2144net/ax25/af_ax25.cax25->sk->wmem_alloc,
sk2145net/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;
sk277net/ax25/ax25_in.cif (ax25->sk != NULL) 
sk279net/ax25/ax25_in.cax25->sk->state = TCP_CLOSE;
sk280net/ax25/ax25_in.cax25->sk->err   = 0;
sk281net/ax25/ax25_in.cif (!ax25->sk->dead)
sk282net/ax25/ax25_in.cax25->sk->state_change(ax25->sk);
sk283net/ax25/ax25_in.cax25->sk->dead  = 1;
sk294net/ax25/ax25_in.cif (ax25->sk != NULL) {
sk295net/ax25/ax25_in.cax25->sk->state = TCP_CLOSE;
sk296net/ax25/ax25_in.cax25->sk->err   = 0;
sk297net/ax25/ax25_in.cif (!ax25->sk->dead)
sk298net/ax25/ax25_in.cax25->sk->state_change(ax25->sk);
sk299net/ax25/ax25_in.cax25->sk->dead  = 1;
sk310net/ax25/ax25_in.cif (ax25->sk != NULL) {
sk311net/ax25/ax25_in.cax25->sk->state = TCP_CLOSE;
sk312net/ax25/ax25_in.cax25->sk->err   = 0;
sk313net/ax25/ax25_in.cif (!ax25->sk->dead)
sk314net/ax25/ax25_in.cax25->sk->state_change(ax25->sk);
sk315net/ax25/ax25_in.cax25->sk->dead  = 1;
sk388net/ax25/ax25_in.cif (ax25->sk != NULL) {
sk389net/ax25/ax25_in.cax25->sk->state = TCP_CLOSE;
sk390net/ax25/ax25_in.cax25->sk->err   = 0;
sk391net/ax25/ax25_in.cif (!ax25->sk->dead)
sk392net/ax25/ax25_in.cax25->sk->state_change(ax25->sk);
sk393net/ax25/ax25_in.cax25->sk->dead  = 1;
sk403net/ax25/ax25_in.cif (ax25->sk) {
sk404net/ax25/ax25_in.cax25->sk->state = TCP_CLOSE;
sk405net/ax25/ax25_in.cax25->sk->err   = ECONNRESET;
sk406net/ax25/ax25_in.cif (!ax25->sk->dead)
sk407net/ax25/ax25_in.cax25->sk->state_change(ax25->sk);
sk408net/ax25/ax25_in.cax25->sk->dead         = 1;
sk587net/ax25/ax25_in.cif (ax25->sk != NULL) {
sk588net/ax25/ax25_in.cax25->sk->state = TCP_CLOSE;
sk589net/ax25/ax25_in.cax25->sk->err   = 0;
sk590net/ax25/ax25_in.cif (!ax25->sk->dead)
sk591net/ax25/ax25_in.cax25->sk->state_change(ax25->sk);
sk592net/ax25/ax25_in.cax25->sk->dead  = 1;
sk603net/ax25/ax25_in.cif (ax25->sk != NULL) {
sk604net/ax25/ax25_in.cax25->sk->state = TCP_CLOSE;
sk605net/ax25/ax25_in.cax25->sk->err   = ECONNRESET;
sk606net/ax25/ax25_in.cif (!ax25->sk->dead)
sk607net/ax25/ax25_in.cax25->sk->state_change(ax25->sk);
sk608net/ax25/ax25_in.cax25->sk->dead  = 1;
sk793net/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;
sk223net/ax25/ax25_out.cif (ax25->sk != NULL) {
sk224net/ax25/ax25_out.cax25->sk->state = TCP_CLOSE;
sk225net/ax25/ax25_out.cax25->sk->err   = ENETUNREACH;
sk226net/ax25/ax25_out.cif (!ax25->sk->dead)
sk227net/ax25/ax25_out.cax25->sk->state_change(ax25->sk);
sk228net/ax25/ax25_out.cax25->sk->dead  = 1;
sk413net/ax25/ax25_route.cif (ax25->sk != NULL)
sk414net/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;
sk490net/ax25/ax25_subr.cif (ax25->sk != NULL)
sk492net/ax25/ax25_subr.cskb->sk = ax25->sk;
sk493net/ax25/ax25_subr.cax25->sk->wmem_alloc += skb->truesize;
sk512net/ax25/ax25_subr.cif (ax25->sk && ax25->sk->debug)
sk525net/ax25/ax25_subr.cif (ax25->sk && ax25->sk->debug)
sk99net/ax25/ax25_timer.cif (ax25->sk == NULL || ax25->sk->destroy || (ax25->sk->state == TCP_LISTEN && ax25->sk->dead)) {
sk111net/ax25/ax25_timer.cif (ax25->sk != NULL) {
sk112net/ax25/ax25_timer.cif (ax25->sk->rmem_alloc < (ax25->sk->rcvbuf / 2) && (ax25->condition & OWN_RX_BUSY_CONDITION)) {
sk156net/ax25/ax25_timer.cif (ax25->sk != NULL)
sk158net/ax25/ax25_timer.cif (ax25->sk->debug)
sk160net/ax25/ax25_timer.cax25->sk->state = TCP_CLOSE;
sk161net/ax25/ax25_timer.cax25->sk->err   = ETIMEDOUT;
sk162net/ax25/ax25_timer.cif (!ax25->sk->dead)
sk163net/ax25/ax25_timer.cax25->sk->state_change(ax25->sk);
sk164net/ax25/ax25_timer.cax25->sk->dead  = 1;
sk216net/ax25/ax25_timer.cif (ax25->sk != NULL) {
sk217net/ax25/ax25_timer.cax25->sk->state = TCP_CLOSE;
sk218net/ax25/ax25_timer.cax25->sk->err   = ETIMEDOUT;
sk219net/ax25/ax25_timer.cif (!ax25->sk->dead)
sk220net/ax25/ax25_timer.cax25->sk->state_change(ax25->sk);
sk221net/ax25/ax25_timer.cax25->sk->dead  = 1;
sk248net/ax25/ax25_timer.cif (ax25->sk != NULL) {
sk249net/ax25/ax25_timer.cax25->sk->state = TCP_CLOSE;
sk250net/ax25/ax25_timer.cax25->sk->err   = ETIMEDOUT;
sk251net/ax25/ax25_timer.cif (!ax25->sk->dead)
sk252net/ax25/ax25_timer.cax25->sk->state_change(ax25->sk);
sk253net/ax25/ax25_timer.cax25->sk->dead  = 1;
sk277net/ax25/ax25_timer.cif (ax25->sk != NULL) {
sk278net/ax25/ax25_timer.cif (ax25->sk->debug)
sk280net/ax25/ax25_timer.cax25->sk->state = TCP_CLOSE;
sk281net/ax25/ax25_timer.cax25->sk->err   = ETIMEDOUT;
sk282net/ax25/ax25_timer.cif (!ax25->sk->dead)
sk283net/ax25/ax25_timer.cax25->sk->state_change(ax25->sk);
sk284net/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)
sk414net/core/dev.c((struct sock *)ptype->data != skb->sk))
sk462net/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.cif (sk->wmem_alloc < 0)
sk524net/core/sock.cprintk("sock.c: Look where I am %ld<%ld\n", tmp, sk->wmem_alloc);
sk525net/core/sock.csk->socket->flags &= ~SO_NOSPACE;
sk526net/core/sock.cinterruptible_sleep_on(sk->sleep);
sk543net/core/sock.cvoid __release_sock(struct sock *sk)
sk548net/core/sock.cif (!sk->prot)
sk561net/core/sock.cwhile ((skb = __skb_dequeue(&sk->back_log)) != NULL) 
sk564net/core/sock.csk->users = 1;
sk565net/core/sock.cif (sk->prot->rcv) 
sk566net/core/sock.csk->prot->rcv(skb, skb->dev, (struct options*)skb->proto_priv,
sk569net/core/sock.c(struct inet_protocol *)sk->pair); 
sk570net/core/sock.csk->users = 0;
sk573net/core/sock.cif (sk->dead && sk->state == TCP_CLOSE) 
sk576net/core/sock.creset_timer(sk, TIME_DONE, min(sk->rtt * 2, TCP_DONE_TIME));
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.cif (!sk->dead) 
sk330net/ipv4/af_inet.csk->write_space(sk);
sk337net/ipv4/af_inet.cif (sk->dead) 
sk339net/ipv4/af_inet.cwhile((skb=skb_dequeue(&sk->receive_queue))!=NULL) 
sk345net/ipv4/af_inet.cif (skb->sk != NULL && skb->sk != sk) 
sk348net/ipv4/af_inet.cskb->sk->dead = 1;
sk349net/ipv4/af_inet.cskb->sk->prot->close(skb->sk, 0);
sk361net/ipv4/af_inet.cfor(skb = sk->send_head; skb != NULL; )
sk379net/ipv4/af_inet.csk->send_head = NULL;
sk386net/ipv4/af_inet.cwhile((skb=skb_dequeue(&sk->back_log))!=NULL) 
sk389net/ipv4/af_inet.cskb->sk = NULL;
sk397net/ipv4/af_inet.cif (sk->pair) 
sk399net/ipv4/af_inet.csk->pair->dead = 1;
sk400net/ipv4/af_inet.csk->pair->prot->close(sk->pair, 0);
sk401net/ipv4/af_inet.csk->pair = NULL;
sk410net/ipv4/af_inet.cif (sk->dead && sk->rmem_alloc == 0 && sk->wmem_alloc == 0) 
sk412net/ipv4/af_inet.cif(sk->opt)
sk413net/ipv4/af_inet.ckfree(sk->opt);
sk414net/ipv4/af_inet.cip_rt_put(sk->ip_route_cache);
sk420net/ipv4/af_inet.ckfree_s((void *)sk,sizeof(*sk));
sk426net/ipv4/af_inet.csk->destroy = 1;
sk427net/ipv4/af_inet.csk->ack_backlog = 0;
sk428net/ipv4/af_inet.crelease_sock(sk);
sk429net/ipv4/af_inet.creset_timer(sk, TIME_DESTROY, SOCK_DESTROY_TIME);
sk441net/ipv4/af_inet.cstruct sock *sk;
sk443net/ipv4/af_inet.csk = (struct sock *) sock->data;
sk455net/ipv4/af_inet.csk->proc = arg;
sk458net/ipv4/af_inet.creturn(sk->proc);
sk471net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;  
sk473net/ipv4/af_inet.creturn sock_setsockopt(sk,level,optname,optval,optlen);
sk474net/ipv4/af_inet.cif (sk->prot->setsockopt==NULL)
sk477net/ipv4/af_inet.creturn sk->prot->setsockopt(sk,level,optname,optval,optlen);
sk487net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;    
sk489net/ipv4/af_inet.creturn sock_getsockopt(sk,level,optname,optval,optlen);
sk490net/ipv4/af_inet.cif(sk->prot->getsockopt==NULL)    
sk493net/ipv4/af_inet.creturn sk->prot->getsockopt(sk,level,optname,optval,optlen);
sk500net/ipv4/af_inet.cstatic int inet_autobind(struct sock *sk)
sk503net/ipv4/af_inet.cif (sk->num == 0) 
sk505net/ipv4/af_inet.csk->num = get_new_socknum(sk->prot, 0);
sk506net/ipv4/af_inet.cif (sk->num == 0) 
sk510net/ipv4/af_inet.cput_sock(sk->num, sk);
sk511net/ipv4/af_inet.csk->dummy_th.source = ntohs(sk->num);
sk522net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sk524net/ipv4/af_inet.cif(inet_autobind(sk)!=0)
sk538net/ipv4/af_inet.csk->max_ack_backlog = backlog;
sk539net/ipv4/af_inet.cif (sk->state != TCP_LISTEN)
sk541net/ipv4/af_inet.csk->ack_backlog = 0;
sk542net/ipv4/af_inet.csk->state = TCP_LISTEN;
sk552net/ipv4/af_inet.cstatic void def_callback1(struct sock *sk)
sk554net/ipv4/af_inet.cif(!sk->dead)
sk555net/ipv4/af_inet.cwake_up_interruptible(sk->sleep);
sk558net/ipv4/af_inet.cstatic void def_callback2(struct sock *sk,int len)
sk560net/ipv4/af_inet.cif(!sk->dead)
sk562net/ipv4/af_inet.cwake_up_interruptible(sk->sleep);
sk563net/ipv4/af_inet.csock_wake_async(sk->socket, 1);
sk567net/ipv4/af_inet.cstatic void def_callback3(struct sock *sk)
sk569net/ipv4/af_inet.cif(!sk->dead && sk->wmem_alloc*2 <= sk->sndbuf)
sk571net/ipv4/af_inet.cwake_up_interruptible(sk->sleep);
sk572net/ipv4/af_inet.csock_wake_async(sk->socket, 2);
sk585net/ipv4/af_inet.cstruct sock *sk;
sk589net/ipv4/af_inet.csk = (struct sock *) kmalloc(sizeof(*sk), GFP_KERNEL);
sk590net/ipv4/af_inet.cif (sk == NULL) 
sk592net/ipv4/af_inet.cmemset(sk,0,sizeof(*sk));  /* Efficient way to set most fields to zero */
sk602net/ipv4/af_inet.ckfree_s((void *)sk, sizeof(*sk));
sk606net/ipv4/af_inet.csk->no_check = TCP_NO_CHECK;
sk613net/ipv4/af_inet.ckfree_s((void *)sk, sizeof(*sk));
sk617net/ipv4/af_inet.csk->no_check = UDP_NO_CHECK;
sk624net/ipv4/af_inet.ckfree_s((void *)sk, sizeof(*sk));
sk629net/ipv4/af_inet.ckfree_s((void *)sk, sizeof(*sk));
sk633net/ipv4/af_inet.csk->reuse = 1;
sk634net/ipv4/af_inet.csk->num = protocol;
sk640net/ipv4/af_inet.ckfree_s((void *)sk, sizeof(*sk));
sk645net/ipv4/af_inet.ckfree_s((void *)sk, sizeof(*sk));
sk649net/ipv4/af_inet.csk->reuse = 1;
sk650net/ipv4/af_inet.csk->num = protocol;
sk654net/ipv4/af_inet.ckfree_s((void *)sk, sizeof(*sk));
sk657net/ipv4/af_inet.csk->socket = sock;
sk659net/ipv4/af_inet.csk->nonagle = 1;
sk661net/ipv4/af_inet.csk->type = sock->type;
sk662net/ipv4/af_inet.csk->protocol = protocol;
sk663net/ipv4/af_inet.csk->allocation = GFP_KERNEL;
sk664net/ipv4/af_inet.csk->sndbuf = SK_WMEM_MAX;
sk665net/ipv4/af_inet.csk->rcvbuf = SK_RMEM_MAX;
sk666net/ipv4/af_inet.csk->rto = TCP_TIMEOUT_INIT;    /*TCP_WRITE_TIME*/
sk667net/ipv4/af_inet.csk->cong_window = 1; /* start with only sending one packet at a time. */
sk668net/ipv4/af_inet.csk->priority = 1;
sk669net/ipv4/af_inet.csk->state = TCP_CLOSE;
sk672net/ipv4/af_inet.csk->max_unacked = 2048; /* needs to be at most 2 full packets. */
sk673net/ipv4/af_inet.csk->delay_acks = 1;
sk674net/ipv4/af_inet.csk->max_ack_backlog = SOMAXCONN;
sk675net/ipv4/af_inet.cskb_queue_head_init(&sk->write_queue);
sk676net/ipv4/af_inet.cskb_queue_head_init(&sk->receive_queue);
sk677net/ipv4/af_inet.csk->mtu = 576;
sk678net/ipv4/af_inet.csk->prot = prot;
sk679net/ipv4/af_inet.csk->sleep = sock->wait;
sk680net/ipv4/af_inet.cinit_timer(&sk->timer);
sk681net/ipv4/af_inet.cinit_timer(&sk->retransmit_timer);
sk682net/ipv4/af_inet.csk->timer.data = (unsigned long)sk;
sk683net/ipv4/af_inet.csk->timer.function = &net_timer;
sk684net/ipv4/af_inet.cskb_queue_head_init(&sk->back_log);
sk685net/ipv4/af_inet.csock->data =(void *) sk;
sk686net/ipv4/af_inet.csk->dummy_th.doff = sizeof(sk->dummy_th)/4;
sk687net/ipv4/af_inet.csk->ip_ttl=64;
sk688net/ipv4/af_inet.cif(sk->type==SOCK_RAW && protocol==IPPROTO_RAW)
sk689net/ipv4/af_inet.csk->ip_hdrincl=1;
sk691net/ipv4/af_inet.csk->ip_hdrincl=0;
sk693net/ipv4/af_inet.csk->ip_mc_loop=1;
sk694net/ipv4/af_inet.csk->ip_mc_ttl=1;
sk695net/ipv4/af_inet.c*sk->ip_mc_name=0;
sk696net/ipv4/af_inet.csk->ip_mc_list=NULL;
sk703net/ipv4/af_inet.csk->dummy_th.ack=1;  
sk704net/ipv4/af_inet.csk->dummy_th.doff=sizeof(struct tcphdr)>>2;
sk706net/ipv4/af_inet.csk->state_change = def_callback1;
sk707net/ipv4/af_inet.csk->data_ready = def_callback2;
sk708net/ipv4/af_inet.csk->write_space = def_callback3;
sk709net/ipv4/af_inet.csk->error_report = def_callback1;
sk711net/ipv4/af_inet.cif (sk->num) 
sk719net/ipv4/af_inet.cput_sock(sk->num, sk);
sk720net/ipv4/af_inet.csk->dummy_th.source = ntohs(sk->num);
sk723net/ipv4/af_inet.cif (sk->prot->init) 
sk725net/ipv4/af_inet.cerr = sk->prot->init(sk);
sk728net/ipv4/af_inet.cdestroy_sock(sk);
sk749net/ipv4/af_inet.cstatic inline int closing(struct sock * sk)
sk751net/ipv4/af_inet.cswitch (sk->state) {
sk769net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sk770net/ipv4/af_inet.cif (sk == NULL) 
sk773net/ipv4/af_inet.csk->state_change(sk);
sk779net/ipv4/af_inet.cip_mc_drop_socket(sk);
sk790net/ipv4/af_inet.cif (sk->linger == 0 || (current->flags & PF_EXITING))
sk792net/ipv4/af_inet.csk->prot->close(sk,0);
sk793net/ipv4/af_inet.csk->dead = 1;
sk797net/ipv4/af_inet.csk->prot->close(sk, 0);
sk799net/ipv4/af_inet.cif (sk->lingertime)
sk800net/ipv4/af_inet.ccurrent->timeout = jiffies + HZ*sk->lingertime;
sk801net/ipv4/af_inet.cwhile(closing(sk) && current->timeout>0) 
sk803net/ipv4/af_inet.cinterruptible_sleep_on(sk->sleep);
sk817net/ipv4/af_inet.csk->dead = 1;
sk819net/ipv4/af_inet.clock_sock(sk);
sk828net/ipv4/af_inet.crelease_sock(sk);
sk830net/ipv4/af_inet.csk->socket = NULL;
sk839net/ipv4/af_inet.cstruct sock *sk=(struct sock *)sock->data, *sk2;
sk847net/ipv4/af_inet.cif(sk->prot->bind)
sk848net/ipv4/af_inet.creturn sk->prot->bind(sk,uaddr, addr_len);
sk851net/ipv4/af_inet.cif (sk->state != TCP_CLOSE)
sk858net/ipv4/af_inet.cif (sk->num != 0) 
sk872net/ipv4/af_inet.csnum = get_new_socknum(sk->prot, 0);
sk891net/ipv4/af_inet.csk->rcv_saddr = addr->sin_addr.s_addr;
sk893net/ipv4/af_inet.csk->saddr = 0;  /* Use device */
sk895net/ipv4/af_inet.csk->saddr = addr->sin_addr.s_addr;
sk901net/ipv4/af_inet.cfor(sk2 = sk->prot->sock_array[snum & (SOCK_ARRAY_SIZE -1)];
sk916net/ipv4/af_inet.cif (!sk2->rcv_saddr || !sk->rcv_saddr)
sk921net/ipv4/af_inet.cif(sk2->reuse && sk->reuse)
sk931net/ipv4/af_inet.cif (sk2->rcv_saddr != sk->rcv_saddr) 
sk937net/ipv4/af_inet.cif (!sk->reuse)
sk955net/ipv4/af_inet.cremove_sock(sk);
sk960net/ipv4/af_inet.cput_sock(snum, sk);
sk961net/ipv4/af_inet.csk->dummy_th.source = ntohs(sk->num);
sk962net/ipv4/af_inet.csk->daddr = 0;
sk963net/ipv4/af_inet.csk->dummy_th.dest = 0;
sk965net/ipv4/af_inet.cip_rt_put(sk->ip_route_cache);
sk966net/ipv4/af_inet.csk->ip_route_cache=NULL;
sk978net/ipv4/af_inet.cstruct sock *sk=(struct sock *)sock->data;
sk982net/ipv4/af_inet.cif (sock->state == SS_CONNECTING && tcp_connected(sk->state))
sk989net/ipv4/af_inet.cif (sock->state == SS_CONNECTING && sk->protocol == IPPROTO_TCP && (flags & O_NONBLOCK))
sk991net/ipv4/af_inet.cif(sk->err!=0)
sk992net/ipv4/af_inet.creturn sock_error(sk);
sk998net/ipv4/af_inet.cif(inet_autobind(sk)!=0)
sk1000net/ipv4/af_inet.cif (sk->prot->connect == NULL) 
sk1002net/ipv4/af_inet.cerr = sk->prot->connect(sk, (struct sockaddr_in *)uaddr, addr_len);
sk1008net/ipv4/af_inet.cif (sk->state > TCP_FIN_WAIT2 && sock->state==SS_CONNECTING)
sk1011net/ipv4/af_inet.creturn sock_error(sk);
sk1014net/ipv4/af_inet.cif (sk->state != TCP_ESTABLISHED &&(flags & O_NONBLOCK)) 
sk1018net/ipv4/af_inet.cwhile(sk->state == TCP_SYN_SENT || sk->state == TCP_SYN_RECV) 
sk1020net/ipv4/af_inet.cinterruptible_sleep_on(sk->sleep);
sk1028net/ipv4/af_inet.cif(sk->err && sk->protocol == IPPROTO_TCP)
sk1032net/ipv4/af_inet.creturn sock_error(sk); /* set by tcp_err() */
sk1038net/ipv4/af_inet.cif (sk->state != TCP_ESTABLISHED && sk->err) 
sk1041net/ipv4/af_inet.creturn sock_error(sk);
sk1072net/ipv4/af_inet.cstruct sock *sk=(struct sock *)newsock->data;
sk1074net/ipv4/af_inet.csk->dead = 1;
sk1075net/ipv4/af_inet.cdestroy_sock(sk);
sk1142net/ipv4/af_inet.cstruct sock *sk;
sk1145net/ipv4/af_inet.csk = (struct sock *) sock->data;
sk1148net/ipv4/af_inet.cif (!tcp_connected(sk->state)) 
sk1150net/ipv4/af_inet.csin->sin_port = sk->dummy_th.dest;
sk1151net/ipv4/af_inet.csin->sin_addr.s_addr = sk->daddr;
sk1155net/ipv4/af_inet.c__u32 addr = sk->rcv_saddr;
sk1157net/ipv4/af_inet.caddr = sk->saddr;
sk1161net/ipv4/af_inet.csin->sin_port = sk->dummy_th.source;
sk1173net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sk1175net/ipv4/af_inet.cif (sk->prot->recvmsg == NULL) 
sk1177net/ipv4/af_inet.cif(sk->err)
sk1178net/ipv4/af_inet.creturn sock_error(sk);
sk1180net/ipv4/af_inet.cif(inet_autobind(sk)!=0)
sk1182net/ipv4/af_inet.creturn(sk->prot->recvmsg(sk, ubuf, size, noblock, flags,addr_len));
sk1189net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sk1190net/ipv4/af_inet.cif (sk->shutdown & SEND_SHUTDOWN) 
sk1195net/ipv4/af_inet.cif (sk->prot->sendmsg == NULL) 
sk1197net/ipv4/af_inet.cif(sk->err)
sk1198net/ipv4/af_inet.creturn sock_error(sk);
sk1200net/ipv4/af_inet.cif(inet_autobind(sk)!=0)
sk1202net/ipv4/af_inet.creturn(sk->prot->sendmsg(sk, msg, size, noblock, flags));
sk1209net/ipv4/af_inet.cstruct sock *sk=(struct sock*)sock->data;
sk1220net/ipv4/af_inet.cif (sock->state == SS_CONNECTING && sk->state == TCP_ESTABLISHED)
sk1222net/ipv4/af_inet.cif (!tcp_connected(sk->state)) 
sk1224net/ipv4/af_inet.csk->shutdown |= how;
sk1225net/ipv4/af_inet.cif (sk->prot->shutdown)
sk1226net/ipv4/af_inet.csk->prot->shutdown(sk, how);
sk1233net/ipv4/af_inet.cstruct sock *sk=(struct sock *) sock->data;
sk1234net/ipv4/af_inet.cif (sk->prot->select == NULL) 
sk1238net/ipv4/af_inet.creturn(sk->prot->select(sk, sel_type, wait));
sk1253net/ipv4/af_inet.cstruct sock *sk=(struct sock *)sock->data;
sk1268net/ipv4/af_inet.csk->proc = pid;
sk1275net/ipv4/af_inet.cput_fs_long(sk->proc,(int *)arg);
sk1278net/ipv4/af_inet.cif(sk->stamp.tv_sec==0)
sk1283net/ipv4/af_inet.cmemcpy_tofs((void *)arg,&sk->stamp,sizeof(struct timeval));
sk1337net/ipv4/af_inet.cif (sk->prot->ioctl==NULL) 
sk1339net/ipv4/af_inet.creturn(sk->prot->ioctl(sk, cmd, arg));
sk1418net/ipv4/af_inet.cstruct sock *get_sock_raw(struct sock *sk, 
sk1425net/ipv4/af_inet.cs=sk;
sk1447net/ipv4/af_inet.cstruct sock *get_sock_mcast(struct sock *sk, 
sk1466net/ipv4/af_inet.cs=sk;
sk731net/ipv4/arp.cif(skb->sk==NULL)
sk734net/ipv4/arp.cdev_queue_xmit(skb,skb->dev,skb->sk->priority);
sk1229net/ipv4/arp.cif (skb->sk)
sk1231net/ipv4/arp.cskb->sk->err = EHOSTDOWN;
sk1232net/ipv4/arp.cskb->sk->error_report(skb->sk);
sk233net/ipv4/icmp.cstruct sock *sk=icmp_socket.data;
sk237net/ipv4/icmp.cip_build_xmit(sk, icmp_glue_bits, icmp_param, 
sk742net/ipv4/icmp.cstruct sock *sk;
sk748net/ipv4/icmp.csk=icmp_socket.data;
sk749net/ipv4/icmp.csk->allocation=GFP_ATOMIC;
sk750net/ipv4/icmp.csk->num = 256;      /* Don't receive any data */
sk573net/ipv4/igmp.cint ip_mc_join_group(struct sock *sk , struct device *dev, unsigned long addr)
sk581net/ipv4/igmp.cif(sk->ip_mc_list==NULL)
sk583net/ipv4/igmp.cif((sk->ip_mc_list=(struct ip_mc_socklist *)kmalloc(sizeof(*sk->ip_mc_list), GFP_KERNEL))==NULL)
sk585net/ipv4/igmp.cmemset(sk->ip_mc_list,'\0',sizeof(*sk->ip_mc_list));
sk589net/ipv4/igmp.cif(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev)
sk591net/ipv4/igmp.cif(sk->ip_mc_list->multidev[i]==NULL)
sk597net/ipv4/igmp.csk->ip_mc_list->multiaddr[unused]=addr;
sk598net/ipv4/igmp.csk->ip_mc_list->multidev[unused]=dev;
sk607net/ipv4/igmp.cint ip_mc_leave_group(struct sock *sk, struct device *dev, unsigned long addr)
sk614net/ipv4/igmp.cif(sk->ip_mc_list==NULL)
sk619net/ipv4/igmp.cif(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev)
sk621net/ipv4/igmp.csk->ip_mc_list->multidev[i]=NULL;
sk633net/ipv4/igmp.cvoid ip_mc_drop_socket(struct sock *sk)
sk637net/ipv4/igmp.cif(sk->ip_mc_list==NULL)
sk642net/ipv4/igmp.cif(sk->ip_mc_list->multidev[i])
sk644net/ipv4/igmp.cip_mc_dec_group(sk->ip_mc_list->multidev[i], sk->ip_mc_list->multiaddr[i]);
sk645net/ipv4/igmp.csk->ip_mc_list->multidev[i]=NULL;
sk648net/ipv4/igmp.ckfree_s(sk->ip_mc_list,sizeof(*sk->ip_mc_list));
sk649net/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, int 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);
sk245net/ipv4/packet.cint packet_attach(struct sock *sk)
sk252net/ipv4/packet.cp->type = sk->num;
sk253net/ipv4/packet.cp->data = (void *)sk;
sk261net/ipv4/packet.csk->protinfo.af_packet.prot_hook = p;
sk269net/ipv4/packet.cstatic int packet_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len)
sk288net/ipv4/packet.cif((sk->protinfo.af_packet.bound_dev=dev_get(dev))==NULL)
sk293net/ipv4/packet.cif(!(sk->protinfo.af_packet.bound_dev->flags&IFF_UP))
sk303net/ipv4/packet.cmemcpy(sk->protinfo.af_packet.device_name,dev,15);
sk304net/ipv4/packet.cif(sk->protinfo.af_packet.prot_hook)
sk305net/ipv4/packet.cdev_remove_pack(sk->protinfo.af_packet.prot_hook);
sk308net/ipv4/packet.cint err=packet_attach(sk);
sk315net/ipv4/packet.csk->protinfo.af_packet.prot_hook->dev=sk->protinfo.af_packet.bound_dev;
sk316net/ipv4/packet.cdev_add_pack(sk->protinfo.af_packet.prot_hook);
sk350net/ipv4/packet.cstatic int packet_init(struct sock *sk)
sk356net/ipv4/packet.cint err=packet_attach(sk);
sk364net/ipv4/packet.csk->protinfo.af_packet.notifier.notifier_call=packet_unbind;
sk365net/ipv4/packet.csk->protinfo.af_packet.notifier.priority=0;
sk367net/ipv4/packet.cregister_netdevice_notifier(&sk->protinfo.af_packet.notifier);
sk378net/ipv4/packet.cint packet_recvmsg(struct sock *sk, struct msghdr *msg, int len,
sk386net/ipv4/packet.cif (sk->shutdown & RCV_SHUTDOWN) 
sk393net/ipv4/packet.cif(sk->protinfo.af_packet.prot_hook==NULL)
sk410net/ipv4/packet.cskb=skb_recv_datagram(sk,flags,noblock,&err);
sk429net/ipv4/packet.csk->stamp=skb->stamp;
sk446net/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, int timeout)
sk290net/ipv4/raw.csk->state = TCP_CLOSE;
sk292net/ipv4/raw.cif(sk==mroute_socket)
sk294net/ipv4/raw.cmroute_close(sk);
sk301net/ipv4/raw.cstatic int raw_init(struct sock *sk)
sk312net/ipv4/raw.cint raw_recvmsg(struct sock *sk, struct msghdr *msg, int len,
sk323net/ipv4/raw.cif (sk->shutdown & RCV_SHUTDOWN) 
sk329net/ipv4/raw.cskb=skb_recv_datagram(sk,flags,noblock,&err);
sk336net/ipv4/raw.csk->stamp=skb->stamp;
sk344net/ipv4/raw.cskb_free_datagram(sk, skb);
sk425net/ipv4/tcp.cstatic void tcp_close(struct sock *sk, int 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.cskb->sk->dead=1;
sk484net/ipv4/tcp.ctcp_close(skb->sk, 0);
sk494net/ipv4/tcp.cvoid tcp_time_wait(struct sock *sk)
sk496net/ipv4/tcp.ctcp_set_state(sk,TCP_TIME_WAIT);
sk497net/ipv4/tcp.csk->shutdown = SHUTDOWN_MASK;
sk498net/ipv4/tcp.cif (!sk->dead)
sk499net/ipv4/tcp.csk->state_change(sk);
sk500net/ipv4/tcp.ctcp_reset_msl_timer(sk, TIME_CLOSE, TCP_TIMEWAIT_LEN);
sk517net/ipv4/tcp.cstruct sock *sk;
sk526net/ipv4/tcp.csk = get_sock(&tcp_prot, th->source, daddr, th->dest, saddr);
sk528net/ipv4/tcp.cif (sk == NULL) 
sk538net/ipv4/tcp.cif (sk->cong_window > 4)
sk539net/ipv4/tcp.csk->cong_window--;
sk545net/ipv4/tcp.csk->err=EPROTO;
sk546net/ipv4/tcp.csk->error_report(sk);
sk559net/ipv4/tcp.cif ((rt = sk->ip_route_cache) != NULL)
sk563net/ipv4/tcp.cif (sk->mtu > new_mtu - sizeof(struct iphdr) - sizeof(struct tcphdr)
sk565net/ipv4/tcp.csk->mtu = new_mtu - sizeof(struct iphdr) - sizeof(struct tcphdr);
sk578net/ipv4/tcp.cif(icmp_err_convert[code].fatal || sk->state == TCP_SYN_SENT || sk->state == TCP_SYN_RECV)
sk580net/ipv4/tcp.csk->err = icmp_err_convert[code].errno;
sk581net/ipv4/tcp.cif (sk->state == TCP_SYN_SENT || sk->state == TCP_SYN_RECV) 
sk584net/ipv4/tcp.ctcp_set_state(sk,TCP_CLOSE);
sk585net/ipv4/tcp.csk->error_report(sk);    /* Wake people up to see the error (see connect in sock.c) */
sk589net/ipv4/tcp.csk->err_soft = icmp_err_convert[code].errno;
sk600net/ipv4/tcp.cstatic int tcp_readable(struct sock *sk)
sk608net/ipv4/tcp.cif(sk && sk->debug)
sk609net/ipv4/tcp.cprintk("tcp_readable: %p - ",sk);
sk613net/ipv4/tcp.cif (sk == NULL || (skb = skb_peek(&sk->receive_queue)) == NULL)
sk616net/ipv4/tcp.cif(sk && sk->debug) 
sk621net/ipv4/tcp.ccounted = sk->copied_seq;  /* Where we are at the moment */
sk663net/ipv4/tcp.cwhile(skb != (struct sk_buff *)&sk->receive_queue);
sk666net/ipv4/tcp.cif(sk->debug)
sk674net/ipv4/tcp.cstatic int tcp_listen_select(struct sock *sk, int sel_type, select_table *wait)
sk679net/ipv4/tcp.clock_sock(sk);
sk680net/ipv4/tcp.cretval = (tcp_find_established(sk) != NULL);
sk681net/ipv4/tcp.crelease_sock(sk);
sk697net/ipv4/tcp.cstatic int tcp_select(struct sock *sk, int sel_type, select_table *wait)
sk699net/ipv4/tcp.cif (sk->state == TCP_LISTEN)
sk700net/ipv4/tcp.creturn tcp_listen_select(sk, sel_type, wait);
sk704net/ipv4/tcp.cif (sk->err)
sk706net/ipv4/tcp.cif (sk->state == TCP_SYN_SENT || sk->state == TCP_SYN_RECV)
sk709net/ipv4/tcp.cif (sk->shutdown & RCV_SHUTDOWN)
sk712net/ipv4/tcp.cif (sk->acked_seq == sk->copied_seq)
sk715net/ipv4/tcp.cif (sk->urg_seq != sk->copied_seq ||
sk716net/ipv4/tcp.csk->acked_seq != sk->copied_seq+1 ||
sk717net/ipv4/tcp.csk->urginline || !sk->urg_data)
sk722net/ipv4/tcp.cif (sk->err)
sk724net/ipv4/tcp.cif (sk->shutdown & SEND_SHUTDOWN) 
sk726net/ipv4/tcp.cif (sk->state == TCP_SYN_SENT || sk->state == TCP_SYN_RECV)
sk733net/ipv4/tcp.cif (sock_wspace(sk) < sk->mtu+128+sk->prot->max_header)
sk738net/ipv4/tcp.cif (sk->urg_data)
sk742net/ipv4/tcp.cselect_wait(sk->sleep, wait);
sk746net/ipv4/tcp.cint tcp_ioctl(struct sock *sk, int cmd, unsigned long arg)
sk759net/ipv4/tcp.cif (sk->state == TCP_LISTEN) 
sk762net/ipv4/tcp.clock_sock(sk);
sk763net/ipv4/tcp.camount = tcp_readable(sk);
sk764net/ipv4/tcp.crelease_sock(sk);
sk773net/ipv4/tcp.cint answ = sk->urg_data && sk->urg_seq == sk->copied_seq;
sk785net/ipv4/tcp.cif (sk->state == TCP_LISTEN) return(-EINVAL);
sk786net/ipv4/tcp.camount = sock_wspace(sk);
sk837net/ipv4/tcp.cextern __inline int tcp_build_header(struct tcphdr *th, struct sock *sk, int push)
sk840net/ipv4/tcp.cmemcpy(th,(void *) &(sk->dummy_th), sizeof(*th));
sk841net/ipv4/tcp.cth->seq = htonl(sk->write_seq);
sk843net/ipv4/tcp.csk->ack_backlog = 0;
sk844net/ipv4/tcp.csk->bytes_rcv = 0;
sk845net/ipv4/tcp.csk->ack_timed = 0;
sk846net/ipv4/tcp.cth->ack_seq = htonl(sk->acked_seq);
sk847net/ipv4/tcp.csk->window = tcp_select_window(sk);
sk848net/ipv4/tcp.cth->window = htons(sk->window);
sk856net/ipv4/tcp.cstatic void wait_for_tcp_connect(struct sock * sk)
sk858net/ipv4/tcp.crelease_sock(sk);
sk860net/ipv4/tcp.cif (sk->state != TCP_ESTABLISHED && sk->state != TCP_CLOSE_WAIT && sk->err == 0) 
sk862net/ipv4/tcp.cinterruptible_sleep_on(sk->sleep);  
sk865net/ipv4/tcp.clock_sock(sk);
sk871net/ipv4/tcp.cstatic void wait_for_tcp_memory(struct sock * sk)
sk873net/ipv4/tcp.crelease_sock(sk);
sk875net/ipv4/tcp.cif (sk->wmem_alloc*2 > sk->sndbuf &&
sk876net/ipv4/tcp.c(sk->state == TCP_ESTABLISHED||sk->state == TCP_CLOSE_WAIT)
sk877net/ipv4/tcp.c&& sk->err == 0) 
sk879net/ipv4/tcp.csk->socket->flags &= ~SO_NOSPACE;
sk880net/ipv4/tcp.cinterruptible_sleep_on(sk->sleep);
sk883net/ipv4/tcp.clock_sock(sk);
sk892net/ipv4/tcp.cstatic int do_tcp_sendmsg(struct sock *sk, struct msghdr *msg,
sk914net/ipv4/tcp.cprot = sk->prot;
sk920net/ipv4/tcp.cif (sk->err) 
sk924net/ipv4/tcp.creturn sock_error(sk);
sk930net/ipv4/tcp.cif (sk->shutdown & SEND_SHUTDOWN) 
sk940net/ipv4/tcp.cwhile (sk->state != TCP_ESTABLISHED && sk->state != TCP_CLOSE_WAIT) 
sk945net/ipv4/tcp.cif (sk->err) 
sk946net/ipv4/tcp.creturn sock_error(sk);
sk948net/ipv4/tcp.cif (sk->state != TCP_SYN_SENT && sk->state != TCP_SYN_RECV)
sk950net/ipv4/tcp.cif (sk->keepopen)
sk961net/ipv4/tcp.cwait_for_tcp_connect(sk);
sk989net/ipv4/tcp.cint new_mss = min(sk->mtu, sk->max_window);
sk990net/ipv4/tcp.cif (new_mss < sk->mss)
sk992net/ipv4/tcp.ctcp_send_partial(sk);
sk993net/ipv4/tcp.csk->mss = new_mss;
sk998net/ipv4/tcp.cif ((skb = tcp_dequeue_partial(sk)) != NULL) 
sk1007net/ipv4/tcp.ccopy = min(sk->mss - tcp_size, seglen);
sk1019net/ipv4/tcp.csk->write_seq += copy;
sk1022net/ipv4/tcp.cif (tcp_size >= sk->mss || (flags & MSG_OOB) || !sk->packets_out)
sk1023net/ipv4/tcp.ctcp_send_skb(sk, skb);
sk1025net/ipv4/tcp.ctcp_enqueue_partial(skb, sk);
sk1041net/ipv4/tcp.ccopy = sk->window_seq - sk->write_seq;
sk1042net/ipv4/tcp.cif (copy <= 0 || copy < (sk->max_window >> 1) || copy > sk->mss)
sk1043net/ipv4/tcp.ccopy = sk->mss;
sk1052net/ipv4/tcp.cif (copy < sk->mss && !(flags & MSG_OOB) && sk->packets_out) 
sk1054net/ipv4/tcp.cskb = sock_wmalloc(sk, sk->mtu + 128 + prot->max_header + 15, 0, GFP_KERNEL);
sk1059net/ipv4/tcp.cskb = sock_wmalloc(sk, copy + prot->max_header + 15 , 0, GFP_KERNEL);
sk1068net/ipv4/tcp.csk->socket->flags |= SO_NOSPACE;
sk1083net/ipv4/tcp.cwait_for_tcp_memory(sk);
sk1087net/ipv4/tcp.cskb->sk = sk;
sk1089net/ipv4/tcp.cskb->localroute = sk->localroute|(flags&MSG_DONTROUTE);
sk1096net/ipv4/tcp.ctmp = prot->build_header(skb, sk->saddr, sk->daddr, &dev,
sk1097net/ipv4/tcp.cIPPROTO_TCP, sk->opt, skb->truesize,sk->ip_tos,sk->ip_ttl,&sk->ip_route_cache);
sk1100net/ipv4/tcp.csock_wfree(sk, skb);
sk1110net/ipv4/tcp.ctmp = tcp_build_header(skb->h.th, sk, seglen-copy);
sk1113net/ipv4/tcp.csock_wfree(sk, skb);
sk1133net/ipv4/tcp.csk->write_seq += copy;
sk1137net/ipv4/tcp.ctcp_enqueue_partial(send_tmp, sk);
sk1140net/ipv4/tcp.ctcp_send_skb(sk, skb);
sk1143net/ipv4/tcp.csk->err = 0;
sk1149net/ipv4/tcp.cstatic int tcp_sendmsg(struct sock *sk, struct msghdr *msg,
sk1168net/ipv4/tcp.cif(sk->state == TCP_CLOSE)
sk1171net/ipv4/tcp.cif (addr->sin_port != sk->dummy_th.dest) 
sk1173net/ipv4/tcp.cif (addr->sin_addr.s_addr != sk->daddr) 
sk1177net/ipv4/tcp.clock_sock(sk);
sk1178net/ipv4/tcp.cretval = do_tcp_sendmsg(sk, msg, len, nonblock, flags);
sk1189net/ipv4/tcp.cif (sk->partial) {
sk1190net/ipv4/tcp.cif (!sk->packets_out ||
sk1191net/ipv4/tcp.c(sk->nonagle && before(sk->write_seq , sk->window_seq))) {
sk1192net/ipv4/tcp.ctcp_send_partial(sk);
sk1196net/ipv4/tcp.crelease_sock(sk);
sk1209net/ipv4/tcp.cvoid tcp_read_wakeup(struct sock *sk)
sk1216net/ipv4/tcp.cif (!sk->ack_backlog) 
sk1223net/ipv4/tcp.cif ((sk->state == TCP_CLOSE) || (sk->state == TCP_TIME_WAIT))
sk1237net/ipv4/tcp.cbuff = sock_wmalloc(sk,MAX_ACK_SIZE,1, GFP_ATOMIC);
sk1241net/ipv4/tcp.ctcp_reset_xmit_timer(sk, TIME_WRITE, HZ);
sk1245net/ipv4/tcp.cbuff->sk = sk;
sk1246net/ipv4/tcp.cbuff->localroute = sk->localroute;
sk1253net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
sk1254net/ipv4/tcp.cIPPROTO_TCP, sk->opt, MAX_ACK_SIZE,sk->ip_tos,sk->ip_ttl,&sk->ip_route_cache);
sk1258net/ipv4/tcp.csock_wfree(sk, buff);
sk1264net/ipv4/tcp.cmemcpy(t1,(void *) &sk->dummy_th, sizeof(*t1));
sk1265net/ipv4/tcp.ct1->seq = htonl(sk->sent_seq);
sk1267net/ipv4/tcp.csk->ack_backlog = 0;
sk1268net/ipv4/tcp.csk->bytes_rcv = 0;
sk1270net/ipv4/tcp.csk->window = tcp_select_window(sk);
sk1271net/ipv4/tcp.ct1->window = htons(sk->window);
sk1272net/ipv4/tcp.ct1->ack_seq = htonl(sk->acked_seq);
sk1274net/ipv4/tcp.ctcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), buff);
sk1275net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
sk1285net/ipv4/tcp.cstatic int tcp_recv_urg(struct sock * sk, int nonblock,
sk1291net/ipv4/tcp.cif (sk->urginline || !sk->urg_data || sk->urg_data == URG_READ)
sk1294net/ipv4/tcp.cif (sk->err) 
sk1295net/ipv4/tcp.creturn sock_error(sk);
sk1297net/ipv4/tcp.cif (sk->state == TCP_CLOSE || sk->done) 
sk1299net/ipv4/tcp.cif (!sk->done) 
sk1301net/ipv4/tcp.csk->done = 1;
sk1307net/ipv4/tcp.cif (sk->shutdown & RCV_SHUTDOWN) 
sk1309net/ipv4/tcp.csk->done = 1;
sk1312net/ipv4/tcp.clock_sock(sk);
sk1313net/ipv4/tcp.cif (sk->urg_data & URG_VALID) 
sk1315net/ipv4/tcp.cchar c = sk->urg_data;
sk1317net/ipv4/tcp.csk->urg_data = URG_READ;
sk1323net/ipv4/tcp.csin->sin_addr.s_addr=sk->daddr;
sk1324net/ipv4/tcp.csin->sin_port=sk->dummy_th.dest;
sk1328net/ipv4/tcp.crelease_sock(sk);
sk1331net/ipv4/tcp.crelease_sock(sk);
sk1349net/ipv4/tcp.cstatic inline void tcp_eat_skb(struct sock *sk, struct sk_buff * skb)
sk1351net/ipv4/tcp.csk->ack_backlog++;
sk1352net/ipv4/tcp.cskb->sk = sk;
sk1353net/ipv4/tcp.c__skb_unlink(skb, &sk->receive_queue);
sk1364net/ipv4/tcp.cstatic void cleanup_rbuf(struct sock *sk)
sk1373net/ipv4/tcp.cwhile ((skb=skb_peek(&sk->receive_queue)) != NULL) {
sk1376net/ipv4/tcp.ctcp_eat_skb(sk, skb);
sk1386net/ipv4/tcp.crspace=sock_rspace(sk);
sk1387net/ipv4/tcp.cif(sk->debug)
sk1409net/ipv4/tcp.cif (rspace > (sk->window - sk->bytes_rcv + sk->mtu)) 
sk1412net/ipv4/tcp.ctcp_read_wakeup(sk);
sk1417net/ipv4/tcp.cint was_active = del_timer(&sk->retransmit_timer);
sk1418net/ipv4/tcp.cif (!was_active || jiffies+TCP_ACK_TIME < sk->timer.expires) 
sk1420net/ipv4/tcp.ctcp_reset_xmit_timer(sk, TIME_WRITE, TCP_ACK_TIME);
sk1423net/ipv4/tcp.cadd_timer(&sk->retransmit_timer);
sk1432net/ipv4/tcp.cstatic int tcp_recvmsg(struct sock *sk, struct msghdr *msg,
sk1445net/ipv4/tcp.cif (sk->state == TCP_LISTEN)
sk1453net/ipv4/tcp.creturn tcp_recv_urg(sk, nonblock, msg, len, flags, addr_len);
sk1461net/ipv4/tcp.cpeek_seq = sk->copied_seq;
sk1462net/ipv4/tcp.cseq = &sk->copied_seq;
sk1466net/ipv4/tcp.cadd_wait_queue(sk->sleep, &wait);
sk1467net/ipv4/tcp.clock_sock(sk);
sk1477net/ipv4/tcp.cif (copied && sk->urg_data && sk->urg_seq == *seq)
sk1486net/ipv4/tcp.cskb = skb_peek(&sk->receive_queue);
sk1504net/ipv4/tcp.cwhile (skb != (struct sk_buff *)&sk->receive_queue);
sk1509net/ipv4/tcp.cif (sk->err) 
sk1511net/ipv4/tcp.ccopied = sock_error(sk);
sk1515net/ipv4/tcp.cif (sk->state == TCP_CLOSE) 
sk1517net/ipv4/tcp.cif (!sk->done) 
sk1519net/ipv4/tcp.csk->done = 1;
sk1526net/ipv4/tcp.cif (sk->shutdown & RCV_SHUTDOWN) 
sk1528net/ipv4/tcp.csk->done = 1;
sk1538net/ipv4/tcp.ccleanup_rbuf(sk);
sk1539net/ipv4/tcp.crelease_sock(sk);
sk1540net/ipv4/tcp.csk->socket->flags |= SO_WAITDATA;
sk1542net/ipv4/tcp.csk->socket->flags &= ~SO_WAITDATA;
sk1543net/ipv4/tcp.clock_sock(sk);
sk1573net/ipv4/tcp.cif (sk->urg_data) 
sk1575net/ipv4/tcp.cu32 urg_offset = sk->urg_seq - *seq;
sk1580net/ipv4/tcp.cif (!sk->urginline) 
sk1618net/ipv4/tcp.cif (after(sk->copied_seq,sk->urg_seq))
sk1619net/ipv4/tcp.csk->urg_data = 0;
sk1633net/ipv4/tcp.ctcp_eat_skb(sk, skb);    
sk1646net/ipv4/tcp.csk->shutdown |= RCV_SHUTDOWN;
sk1655net/ipv4/tcp.csin->sin_addr.s_addr=sk->daddr;
sk1656net/ipv4/tcp.csin->sin_port=sk->dummy_th.dest;
sk1661net/ipv4/tcp.cremove_wait_queue(sk->sleep, &wait);
sk1665net/ipv4/tcp.ccleanup_rbuf(sk);
sk1666net/ipv4/tcp.crelease_sock(sk);
sk1679net/ipv4/tcp.cstatic int tcp_close_state(struct sock *sk, int dead)
sk1683net/ipv4/tcp.cswitch(sk->state)
sk1695net/ipv4/tcp.cns=sk->state;
sk1706net/ipv4/tcp.ctcp_set_state(sk,ns);
sk1719net/ipv4/tcp.cint timer_active=del_timer(&sk->timer);
sk1721net/ipv4/tcp.cadd_timer(&sk->timer);
sk1723net/ipv4/tcp.ctcp_reset_msl_timer(sk, TIME_CLOSE, TCP_FIN_TIMEOUT);
sk1734net/ipv4/tcp.cvoid tcp_shutdown(struct sock *sk, int how)
sk1749net/ipv4/tcp.cif (sk->state == TCP_FIN_WAIT1 ||
sk1750net/ipv4/tcp.csk->state == TCP_FIN_WAIT2 ||
sk1751net/ipv4/tcp.csk->state == TCP_CLOSING ||
sk1752net/ipv4/tcp.csk->state == TCP_LAST_ACK ||
sk1753net/ipv4/tcp.csk->state == TCP_TIME_WAIT || 
sk1754net/ipv4/tcp.csk->state == TCP_CLOSE ||
sk1755net/ipv4/tcp.csk->state == TCP_LISTEN
sk1760net/ipv4/tcp.clock_sock(sk);
sk1766net/ipv4/tcp.csk->shutdown |= SEND_SHUTDOWN;
sk1772net/ipv4/tcp.cif (sk->partial)
sk1773net/ipv4/tcp.ctcp_send_partial(sk);
sk1779net/ipv4/tcp.cif (tcp_close_state(sk,0))
sk1780net/ipv4/tcp.ctcp_send_fin(sk);
sk1782net/ipv4/tcp.crelease_sock(sk);
sk1785net/ipv4/tcp.cstatic void tcp_close(struct sock *sk, int timeout)
sk1792net/ipv4/tcp.clock_sock(sk);
sk1795net/ipv4/tcp.cif(sk->state == TCP_LISTEN)
sk1798net/ipv4/tcp.ctcp_set_state(sk, TCP_CLOSE);
sk1799net/ipv4/tcp.ctcp_close_pending(sk);
sk1800net/ipv4/tcp.crelease_sock(sk);
sk1804net/ipv4/tcp.csk->keepopen = 1;
sk1805net/ipv4/tcp.csk->shutdown = SHUTDOWN_MASK;
sk1807net/ipv4/tcp.cif (!sk->dead) 
sk1808net/ipv4/tcp.csk->state_change(sk);
sk1820net/ipv4/tcp.cwhile((skb=skb_dequeue(&sk->receive_queue))!=NULL)
sk1826net/ipv4/tcp.cif (sk->partial) 
sk1827net/ipv4/tcp.ctcp_send_partial(sk);
sk1838net/ipv4/tcp.ctcp_set_state(sk, TCP_CLOSE);  /* Dead */
sk1842net/ipv4/tcp.cif(tcp_close_state(sk,1)==1)
sk1844net/ipv4/tcp.ctcp_send_fin(sk);
sk1847net/ipv4/tcp.crelease_sock(sk);
sk1855net/ipv4/tcp.cstatic struct sock *tcp_accept(struct sock *sk, int flags)
sk1865net/ipv4/tcp.cif (sk->state != TCP_LISTEN) 
sk1867net/ipv4/tcp.csk->err = EINVAL;
sk1873net/ipv4/tcp.clock_sock(sk);
sk1875net/ipv4/tcp.cwhile((skb = tcp_dequeue_established(sk)) == NULL) 
sk1880net/ipv4/tcp.crelease_sock(sk);
sk1881net/ipv4/tcp.csk->err = EAGAIN;
sk1885net/ipv4/tcp.crelease_sock(sk);
sk1886net/ipv4/tcp.cinterruptible_sleep_on(sk->sleep);
sk1890net/ipv4/tcp.csk->err = ERESTARTSYS;
sk1893net/ipv4/tcp.clock_sock(sk);
sk1901net/ipv4/tcp.cnewsk = skb->sk;
sk1904net/ipv4/tcp.csk->ack_backlog--;
sk1905net/ipv4/tcp.crelease_sock(sk);
sk1913net/ipv4/tcp.cstatic int tcp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len)
sk1923net/ipv4/tcp.cif (sk->state != TCP_CLOSE) 
sk1930net/ipv4/tcp.cif(sk->daddr)
sk1953net/ipv4/tcp.clock_sock(sk);
sk1954net/ipv4/tcp.csk->daddr = usin->sin_addr.s_addr;
sk1955net/ipv4/tcp.csk->write_seq = tcp_init_seq();
sk1956net/ipv4/tcp.csk->window_seq = sk->write_seq;
sk1957net/ipv4/tcp.csk->rcv_ack_seq = sk->write_seq -1;
sk1958net/ipv4/tcp.csk->err = 0;
sk1959net/ipv4/tcp.csk->dummy_th.dest = usin->sin_port;
sk1960net/ipv4/tcp.crelease_sock(sk);
sk1962net/ipv4/tcp.cbuff = sock_wmalloc(sk,MAX_SYN_SIZE,0, GFP_KERNEL);
sk1967net/ipv4/tcp.clock_sock(sk);
sk1968net/ipv4/tcp.cbuff->sk = sk;
sk1970net/ipv4/tcp.cbuff->localroute = sk->localroute;
sk1977net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
sk1978net/ipv4/tcp.cIPPROTO_TCP, NULL, MAX_SYN_SIZE,sk->ip_tos,sk->ip_ttl,&sk->ip_route_cache);
sk1981net/ipv4/tcp.csock_wfree(sk, buff);
sk1982net/ipv4/tcp.crelease_sock(sk);
sk1985net/ipv4/tcp.cif ((rt = sk->ip_route_cache) != NULL && !sk->saddr)
sk1986net/ipv4/tcp.csk->saddr = rt->rt_src;
sk1987net/ipv4/tcp.csk->rcv_saddr = sk->saddr;
sk1991net/ipv4/tcp.cmemcpy(t1,(void *)&(sk->dummy_th), sizeof(*t1));
sk1992net/ipv4/tcp.cbuff->seq = sk->write_seq++;
sk1994net/ipv4/tcp.csk->sent_seq = sk->write_seq;
sk1995net/ipv4/tcp.cbuff->end_seq = sk->write_seq;
sk2003net/ipv4/tcp.csk->window_clamp=rt->rt_window;
sk2005net/ipv4/tcp.csk->window_clamp=0;
sk2007net/ipv4/tcp.cif (sk->user_mss)
sk2008net/ipv4/tcp.csk->mtu = sk->user_mss;
sk2010net/ipv4/tcp.csk->mtu = rt->rt_mtu - sizeof(struct iphdr) - sizeof(struct tcphdr);
sk2012net/ipv4/tcp.csk->mtu = 576 - sizeof(struct iphdr) - sizeof(struct tcphdr);
sk2018net/ipv4/tcp.cif(sk->mtu <32)
sk2019net/ipv4/tcp.csk->mtu = 32;  /* Sanity limit */
sk2021net/ipv4/tcp.csk->mtu = min(sk->mtu, dev->mtu - sizeof(struct iphdr) - sizeof(struct tcphdr));
sk2035net/ipv4/tcp.csk->mtu=skip_pick_mtu(sk->mtu,dev);
sk2045net/ipv4/tcp.cptr[2] = (sk->mtu) >> 8;
sk2046net/ipv4/tcp.cptr[3] = (sk->mtu) & 0xff;
sk2048net/ipv4/tcp.ctcp_send_check(t1, sk->saddr, sk->daddr,
sk2056net/ipv4/tcp.ctcp_set_state(sk,TCP_SYN_SENT);
sk2058net/ipv4/tcp.csk->rto = rt->rt_irtt;
sk2060net/ipv4/tcp.csk->rto = TCP_TIMEOUT_INIT;
sk2061net/ipv4/tcp.csk->retransmit_timer.function=&tcp_retransmit_timer;
sk2062net/ipv4/tcp.csk->retransmit_timer.data = (unsigned long)sk;
sk2063net/ipv4/tcp.ctcp_reset_xmit_timer(sk, TIME_WRITE, sk->rto);  /* Timer for repeating the SYN until an answer  */
sk2064net/ipv4/tcp.csk->retransmits = 0;        /* Now works the right way instead of a hacked 
sk2067net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 0);  
sk2068net/ipv4/tcp.ctcp_reset_xmit_timer(sk, TIME_WRITE, sk->rto);
sk2072net/ipv4/tcp.crelease_sock(sk);
sk2080net/ipv4/tcp.cint tcp_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen)
sk2085net/ipv4/tcp.creturn ip_setsockopt(sk,level,optname,optval,optlen);
sk2106net/ipv4/tcp.csk->user_mss=val;
sk2109net/ipv4/tcp.csk->nonagle=(val==0)?0:1;
sk2116net/ipv4/tcp.cint tcp_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen)
sk2121net/ipv4/tcp.creturn ip_getsockopt(sk,level,optname,optval,optlen);
sk2126net/ipv4/tcp.cval=sk->user_mss;
sk2129net/ipv4/tcp.cval=sk->nonagle;
sk35net/ipv4/tcp_input.cextern __inline__ void tcp_delack_estimator(struct sock *sk)
sk41net/ipv4/tcp_input.cif (sk->lrcvtime == 0) 
sk43net/ipv4/tcp_input.csk->lrcvtime = jiffies;
sk44net/ipv4/tcp_input.csk->ato = HZ/3;
sk50net/ipv4/tcp_input.cm = jiffies - sk->lrcvtime;
sk52net/ipv4/tcp_input.csk->lrcvtime = jiffies;
sk57net/ipv4/tcp_input.cif (m > (sk->rtt >> 3)) 
sk59net/ipv4/tcp_input.csk->ato = sk->rtt >> 3;
sk66net/ipv4/tcp_input.csk->ato = (sk->ato >> 1) + m;
sk80net/ipv4/tcp_input.cextern __inline__ void tcp_rtt_estimator(struct sock *sk, struct sk_buff *oskb)
sk94net/ipv4/tcp_input.cm -= (sk->rtt >> 3);    /* m is now error in rtt est */
sk95net/ipv4/tcp_input.csk->rtt += m;           /* rtt = 7/8 rtt + 1/8 new */
sk98net/ipv4/tcp_input.cm -= (sk->mdev >> 2);   /* similar update on mdev */
sk99net/ipv4/tcp_input.csk->mdev += m;        /* mdev = 3/4 mdev + 1/4 new */
sk105net/ipv4/tcp_input.csk->rto = ((sk->rtt >> 2) + sk->mdev) >> 1;
sk106net/ipv4/tcp_input.cif (sk->rto > 120*HZ)
sk107net/ipv4/tcp_input.csk->rto = 120*HZ;
sk108net/ipv4/tcp_input.cif (sk->rto < HZ/5)  /* Was 1*HZ - keep .2 as minimum cos of the BSD delayed acks */
sk109net/ipv4/tcp_input.csk->rto = HZ/5;
sk110net/ipv4/tcp_input.csk->backoff = 0;
sk133net/ipv4/tcp_input.cstruct sock * sk;
sk135net/ipv4/tcp_input.csk = (struct sock *) th_cache_sk;
sk136net/ipv4/tcp_input.cif (!sk || saddr != th_cache_saddr || daddr != th_cache_daddr ||
sk138net/ipv4/tcp_input.csk = get_sock(&tcp_prot, dport, saddr, sport, daddr);
sk139net/ipv4/tcp_input.cif (sk) {
sk144net/ipv4/tcp_input.cth_cache_sk=sk;
sk147net/ipv4/tcp_input.creturn sk;
sk154net/ipv4/tcp_input.cstatic void bad_tcp_sequence(struct sock *sk, struct tcphdr *th, short len,
sk167net/ipv4/tcp_input.cif (sk->state==TCP_SYN_SENT || sk->state==TCP_SYN_RECV) 
sk169net/ipv4/tcp_input.ctcp_send_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl);
sk182net/ipv4/tcp_input.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
sk190net/ipv4/tcp_input.cextern __inline__ int tcp_sequence(struct sock *sk, u32 seq, u32 end_seq)
sk192net/ipv4/tcp_input.cu32 end_window = sk->acked_seq + sk->window;
sk196net/ipv4/tcp_input.c(before(seq, end_window) && !before(end_seq, sk->acked_seq));
sk204net/ipv4/tcp_input.cstatic int tcp_reset(struct sock *sk, struct sk_buff *skb)
sk206net/ipv4/tcp_input.csk->zapped = 1;
sk210net/ipv4/tcp_input.csk->err = ECONNRESET;
sk211net/ipv4/tcp_input.cif (sk->state == TCP_SYN_SENT)
sk212net/ipv4/tcp_input.csk->err = ECONNREFUSED;
sk213net/ipv4/tcp_input.cif (sk->state == TCP_CLOSE_WAIT)
sk214net/ipv4/tcp_input.csk->err = EPIPE;
sk224net/ipv4/tcp_input.cif(sk->state!=TCP_TIME_WAIT)
sk226net/ipv4/tcp_input.ctcp_set_state(sk,TCP_CLOSE);
sk227net/ipv4/tcp_input.csk->shutdown = SHUTDOWN_MASK;
sk230net/ipv4/tcp_input.ctcp_set_state(sk,TCP_CLOSE);
sk231net/ipv4/tcp_input.csk->shutdown = SHUTDOWN_MASK;
sk233net/ipv4/tcp_input.cif (!sk->dead) 
sk234net/ipv4/tcp_input.csk->state_change(sk);
sk251net/ipv4/tcp_input.cstatic void tcp_options(struct sock *sk, struct tcphdr *th)
sk280net/ipv4/tcp_input.csk->mtu=min(sk->mtu,ntohs(*(unsigned short *)ptr));
sk293net/ipv4/tcp_input.csk->mtu=min(sk->mtu, 536);  /* default MSS if none sent */
sk296net/ipv4/tcp_input.csk->mss = min(sk->max_window >> 1, sk->mtu);
sk298net/ipv4/tcp_input.csk->mss = min(sk->max_window, sk->mtu);
sk299net/ipv4/tcp_input.csk->max_unacked = 2 * sk->mss;
sk312net/ipv4/tcp_input.cstatic void tcp_conn_request(struct sock *sk, struct sk_buff *skb,
sk322net/ipv4/tcp_input.cif (!sk->dead) 
sk324net/ipv4/tcp_input.csk->data_ready(sk,0);
sk328net/ipv4/tcp_input.cif(sk->debug)
sk329net/ipv4/tcp_input.cprintk("Reset on %p: Connect on dead socket.\n",sk);
sk330net/ipv4/tcp_input.ctcp_send_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl);
sk344net/ipv4/tcp_input.cif (sk->ack_backlog >= sk->max_ack_backlog) 
sk368net/ipv4/tcp_input.cmemcpy(newsk, sk, sizeof(*newsk));
sk373net/ipv4/tcp_input.csk->opt = (struct options*)kmalloc(sizeof(struct options)+opt->optlen, GFP_ATOMIC);
sk374net/ipv4/tcp_input.cif (!sk->opt) 
sk381net/ipv4/tcp_input.cif (ip_options_echo(sk->opt, opt, daddr, saddr, skb)) 
sk383net/ipv4/tcp_input.ckfree_s(sk->opt, sizeof(struct options)+opt->optlen);
sk411net/ipv4/tcp_input.cnewsk->localroute = sk->localroute;
sk459net/ipv4/tcp_input.cnewsk->ip_ttl=sk->ip_ttl;
sk478net/ipv4/tcp_input.cif (sk->user_mss)
sk479net/ipv4/tcp_input.cnewsk->mtu = sk->user_mss;
sk503net/ipv4/tcp_input.csk->mtu=skip_pick_mtu(sk->mtu,dev);
sk512net/ipv4/tcp_input.ctcp_send_synack(newsk, sk, skb);
sk526net/ipv4/tcp_input.cvoid tcp_window_shrunk(struct sock * sk, u32 window_seq)
sk532net/ipv4/tcp_input.cskb2 = sk->send_head;
sk533net/ipv4/tcp_input.csk->send_head = NULL;
sk534net/ipv4/tcp_input.csk->send_tail = NULL;
sk548net/ipv4/tcp_input.cif (sk->packets_out > 0) 
sk549net/ipv4/tcp_input.csk->packets_out--;
sk557net/ipv4/tcp_input.cskb_queue_head(&sk->write_queue,skb);
sk564net/ipv4/tcp_input.cif (sk->send_head == NULL) 
sk566net/ipv4/tcp_input.csk->send_head = skb;
sk567net/ipv4/tcp_input.csk->send_tail = skb;
sk571net/ipv4/tcp_input.csk->send_tail->link3 = skb;
sk572net/ipv4/tcp_input.csk->send_tail = skb;
sk588net/ipv4/tcp_input.cstatic int tcp_ack(struct sock *sk, struct tcphdr *th, u32 ack, int len)
sk600net/ipv4/tcp_input.cif(sk->zapped)
sk608net/ipv4/tcp_input.cif (sk->ip_xmit_timeout == TIME_KEEPOPEN)
sk609net/ipv4/tcp_input.csk->retransmits = 0;
sk616net/ipv4/tcp_input.cif (after(ack, sk->sent_seq) || before(ack, sk->rcv_ack_seq)) 
sk630net/ipv4/tcp_input.cif (window_seq > sk->max_window) 
sk632net/ipv4/tcp_input.csk->max_window = window_seq;
sk636net/ipv4/tcp_input.csk->mss = min(window_seq>>1, sk->mtu);
sk638net/ipv4/tcp_input.csk->mss = min(window_seq, sk->mtu);
sk646net/ipv4/tcp_input.cif (after(sk->window_seq, window_seq)) {
sk648net/ipv4/tcp_input.ctcp_window_shrunk(sk, window_seq);
sk654net/ipv4/tcp_input.csk->window_seq = window_seq;
sk659net/ipv4/tcp_input.cif (sk->send_tail == NULL || sk->send_head == NULL) 
sk661net/ipv4/tcp_input.csk->send_head = NULL;
sk662net/ipv4/tcp_input.csk->send_tail = NULL;
sk663net/ipv4/tcp_input.csk->packets_out= 0;
sk670net/ipv4/tcp_input.cif (sk->ip_xmit_timeout == TIME_WRITE && 
sk671net/ipv4/tcp_input.csk->cong_window < 2048 && after(ack, sk->rcv_ack_seq)) 
sk683net/ipv4/tcp_input.cif (sk->cong_window < sk->ssthresh)  
sk687net/ipv4/tcp_input.csk->cong_window++;
sk694net/ipv4/tcp_input.cif (sk->cong_count >= sk->cong_window) 
sk696net/ipv4/tcp_input.csk->cong_window++;
sk697net/ipv4/tcp_input.csk->cong_count = 0;
sk700net/ipv4/tcp_input.csk->cong_count++;
sk708net/ipv4/tcp_input.csk->rcv_ack_seq = ack;
sk715net/ipv4/tcp_input.csk->err_soft = 0;
sk723net/ipv4/tcp_input.cif (sk->ip_xmit_timeout == TIME_PROBE0) 
sk725net/ipv4/tcp_input.csk->retransmits = 0;  /* Our probe was answered */
sk731net/ipv4/tcp_input.cif (skb_peek(&sk->write_queue) != NULL &&   /* should always be non-null */
sk732net/ipv4/tcp_input.c! before (sk->window_seq, sk->write_queue.next->end_seq)) 
sk734net/ipv4/tcp_input.csk->backoff = 0;
sk740net/ipv4/tcp_input.csk->rto = ((sk->rtt >> 2) + sk->mdev) >> 1;
sk741net/ipv4/tcp_input.cif (sk->rto > 120*HZ)
sk742net/ipv4/tcp_input.csk->rto = 120*HZ;
sk743net/ipv4/tcp_input.cif (sk->rto < HZ/5)  /* Was 1*HZ, then 1 - turns out we must allow about
sk746net/ipv4/tcp_input.csk->rto = HZ/5;
sk754net/ipv4/tcp_input.cwhile(sk->send_head != NULL) 
sk757net/ipv4/tcp_input.cif (sk->send_head->link3 &&
sk758net/ipv4/tcp_input.cafter(sk->send_head->end_seq, sk->send_head->link3->end_seq)) 
sk766net/ipv4/tcp_input.cif (before(sk->send_head->end_seq, ack+1)) 
sk769net/ipv4/tcp_input.cif (sk->retransmits) 
sk784net/ipv4/tcp_input.cif (sk->send_head->link3)  /* Any more queued retransmits? */
sk785net/ipv4/tcp_input.csk->retransmits = 1;
sk787net/ipv4/tcp_input.csk->retransmits = 0;
sk805net/ipv4/tcp_input.cif (sk->packets_out > 0) 
sk806net/ipv4/tcp_input.csk->packets_out --;
sk808net/ipv4/tcp_input.coskb = sk->send_head;
sk811net/ipv4/tcp_input.ctcp_rtt_estimator(sk,oskb);
sk815net/ipv4/tcp_input.coskb = sk->send_head;
sk817net/ipv4/tcp_input.csk->send_head = oskb->link3;
sk818net/ipv4/tcp_input.cif (sk->send_head == NULL) 
sk820net/ipv4/tcp_input.csk->send_tail = NULL;
sk831net/ipv4/tcp_input.cif (!sk->dead)
sk832net/ipv4/tcp_input.csk->write_space(sk);
sk853net/ipv4/tcp_input.cif (skb_peek(&sk->write_queue) != NULL) 
sk855net/ipv4/tcp_input.cif (after (sk->window_seq+1, sk->write_queue.next->end_seq) &&
sk856net/ipv4/tcp_input.c(sk->retransmits == 0 || 
sk857net/ipv4/tcp_input.csk->ip_xmit_timeout != TIME_WRITE ||
sk858net/ipv4/tcp_input.cbefore(sk->write_queue.next->end_seq, sk->rcv_ack_seq + 1))
sk859net/ipv4/tcp_input.c&& sk->packets_out < sk->cong_window) 
sk865net/ipv4/tcp_input.ctcp_write_xmit(sk);
sk867net/ipv4/tcp_input.celse if (before(sk->window_seq, sk->write_queue.next->end_seq) &&
sk868net/ipv4/tcp_input.csk->send_head == NULL &&
sk869net/ipv4/tcp_input.csk->ack_backlog == 0 &&
sk870net/ipv4/tcp_input.csk->state != TCP_TIME_WAIT) 
sk875net/ipv4/tcp_input.ctcp_reset_xmit_timer(sk, TIME_PROBE0, sk->rto);
sk893net/ipv4/tcp_input.cswitch(sk->state) {
sk899net/ipv4/tcp_input.ctcp_reset_msl_timer(sk, TIME_CLOSE, TCP_TIMEWAIT_LEN);
sk911net/ipv4/tcp_input.cif (sk->send_head || skb_peek(&sk->write_queue) != NULL || sk->ack_backlog) {
sk912net/ipv4/tcp_input.ctcp_reset_xmit_timer(sk, TIME_WRITE, sk->rto);
sk913net/ipv4/tcp_input.c} else if (sk->keepopen) {
sk914net/ipv4/tcp_input.ctcp_reset_xmit_timer(sk, TIME_KEEPOPEN, TCP_TIMEOUT_LEN);
sk916net/ipv4/tcp_input.cdel_timer(&sk->retransmit_timer);
sk917net/ipv4/tcp_input.csk->ip_xmit_timeout = 0;
sk928net/ipv4/tcp_input.cif (sk->packets_out == 0 && sk->partial != NULL &&
sk929net/ipv4/tcp_input.cskb_peek(&sk->write_queue) == NULL && sk->send_head == NULL) 
sk932net/ipv4/tcp_input.ctcp_send_partial(sk);
sk943net/ipv4/tcp_input.cif (sk->state == TCP_LAST_ACK) 
sk945net/ipv4/tcp_input.cif (!sk->dead)
sk946net/ipv4/tcp_input.csk->state_change(sk);
sk947net/ipv4/tcp_input.cif(sk->debug)
sk949net/ipv4/tcp_input.csk->rcv_ack_seq,sk->write_seq,sk->acked_seq,sk->fin_seq);
sk950net/ipv4/tcp_input.cif (sk->rcv_ack_seq == sk->write_seq /*&& sk->acked_seq == sk->fin_seq*/) 
sk953net/ipv4/tcp_input.csk->shutdown = SHUTDOWN_MASK;
sk954net/ipv4/tcp_input.ctcp_set_state(sk,TCP_CLOSE);
sk966net/ipv4/tcp_input.cif (sk->state == TCP_FIN_WAIT1) 
sk969net/ipv4/tcp_input.cif (!sk->dead) 
sk970net/ipv4/tcp_input.csk->state_change(sk);
sk971net/ipv4/tcp_input.cif (sk->rcv_ack_seq == sk->write_seq) 
sk974net/ipv4/tcp_input.csk->shutdown |= SEND_SHUTDOWN;
sk975net/ipv4/tcp_input.ctcp_set_state(sk, TCP_FIN_WAIT2);
sk985net/ipv4/tcp_input.cif (sk->state == TCP_CLOSING) 
sk988net/ipv4/tcp_input.cif (!sk->dead) 
sk989net/ipv4/tcp_input.csk->state_change(sk);
sk990net/ipv4/tcp_input.cif (sk->rcv_ack_seq == sk->write_seq) 
sk993net/ipv4/tcp_input.ctcp_time_wait(sk);
sk1001net/ipv4/tcp_input.cif(sk->state==TCP_SYN_RECV)
sk1003net/ipv4/tcp_input.ctcp_set_state(sk, TCP_ESTABLISHED);
sk1004net/ipv4/tcp_input.ctcp_options(sk,th);
sk1005net/ipv4/tcp_input.csk->dummy_th.dest=th->source;
sk1006net/ipv4/tcp_input.csk->copied_seq = sk->acked_seq;
sk1007net/ipv4/tcp_input.cif(!sk->dead)
sk1008net/ipv4/tcp_input.csk->state_change(sk);
sk1009net/ipv4/tcp_input.cif(sk->max_window==0)
sk1011net/ipv4/tcp_input.csk->max_window=32;  /* Sanity check */
sk1012net/ipv4/tcp_input.csk->mss=min(sk->max_window,sk->mtu);
sk1045net/ipv4/tcp_input.cif (((!flag) || (flag&4)) && sk->send_head != NULL &&
sk1046net/ipv4/tcp_input.c(((flag&2) && sk->retransmits) ||
sk1047net/ipv4/tcp_input.c(sk->send_head->when + sk->rto < jiffies))) 
sk1049net/ipv4/tcp_input.cif(sk->send_head->when + sk->rto < jiffies)
sk1050net/ipv4/tcp_input.ctcp_retransmit(sk,0);  
sk1053net/ipv4/tcp_input.ctcp_do_retransmit(sk, 1);
sk1054net/ipv4/tcp_input.ctcp_reset_xmit_timer(sk, TIME_WRITE, sk->rto);
sk1061net/ipv4/tcp_input.cif(sk->debug)
sk1062net/ipv4/tcp_input.cprintk("Ack ignored %u %u\n",ack,sk->sent_seq);
sk1068net/ipv4/tcp_input.cif (after(ack, sk->sent_seq)) 
sk1077net/ipv4/tcp_input.cif (sk->keepopen) 
sk1079net/ipv4/tcp_input.cif(sk->ip_xmit_timeout==TIME_KEEPOPEN)
sk1080net/ipv4/tcp_input.ctcp_reset_xmit_timer(sk, TIME_KEEPOPEN, TCP_TIMEOUT_LEN);
sk1102net/ipv4/tcp_input.cstatic int tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th)
sk1104net/ipv4/tcp_input.csk->fin_seq = skb->end_seq;
sk1106net/ipv4/tcp_input.cif (!sk->dead) 
sk1108net/ipv4/tcp_input.csk->state_change(sk);
sk1109net/ipv4/tcp_input.csock_wake_async(sk->socket, 1);
sk1112net/ipv4/tcp_input.cswitch(sk->state) 
sk1121net/ipv4/tcp_input.ctcp_set_state(sk,TCP_CLOSE_WAIT);
sk1123net/ipv4/tcp_input.csk->shutdown = SHUTDOWN_MASK;
sk1138net/ipv4/tcp_input.ctcp_reset_msl_timer(sk, TIME_CLOSE, TCP_TIMEWAIT_LEN);
sk1153net/ipv4/tcp_input.cif(sk->ip_xmit_timeout != TIME_WRITE)
sk1154net/ipv4/tcp_input.ctcp_reset_xmit_timer(sk, TIME_WRITE, sk->rto);
sk1155net/ipv4/tcp_input.ctcp_set_state(sk,TCP_CLOSING);
sk1161net/ipv4/tcp_input.ctcp_reset_msl_timer(sk, TIME_CLOSE, TCP_TIMEWAIT_LEN);
sk1162net/ipv4/tcp_input.csk->shutdown|=SHUTDOWN_MASK;
sk1163net/ipv4/tcp_input.ctcp_set_state(sk,TCP_TIME_WAIT);
sk1171net/ipv4/tcp_input.ctcp_set_state(sk,TCP_LAST_ACK);
sk1174net/ipv4/tcp_input.ctcp_reset_msl_timer(sk, TIME_CLOSE, TCP_TIMEWAIT_LEN);
sk1189net/ipv4/tcp_input.cstatic int tcp_data(struct sk_buff *skb, struct sock *sk, 
sk1206net/ipv4/tcp_input.csk->bytes_rcv += skb->len;
sk1215net/ipv4/tcp_input.ctcp_send_ack(sk->sent_seq, sk->acked_seq,sk, th, saddr);
sk1226net/ipv4/tcp_input.cif(sk->shutdown & RCV_SHUTDOWN)
sk1251net/ipv4/tcp_input.cshut_seq = sk->acked_seq+1;  /* Last byte */
sk1255net/ipv4/tcp_input.cif(sk->debug)
sk1257net/ipv4/tcp_input.csk, new_seq, shut_seq, sk->blog);
sk1258net/ipv4/tcp_input.cif(sk->dead)
sk1260net/ipv4/tcp_input.csk->acked_seq = new_seq + th->fin;
sk1261net/ipv4/tcp_input.ctcp_send_reset(sk->saddr, sk->daddr, skb->h.th,
sk1262net/ipv4/tcp_input.csk->prot, NULL, skb->dev, sk->ip_tos, sk->ip_ttl);
sk1264net/ipv4/tcp_input.csk->err = EPIPE;
sk1265net/ipv4/tcp_input.csk->error_report(sk);
sk1266net/ipv4/tcp_input.csk->shutdown = SHUTDOWN_MASK;
sk1267net/ipv4/tcp_input.ctcp_set_state(sk,TCP_CLOSE);
sk1289net/ipv4/tcp_input.cif (skb_peek(&sk->receive_queue) == NULL)   /* Empty queue is easy case */
sk1291net/ipv4/tcp_input.cskb_queue_head(&sk->receive_queue,skb);
sk1296net/ipv4/tcp_input.cfor(skb1=sk->receive_queue.prev; ; skb1 = skb1->prev) 
sk1298net/ipv4/tcp_input.cif(sk->debug)
sk1303net/ipv4/tcp_input.cprintk("copied_seq = %d acked_seq = %d\n", sk->copied_seq,
sk1304net/ipv4/tcp_input.csk->acked_seq);
sk1338net/ipv4/tcp_input.cif (skb1 == skb_peek(&sk->receive_queue))
sk1340net/ipv4/tcp_input.cskb_queue_head(&sk->receive_queue, skb);
sk1350net/ipv4/tcp_input.cif (before(sk->acked_seq, sk->copied_seq)) 
sk1353net/ipv4/tcp_input.csk->acked_seq = sk->copied_seq;
sk1362net/ipv4/tcp_input.cif ((!dup_dumped && (skb1 == NULL || skb1->acked)) || before(skb->seq, sk->acked_seq+1)) 
sk1364net/ipv4/tcp_input.cif (before(skb->seq, sk->acked_seq+1)) 
sk1367net/ipv4/tcp_input.cif (after(skb->end_seq, sk->acked_seq)) 
sk1368net/ipv4/tcp_input.csk->acked_seq = skb->end_seq;
sk1379net/ipv4/tcp_input.ctcp_fin(skb,sk,skb->h.th);
sk1383net/ipv4/tcp_input.cskb2 != (struct sk_buff *)&sk->receive_queue;
sk1386net/ipv4/tcp_input.cif (before(skb2->seq, sk->acked_seq+1)) 
sk1388net/ipv4/tcp_input.cif (after(skb2->end_seq, sk->acked_seq))
sk1389net/ipv4/tcp_input.csk->acked_seq = skb2->end_seq;
sk1398net/ipv4/tcp_input.ctcp_fin(skb,sk,skb->h.th);
sk1405net/ipv4/tcp_input.csk->ack_backlog = sk->max_ack_backlog;
sk1422net/ipv4/tcp_input.cif (!sk->delay_acks ||
sk1423net/ipv4/tcp_input.csk->ack_backlog >= sk->max_ack_backlog || 
sk1424net/ipv4/tcp_input.csk->bytes_rcv > sk->max_unacked || th->fin ||
sk1425net/ipv4/tcp_input.csk->ato > HZ/2 ||
sk1426net/ipv4/tcp_input.ctcp_raise_window(sk)) {
sk1431net/ipv4/tcp_input.csk->ack_backlog++;
sk1433net/ipv4/tcp_input.cif(sk->debug)        
sk1435net/ipv4/tcp_input.ctcp_reset_xmit_timer(sk, TIME_WRITE, sk->ato);
sk1455net/ipv4/tcp_input.cwhile (sock_rspace(sk) < sk->mtu) 
sk1457net/ipv4/tcp_input.cskb1 = skb_peek(&sk->receive_queue);
sk1476net/ipv4/tcp_input.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
sk1477net/ipv4/tcp_input.csk->ack_backlog++;
sk1478net/ipv4/tcp_input.ctcp_reset_xmit_timer(sk, TIME_WRITE, min(sk->ato, 0.5 * HZ));
sk1482net/ipv4/tcp_input.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
sk1489net/ipv4/tcp_input.cif (!sk->dead) 
sk1491net/ipv4/tcp_input.cif(sk->debug)
sk1493net/ipv4/tcp_input.csk->data_ready(sk,0);
sk1507net/ipv4/tcp_input.cstatic void tcp_check_urg(struct sock * sk, struct tcphdr * th)
sk1516net/ipv4/tcp_input.cif (after(sk->copied_seq, ptr))
sk1520net/ipv4/tcp_input.cif (sk->urg_data && !after(ptr, sk->urg_seq))
sk1524net/ipv4/tcp_input.cif (sk->proc != 0) {
sk1525net/ipv4/tcp_input.cif (sk->proc > 0) {
sk1526net/ipv4/tcp_input.ckill_proc(sk->proc, SIGURG, 1);
sk1528net/ipv4/tcp_input.ckill_pg(-sk->proc, SIGURG, 1);
sk1531net/ipv4/tcp_input.csk->urg_data = URG_NOTYET;
sk1532net/ipv4/tcp_input.csk->urg_seq = ptr;
sk1539net/ipv4/tcp_input.cstatic inline void tcp_urg(struct sock *sk, struct tcphdr *th, unsigned long len)
sk1546net/ipv4/tcp_input.ctcp_check_urg(sk,th);
sk1552net/ipv4/tcp_input.cif (sk->urg_data == URG_NOTYET) {
sk1558net/ipv4/tcp_input.cptr = sk->urg_seq - ntohl(th->seq) + th->doff*4;
sk1560net/ipv4/tcp_input.csk->urg_data = URG_VALID | *(ptr + (unsigned char *) th);
sk1561net/ipv4/tcp_input.cif (!sk->dead)
sk1562net/ipv4/tcp_input.csk->data_ready(sk,0);
sk1578net/ipv4/tcp_input.cstruct sock *sk;
sk1588net/ipv4/tcp_input.csk = skb->sk;
sk1613net/ipv4/tcp_input.csk = get_tcp_sock(saddr, th->source, daddr, th->dest);
sk1614net/ipv4/tcp_input.cif (!sk)
sk1616net/ipv4/tcp_input.cskb->sk = sk;
sk1628net/ipv4/tcp_input.cif (sk->users) 
sk1630net/ipv4/tcp_input.cskb_queue_tail(&sk->back_log, skb);
sk1644net/ipv4/tcp_input.cif (sk->zapped || sk->state==TCP_CLOSE)
sk1647net/ipv4/tcp_input.cif (!sk->prot) 
sk1658net/ipv4/tcp_input.cskb->sk=sk;
sk1659net/ipv4/tcp_input.csk->rmem_alloc += skb->truesize;
sk1672net/ipv4/tcp_input.cif(sk->state!=TCP_ESTABLISHED)    /* Skip this lot for normal flow */
sk1679net/ipv4/tcp_input.cif(sk->state==TCP_LISTEN)
sk1682net/ipv4/tcp_input.ctcp_send_reset(daddr,saddr,th,sk->prot,opt,dev,sk->ip_tos, sk->ip_ttl);
sk1701net/ipv4/tcp_input.ctcp_conn_request(sk, skb, daddr, saddr, opt, dev, tcp_init_seq());
sk1722net/ipv4/tcp_input.cif (sk->state == TCP_SYN_RECV && th->syn && skb->seq+1 == sk->acked_seq)
sk1734net/ipv4/tcp_input.cif(sk->state==TCP_SYN_SENT)
sk1740net/ipv4/tcp_input.cif(!tcp_ack(sk,th,skb->ack_seq,len))
sk1746net/ipv4/tcp_input.csk->prot, opt,dev,sk->ip_tos,sk->ip_ttl);
sk1751net/ipv4/tcp_input.creturn tcp_reset(sk,skb);
sk1758net/ipv4/tcp_input.csk->prot, opt,dev,sk->ip_tos,sk->ip_ttl);
sk1767net/ipv4/tcp_input.csk->acked_seq = skb->seq+1;
sk1768net/ipv4/tcp_input.csk->lastwin_seq = skb->seq+1;
sk1769net/ipv4/tcp_input.csk->fin_seq = skb->seq;
sk1770net/ipv4/tcp_input.ctcp_send_ack(sk->sent_seq,sk->acked_seq,sk,th,sk->daddr);
sk1771net/ipv4/tcp_input.ctcp_set_state(sk, TCP_ESTABLISHED);
sk1772net/ipv4/tcp_input.ctcp_options(sk,th);
sk1773net/ipv4/tcp_input.csk->dummy_th.dest=th->source;
sk1774net/ipv4/tcp_input.csk->copied_seq = sk->acked_seq;
sk1775net/ipv4/tcp_input.cif(!sk->dead)
sk1777net/ipv4/tcp_input.csk->state_change(sk);
sk1778net/ipv4/tcp_input.csock_wake_async(sk->socket, 0);
sk1780net/ipv4/tcp_input.cif(sk->max_window==0)
sk1782net/ipv4/tcp_input.csk->max_window = 32;
sk1783net/ipv4/tcp_input.csk->mss = min(sk->max_window, sk->mtu);
sk1793net/ipv4/tcp_input.cif(sk->saddr==saddr && sk->daddr==daddr &&
sk1794net/ipv4/tcp_input.csk->dummy_th.source==th->source &&
sk1795net/ipv4/tcp_input.csk->dummy_th.dest==th->dest)
sk1798net/ipv4/tcp_input.creturn tcp_reset(sk,skb);
sk1800net/ipv4/tcp_input.ctcp_set_state(sk,TCP_SYN_RECV);
sk1830net/ipv4/tcp_input.cif (sk->state == TCP_TIME_WAIT && th->syn && sk->dead && 
sk1831net/ipv4/tcp_input.cafter(skb->seq, sk->acked_seq) && !th->rst)
sk1833net/ipv4/tcp_input.cu32 seq = sk->write_seq;
sk1834net/ipv4/tcp_input.cif(sk->debug)
sk1837net/ipv4/tcp_input.csk->rmem_alloc -= skb->truesize;
sk1838net/ipv4/tcp_input.cskb->sk = NULL;
sk1839net/ipv4/tcp_input.csk->err=ECONNRESET;
sk1840net/ipv4/tcp_input.ctcp_set_state(sk, TCP_CLOSE);
sk1841net/ipv4/tcp_input.csk->shutdown = SHUTDOWN_MASK;
sk1842net/ipv4/tcp_input.csk=get_sock(&tcp_prot, th->dest, saddr, th->source, daddr);
sk1844net/ipv4/tcp_input.cif (sk && sk->state==TCP_LISTEN)
sk1846net/ipv4/tcp_input.cskb->sk = sk;
sk1847net/ipv4/tcp_input.csk->rmem_alloc += skb->truesize;
sk1848net/ipv4/tcp_input.ctcp_conn_request(sk, skb, daddr, saddr,opt, dev,seq+128000);
sk1863net/ipv4/tcp_input.cif (!tcp_sequence(sk, skb->seq, skb->end_seq-th->syn))
sk1865net/ipv4/tcp_input.cbad_tcp_sequence(sk, th, len, opt, saddr, dev);
sk1871net/ipv4/tcp_input.creturn tcp_reset(sk,skb);
sk1880net/ipv4/tcp_input.creturn tcp_reset(sk,skb);  
sk1883net/ipv4/tcp_input.ctcp_delack_estimator(sk);
sk1890net/ipv4/tcp_input.cif(th->ack && !tcp_ack(sk,th,skb->ack_seq,len))
sk1896net/ipv4/tcp_input.cif(sk->state==TCP_SYN_RECV)
sk1898net/ipv4/tcp_input.ctcp_send_reset(daddr, saddr, th,sk->prot, opt, dev,sk->ip_tos,sk->ip_ttl);
sk1912net/ipv4/tcp_input.cif (sk->rmem_alloc  >= sk->rcvbuf) 
sk1923net/ipv4/tcp_input.ctcp_urg(sk, th, len);
sk1929net/ipv4/tcp_input.cif(tcp_data(skb,sk, saddr, len))
sk1948net/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;
sk681net/ipv4/tcp_output.cbuff->sk = newsk;
sk688net/ipv4/tcp_output.ctmp = sk->prot->build_header(buff, newsk->saddr, newsk->daddr, &ndev,
sk689net/ipv4/tcp_output.cIPPROTO_TCP, NULL, MAX_SYN_SIZE,sk->ip_tos,sk->ip_ttl,&newsk->ip_route_cache);
sk697net/ipv4/tcp_output.csk->err = tmp;
sk702net/ipv4/tcp_output.cskb->sk = sk;
sk737net/ipv4/tcp_output.cskb->sk = newsk;
sk743net/ipv4/tcp_output.csk->rmem_alloc -= skb->truesize;
sk746net/ipv4/tcp_output.cskb_queue_tail(&sk->receive_queue,skb);
sk747net/ipv4/tcp_output.csk->ack_backlog++;
sk756net/ipv4/tcp_output.cstruct sock *sk,
sk764net/ipv4/tcp_output.cif(sk->zapped)
sk772net/ipv4/tcp_output.cbuff = sock_wmalloc(sk, MAX_ACK_SIZE, 1, GFP_ATOMIC);
sk782net/ipv4/tcp_output.csk->ack_backlog++;
sk783net/ipv4/tcp_output.cif (sk->ip_xmit_timeout != TIME_WRITE && tcp_connected(sk->state)) 
sk785net/ipv4/tcp_output.ctcp_reset_xmit_timer(sk, TIME_WRITE, HZ);
sk794net/ipv4/tcp_output.cbuff->sk = sk;
sk795net/ipv4/tcp_output.cbuff->localroute = sk->localroute;
sk802net/ipv4/tcp_output.ctmp = sk->prot->build_header(buff, sk->saddr, daddr, &dev,
sk803net/ipv4/tcp_output.cIPPROTO_TCP, sk->opt, MAX_ACK_SIZE,sk->ip_tos,sk->ip_ttl,&sk->ip_route_cache);
sk807net/ipv4/tcp_output.csock_wfree(sk, buff);
sk812net/ipv4/tcp_output.cmemcpy(t1, &sk->dummy_th, sizeof(*t1));
sk821net/ipv4/tcp_output.csk->window = tcp_select_window(sk);
sk822net/ipv4/tcp_output.ct1->window = ntohs(sk->window);
sk830net/ipv4/tcp_output.cif (ack == sk->acked_seq) {             
sk831net/ipv4/tcp_output.csk->ack_backlog = 0;
sk832net/ipv4/tcp_output.csk->bytes_rcv = 0;
sk833net/ipv4/tcp_output.csk->ack_timed = 0;
sk835net/ipv4/tcp_output.cif (sk->send_head == NULL && skb_peek(&sk->write_queue) == NULL
sk836net/ipv4/tcp_output.c&& sk->ip_xmit_timeout == TIME_WRITE)   
sk837net/ipv4/tcp_output.cif(sk->keepopen) 
sk838net/ipv4/tcp_output.ctcp_reset_xmit_timer(sk,TIME_KEEPOPEN,TCP_TIMEOUT_LEN);
sk840net/ipv4/tcp_output.cdelete_timer(sk);               
sk848net/ipv4/tcp_output.ctcp_send_check(t1, sk->saddr, daddr, sizeof(*t1), buff);
sk849net/ipv4/tcp_output.cif (sk->debug)
sk851net/ipv4/tcp_output.csk->prot->queue_xmit(sk, dev, buff, 1);
sk860net/ipv4/tcp_output.cvoid tcp_write_wakeup(struct sock *sk)
sk867net/ipv4/tcp_output.cif (sk->zapped)
sk876net/ipv4/tcp_output.cif (sk->state != TCP_ESTABLISHED && 
sk877net/ipv4/tcp_output.csk->state != TCP_CLOSE_WAIT &&
sk878net/ipv4/tcp_output.csk->state != TCP_FIN_WAIT1 && 
sk879net/ipv4/tcp_output.csk->state != TCP_LAST_ACK &&
sk880net/ipv4/tcp_output.csk->state != TCP_CLOSING
sk885net/ipv4/tcp_output.cif ( before(sk->sent_seq, sk->window_seq) && 
sk886net/ipv4/tcp_output.c(skb=skb_peek(&sk->write_queue)))
sk906net/ipv4/tcp_output.cwin_size = sk->window_seq - sk->sent_seq;
sk919net/ipv4/tcp_output.cbuff = sock_wmalloc(sk, win_size + th->doff * 4 + 
sk921net/ipv4/tcp_output.csk->prot->max_header + 15, 
sk933net/ipv4/tcp_output.cbuff->sk = sk;
sk934net/ipv4/tcp_output.cbuff->localroute = sk->localroute;
sk940net/ipv4/tcp_output.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
sk941net/ipv4/tcp_output.cIPPROTO_TCP, sk->opt, buff->truesize,
sk942net/ipv4/tcp_output.csk->ip_tos,sk->ip_ttl,&sk->ip_route_cache);
sk945net/ipv4/tcp_output.csock_wfree(sk, buff);
sk964net/ipv4/tcp_output.cnth->ack_seq = htonl(sk->acked_seq);
sk965net/ipv4/tcp_output.cnth->window = htons(tcp_select_window(sk));
sk979net/ipv4/tcp_output.cbuff->end_seq = sk->sent_seq + win_size;
sk980net/ipv4/tcp_output.csk->sent_seq = buff->end_seq;    /* Hack */
sk988net/ipv4/tcp_output.ctcp_send_check(nth, sk->saddr, sk->daddr, 
sk993net/ipv4/tcp_output.cbuff = sock_wmalloc(sk,MAX_ACK_SIZE,1, GFP_ATOMIC);
sk998net/ipv4/tcp_output.cbuff->sk = sk;
sk999net/ipv4/tcp_output.cbuff->localroute = sk->localroute;
sk1006net/ipv4/tcp_output.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
sk1007net/ipv4/tcp_output.cIPPROTO_TCP, sk->opt, MAX_ACK_SIZE,sk->ip_tos,sk->ip_ttl,&sk->ip_route_cache);
sk1010net/ipv4/tcp_output.csock_wfree(sk, buff);
sk1015net/ipv4/tcp_output.cmemcpy(t1,(void *) &sk->dummy_th, sizeof(*t1));
sk1022net/ipv4/tcp_output.ct1->seq = htonl(sk->sent_seq-1);
sk1024net/ipv4/tcp_output.ct1->ack_seq = htonl(sk->acked_seq);
sk1025net/ipv4/tcp_output.ct1->window = htons(tcp_select_window(sk));
sk1026net/ipv4/tcp_output.ctcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), buff);
sk1034net/ipv4/tcp_output.csk->prot->queue_xmit(sk, dev, buff, 1);
sk1042net/ipv4/tcp_output.cvoid tcp_send_probe0(struct sock *sk)
sk1044net/ipv4/tcp_output.cif (sk->zapped)
sk1047net/ipv4/tcp_output.ctcp_write_wakeup(sk);
sk1049net/ipv4/tcp_output.csk->backoff++;
sk1050net/ipv4/tcp_output.csk->rto = min(sk->rto << 1, 120*HZ);
sk1051net/ipv4/tcp_output.csk->retransmits++;
sk1052net/ipv4/tcp_output.csk->prot->retransmits ++;
sk1053net/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+10;
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);
sk117net/ipv4/timer.cif (! sk->dead || sk->state != TCP_CLOSE) 
sk122net/ipv4/timer.cdestroy_sock (sk);
sk130net/ipv4/timer.cif(sk->wmem_alloc!=0 || sk->rmem_alloc!=0)
sk132net/ipv4/timer.csk->wmem_alloc++;  /* So it DOESN'T go away */
sk133net/ipv4/timer.cdestroy_sock (sk);
sk134net/ipv4/timer.csk->wmem_alloc--;  /* Might now have hit 0 - fall through and do it again if so */
sk135net/ipv4/timer.csk->users = 0;  /* This will be ok, the destroy won't totally work */
sk137net/ipv4/timer.cif(sk->wmem_alloc==0 && sk->rmem_alloc==0)
sk138net/ipv4/timer.cdestroy_sock(sk);  /* Socket gone, DON'T update sk->users! */
sk143net/ipv4/timer.csk->state = TCP_CLOSE;
sk144net/ipv4/timer.cdelete_timer (sk);
sk145net/ipv4/timer.cif (!sk->dead)
sk146net/ipv4/timer.csk->state_change(sk);
sk147net/ipv4/timer.csk->shutdown = SHUTDOWN_MASK;
sk148net/ipv4/timer.creset_timer (sk, TIME_DESTROY, 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, int 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.cif (sk->dead) 
sk584net/ipv4/udp.cdestroy_sock(sk);
sk596net/ipv4/udp.cstruct sock *sk;
sk665net/ipv4/udp.csk=get_sock_mcast(udp_prot.sock_array[ntohs(uh->dest)&(SOCK_ARRAY_SIZE-1)], uh->dest,
sk667net/ipv4/udp.cif(sk)
sk673net/ipv4/udp.csknext=get_sock_mcast(sk->next, uh->dest, saddr, uh->source, daddr);
sk679net/ipv4/udp.cudp_deliver(sk, uh, skb1, dev,saddr,daddr,len);
sk680net/ipv4/udp.csk=sknext;
sk690net/ipv4/udp.csk=(struct sock *)uh_cache_sk;
sk693net/ipv4/udp.csk = get_sock(&udp_prot, uh->dest, saddr, uh->source, daddr);
sk698net/ipv4/udp.cuh_cache_sk=sk;
sk701net/ipv4/udp.cif (sk == NULL) 
sk712net/ipv4/udp.cskb->sk = NULL;
sk716net/ipv4/udp.creturn udp_deliver(sk,uh,skb,dev, saddr, daddr, len);
sk719net/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)
sk721net/ipv4/udp.cskb->sk = sk;
sk740net/ipv4/udp.cif (sock_queue_rcv_skb(sk,skb)<0) 
sk745net/ipv4/udp.cskb->sk = NULL;
sk136net/ipx/af_ipx.cipx_remove_socket(ipx_socket *sk)
sk146net/ipx/af_ipx.cintrfc = sk->ipx_intrfc;
sk153net/ipx/af_ipx.cif(s==sk) {
sk160net/ipx/af_ipx.cif(s->next==sk) {
sk161net/ipx/af_ipx.cs->next=sk->next;
sk178net/ipx/af_ipx.cipx_destroy_socket(ipx_socket *sk)
sk182net/ipx/af_ipx.cipx_remove_socket(sk);
sk183net/ipx/af_ipx.cwhile((skb=skb_dequeue(&sk->receive_queue))!=NULL) {
sk187net/ipx/af_ipx.ckfree_s(sk,sizeof(*sk));
sk233net/ipx/af_ipx.cipxitf_insert_socket(ipx_interface *intrfc, ipx_socket *sk)
sk237net/ipx/af_ipx.csk->ipx_intrfc = intrfc;
sk238net/ipx/af_ipx.csk->next = NULL;
sk240net/ipx/af_ipx.cintrfc->if_sklist = sk;
sk244net/ipx/af_ipx.cs->next = sk;
sk592net/ipx/af_ipx.cif(skb->sk)
sk594net/ipx/af_ipx.cskb->sk->wmem_alloc-=skb->truesize;
sk595net/ipx/af_ipx.cskb->sk=NULL;
sk607net/ipx/af_ipx.cif (!send_to_wire && skb->sk)
sk609net/ipx/af_ipx.cskb->sk->wmem_alloc-=skb->truesize;
sk610net/ipx/af_ipx.cskb->sk=NULL;
sk1157net/ipx/af_ipx.cstatic int ipxrtr_route_packet(ipx_socket *sk, struct sockaddr_ipx *usipx, struct iovec *iov, int len)
sk1186net/ipx/af_ipx.cskb=sock_alloc_send_skb(sk, size, 0, 0, &err);
sk1193net/ipx/af_ipx.cskb->sk=sk;
sk1203net/ipx/af_ipx.cipx->ipx_source.net = sk->ipx_intrfc->if_netnum;
sk1205net/ipx/af_ipx.cmemcpy(ipx->ipx_source.node, sk->ipx_node, IPX_NODE_LEN);
sk1207net/ipx/af_ipx.cif ((err = ntohs(sk->ipx_port)) == 0x453 || err == 0x452)  
sk1215net/ipx/af_ipx.cipx->ipx_source.net = sk->ipx_intrfc->if_netnum;
sk1216net/ipx/af_ipx.cmemcpy(ipx->ipx_source.node, sk->ipx_intrfc->if_node, IPX_NODE_LEN);
sk1219net/ipx/af_ipx.cipx->ipx_source.sock = sk->ipx_port;
sk1490net/ipx/af_ipx.cipx_socket *sk;
sk1493net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sk1509net/ipx/af_ipx.csk->ipx_type=opt;
sk1517net/ipx/af_ipx.creturn sock_setsockopt(sk,level,optname,optval,optlen);
sk1527net/ipx/af_ipx.cipx_socket *sk;
sk1531net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sk1540net/ipx/af_ipx.cval=sk->ipx_type;
sk1548net/ipx/af_ipx.creturn sock_getsockopt(sk,level,optname,optval,optlen);
sk1568net/ipx/af_ipx.cstatic void def_callback1(struct sock *sk)
sk1570net/ipx/af_ipx.cif(!sk->dead)
sk1571net/ipx/af_ipx.cwake_up_interruptible(sk->sleep);
sk1574net/ipx/af_ipx.cstatic void def_callback2(struct sock *sk, int len)
sk1576net/ipx/af_ipx.cif(!sk->dead)
sk1578net/ipx/af_ipx.cwake_up_interruptible(sk->sleep);
sk1579net/ipx/af_ipx.csock_wake_async(sk->socket, 1);
sk1586net/ipx/af_ipx.cipx_socket *sk;
sk1587net/ipx/af_ipx.csk=(ipx_socket *)kmalloc(sizeof(*sk),GFP_KERNEL);
sk1588net/ipx/af_ipx.cif(sk==NULL)
sk1595net/ipx/af_ipx.ckfree_s((void *)sk,sizeof(*sk));
sk1598net/ipx/af_ipx.csk->dead=0;
sk1599net/ipx/af_ipx.csk->next=NULL;
sk1600net/ipx/af_ipx.csk->broadcast=0;
sk1601net/ipx/af_ipx.csk->rcvbuf=SK_RMEM_MAX;
sk1602net/ipx/af_ipx.csk->sndbuf=SK_WMEM_MAX;
sk1603net/ipx/af_ipx.csk->wmem_alloc=0;
sk1604net/ipx/af_ipx.csk->rmem_alloc=0;
sk1605net/ipx/af_ipx.csk->users=0;
sk1606net/ipx/af_ipx.csk->shutdown=0;
sk1607net/ipx/af_ipx.csk->prot=NULL;  /* So we use default free mechanisms */
sk1608net/ipx/af_ipx.csk->err=0;
sk1609net/ipx/af_ipx.cskb_queue_head_init(&sk->receive_queue);
sk1610net/ipx/af_ipx.cskb_queue_head_init(&sk->write_queue);
sk1611net/ipx/af_ipx.csk->send_head=NULL;
sk1612net/ipx/af_ipx.cskb_queue_head_init(&sk->back_log);
sk1613net/ipx/af_ipx.csk->state=TCP_CLOSE;
sk1614net/ipx/af_ipx.csk->socket=sock;
sk1615net/ipx/af_ipx.csk->type=sock->type;
sk1616net/ipx/af_ipx.csk->ipx_type=0;    /* General user level IPX */
sk1617net/ipx/af_ipx.csk->debug=0;
sk1618net/ipx/af_ipx.csk->ipx_intrfc = NULL;
sk1619net/ipx/af_ipx.cmemset(&sk->ipx_dest_addr,'\0',sizeof(sk->ipx_dest_addr));
sk1620net/ipx/af_ipx.csk->ipx_port = 0;
sk1621net/ipx/af_ipx.csk->mtu=IPX_MTU;
sk1625net/ipx/af_ipx.csock->data=(void *)sk;
sk1626net/ipx/af_ipx.csk->sleep=sock->wait;
sk1629net/ipx/af_ipx.csk->state_change=def_callback1;
sk1630net/ipx/af_ipx.csk->data_ready=def_callback2;
sk1631net/ipx/af_ipx.csk->write_space=def_callback1;
sk1632net/ipx/af_ipx.csk->error_report=def_callback1;
sk1634net/ipx/af_ipx.csk->zapped=1;
sk1640net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sk1641net/ipx/af_ipx.cif(sk==NULL)
sk1643net/ipx/af_ipx.cif(!sk->dead)
sk1644net/ipx/af_ipx.csk->state_change(sk);
sk1645net/ipx/af_ipx.csk->dead=1;
sk1647net/ipx/af_ipx.cipx_destroy_socket(sk);
sk1676net/ipx/af_ipx.cipx_socket *sk;
sk1680net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sk1682net/ipx/af_ipx.cif(sk->zapped==0)
sk1701net/ipx/af_ipx.csk->ipx_port=addr->sipx_port;
sk1718net/ipx/af_ipx.cmemcpy(sk->ipx_node, intrfc->if_node,
sk1723net/ipx/af_ipx.cmemcpy(sk->ipx_node, addr->sipx_node, IPX_NODE_LEN);
sk1725net/ipx/af_ipx.cif (ipxitf_find_internal_socket(intrfc, sk->ipx_node,
sk1726net/ipx/af_ipx.csk->ipx_port) != NULL)
sk1728net/ipx/af_ipx.cif(sk->debug)
sk1741net/ipx/af_ipx.cmemcpy(sk->ipx_node, intrfc->if_node, IPX_NODE_LEN);
sk1744net/ipx/af_ipx.cif(sk->debug)
sk1757net/ipx/af_ipx.cif(sk->debug)
sk1765net/ipx/af_ipx.cipxitf_insert_socket(intrfc, sk);
sk1766net/ipx/af_ipx.csk->zapped=0;
sk1767net/ipx/af_ipx.cif(sk->debug)
sk1775net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sk1778net/ipx/af_ipx.csk->state = TCP_CLOSE;  
sk1785net/ipx/af_ipx.cif(sk->ipx_port==0)
sk1794net/ipx/af_ipx.cmemcpy(uaddr.sipx_node, sk->ipx_intrfc->if_node,
sk1804net/ipx/af_ipx.csk->ipx_dest_addr.net=addr->sipx_network;
sk1805net/ipx/af_ipx.csk->ipx_dest_addr.sock=addr->sipx_port;
sk1806net/ipx/af_ipx.cmemcpy(sk->ipx_dest_addr.node,addr->sipx_node,IPX_NODE_LEN);
sk1807net/ipx/af_ipx.csk->ipx_type=addr->sipx_type;
sk1809net/ipx/af_ipx.csk->state=TCP_ESTABLISHED;
sk1830net/ipx/af_ipx.cipx_socket *sk;
sk1832net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sk1837net/ipx/af_ipx.cif(sk->state!=TCP_ESTABLISHED)
sk1839net/ipx/af_ipx.caddr=&sk->ipx_dest_addr;
sk1844net/ipx/af_ipx.cif (sk->ipx_intrfc != NULL) {
sk1845net/ipx/af_ipx.csipx.sipx_network = sk->ipx_intrfc->if_netnum;
sk1847net/ipx/af_ipx.cmemcpy(sipx.sipx_node, sk->ipx_node, IPX_NODE_LEN);
sk1849net/ipx/af_ipx.cmemcpy(sipx.sipx_node, sk->ipx_intrfc->if_node,
sk1857net/ipx/af_ipx.csipx.sipx_port = sk->ipx_port;
sk1861net/ipx/af_ipx.csipx.sipx_type = sk->ipx_type;
sk1966net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sk1971net/ipx/af_ipx.cif (sk->zapped) return -EIO; /* Socket not bound */
sk1976net/ipx/af_ipx.cif(sk->ipx_port == 0) 
sk1984net/ipx/af_ipx.cmemcpy(uaddr.sipx_node, sk->ipx_intrfc->if_node,
sk1999net/ipx/af_ipx.cif(sk->state!=TCP_ESTABLISHED)
sk2003net/ipx/af_ipx.cusipx->sipx_type=sk->ipx_type;
sk2004net/ipx/af_ipx.cusipx->sipx_port=sk->ipx_dest_addr.sock;
sk2005net/ipx/af_ipx.cusipx->sipx_network=sk->ipx_dest_addr.net;
sk2006net/ipx/af_ipx.cmemcpy(usipx->sipx_node,sk->ipx_dest_addr.node,IPX_NODE_LEN);
sk2009net/ipx/af_ipx.cretval = ipxrtr_route_packet(sk, usipx, msg->msg_iov, len);
sk2019net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sk2027net/ipx/af_ipx.cif(sk->err)
sk2028net/ipx/af_ipx.creturn sock_error(sk);
sk2030net/ipx/af_ipx.cif (sk->zapped)
sk2034net/ipx/af_ipx.cskb=skb_recv_datagram(sk,flags,noblock,&er);
sk2054net/ipx/af_ipx.cskb_free_datagram(sk, skb);
sk2058net/ipx/af_ipx.cstatic int ipx_shutdown(struct socket *sk,int how)
sk2065net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sk2067net/ipx/af_ipx.creturn datagram_select(sk,sel_type,wait);
sk2074net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sk2082net/ipx/af_ipx.camount=sk->sndbuf-sk->wmem_alloc;
sk2091net/ipx/af_ipx.cif((skb=skb_peek(&sk->receive_queue))!=NULL)
sk2119net/ipx/af_ipx.cif (sk)
sk2121net/ipx/af_ipx.cif(sk->stamp.tv_sec==0)
sk2126net/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->type == SOCK_SEQPACKET && sk->state != TCP_LISTEN) {
sk389net/netrom/af_netrom.cmemset(&sk->nr->user_addr, '\0', sizeof(ax25_address));
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.cif (sk->type == SOCK_SEQPACKET) {
sk608net/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;
sk651net/netrom/af_netrom.csk->state = TCP_CLOSE;
sk652net/netrom/af_netrom.csk->state_change(sk);
sk653net/netrom/af_netrom.csk->dead = 1;
sk654net/netrom/af_netrom.cnr_destroy_socket(sk);
sk658net/netrom/af_netrom.csk->socket = NULL;  /* Not used, but we should do this. **/
sk665net/netrom/af_netrom.cstruct sock *sk;
sk670net/netrom/af_netrom.csk = (struct sock *)sock->data;
sk672net/netrom/af_netrom.cif (sk->zapped == 0)
sk679net/netrom/af_netrom.cif (sk->debug)
sk690net/netrom/af_netrom.cmemcpy(&sk->nr->user_addr,   &addr->fsa_digipeater[0],   sizeof(ax25_address));
sk691net/netrom/af_netrom.cmemcpy(&sk->nr->source_addr, &addr->fsa_ax25.sax25_call, sizeof(ax25_address));
sk701net/netrom/af_netrom.cmemcpy(&sk->nr->user_addr,   user,   sizeof(ax25_address));
sk702net/netrom/af_netrom.cmemcpy(&sk->nr->source_addr, source, sizeof(ax25_address));
sk705net/netrom/af_netrom.csk->nr->device = dev;
sk706net/netrom/af_netrom.cnr_insert_socket(sk);
sk708net/netrom/af_netrom.csk->zapped = 0;
sk710net/netrom/af_netrom.cif (sk->debug)
sk719net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sk724net/netrom/af_netrom.cif (sk->state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) {
sk729net/netrom/af_netrom.cif (sk->state == TCP_CLOSE && sock->state == SS_CONNECTING) {
sk734net/netrom/af_netrom.cif (sk->state == TCP_ESTABLISHED && sk->type == SOCK_SEQPACKET)
sk737net/netrom/af_netrom.csk->state   = TCP_CLOSE;  
sk743net/netrom/af_netrom.cif (sk->zapped) {  /* Must bind first - autobinding in this may or may not work */
sk744net/netrom/af_netrom.csk->zapped = 0;
sk757net/netrom/af_netrom.cmemcpy(&sk->nr->user_addr,   user,   sizeof(ax25_address));
sk758net/netrom/af_netrom.cmemcpy(&sk->nr->source_addr, source, sizeof(ax25_address));
sk760net/netrom/af_netrom.csk->nr->device = dev;
sk762net/netrom/af_netrom.cnr_insert_socket(sk);    /* Finish the bind */
sk765net/netrom/af_netrom.cmemcpy(&sk->nr->dest_addr, &addr->sax25_call, sizeof(ax25_address));
sk770net/netrom/af_netrom.csk->nr->my_index = circuit / 256;
sk771net/netrom/af_netrom.csk->nr->my_id    = circuit % 256;
sk777net/netrom/af_netrom.csk->state     = TCP_SYN_SENT;
sk778net/netrom/af_netrom.cnr_establish_data_link(sk);
sk779net/netrom/af_netrom.csk->nr->state = NR_STATE_1;
sk780net/netrom/af_netrom.cnr_set_timer(sk);
sk783net/netrom/af_netrom.cif (sk->state != TCP_ESTABLISHED && (flags & O_NONBLOCK))
sk791net/netrom/af_netrom.cwhile (sk->state == TCP_SYN_SENT) {
sk792net/netrom/af_netrom.cinterruptible_sleep_on(sk->sleep);
sk799net/netrom/af_netrom.cif (sk->state != TCP_ESTABLISHED) {
sk802net/netrom/af_netrom.creturn sock_error(sk);  /* Always set at this point */
sk819net/netrom/af_netrom.cstruct sock *sk;
sk828net/netrom/af_netrom.csk = (struct sock *)sock->data;
sk830net/netrom/af_netrom.cif (sk->type != SOCK_SEQPACKET)
sk833net/netrom/af_netrom.cif (sk->state != TCP_LISTEN)
sk842net/netrom/af_netrom.cif ((skb = skb_dequeue(&sk->receive_queue)) == NULL) {
sk847net/netrom/af_netrom.cinterruptible_sleep_on(sk->sleep);
sk855net/netrom/af_netrom.cnewsk = skb->sk;
sk860net/netrom/af_netrom.cskb->sk = NULL;
sk862net/netrom/af_netrom.csk->ack_backlog--;
sk872net/netrom/af_netrom.cstruct sock *sk;
sk874net/netrom/af_netrom.csk = (struct sock *)sock->data;
sk877net/netrom/af_netrom.cif (sk->state != TCP_ESTABLISHED)
sk881net/netrom/af_netrom.cmemcpy(&sax->fsa_ax25.sax25_call, &sk->nr->user_addr, sizeof(ax25_address));
sk882net/netrom/af_netrom.cmemcpy(&sax->fsa_digipeater[0],   &sk->nr->dest_addr, sizeof(ax25_address));
sk887net/netrom/af_netrom.cmemcpy(&sax->fsa_ax25.sax25_call, &sk->nr->source_addr, sizeof(ax25_address));
sk896net/netrom/af_netrom.cstruct sock *sk;
sk903net/netrom/af_netrom.cskb->sk = NULL;    /* Initially we don't know who its for */
sk932net/netrom/af_netrom.cif (((frametype & 0x0F) != NR_CONNREQ && (sk = nr_find_socket(circuit_index, circuit_id, SOCK_SEQPACKET)) != NULL) ||
sk933net/netrom/af_netrom.c((frametype & 0x0F) == NR_CONNREQ && (sk = nr_find_peer(circuit_index, circuit_id, SOCK_SEQPACKET)) != NULL)) {
sk937net/netrom/af_netrom.csk->nr->bpqext = 1;
sk939net/netrom/af_netrom.csk->nr->bpqext = 0;
sk941net/netrom/af_netrom.creturn nr_process_rx_frame(sk, skb);
sk947net/netrom/af_netrom.csk = nr_find_listener(dest, SOCK_SEQPACKET);
sk951net/netrom/af_netrom.cif (sk == NULL || sk->ack_backlog == sk->max_ack_backlog || (make = nr_make_new(sk)) == NULL) {
sk958net/netrom/af_netrom.cskb->sk             = make;
sk996net/netrom/af_netrom.csk->ack_backlog++;
sk997net/netrom/af_netrom.cmake->pair = sk;
sk1001net/netrom/af_netrom.cskb_queue_head(&sk->receive_queue, skb);
sk1005net/netrom/af_netrom.cif (!sk->dead)
sk1006net/netrom/af_netrom.csk->data_ready(sk, skb->len);
sk1013net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sk1021net/netrom/af_netrom.cif (sk->err)
sk1022net/netrom/af_netrom.creturn sock_error(sk);
sk1027net/netrom/af_netrom.cif (sk->zapped)
sk1030net/netrom/af_netrom.cif (sk->nr->device == NULL)
sk1037net/netrom/af_netrom.cif (sk->type == SOCK_SEQPACKET && memcmp(&sk->nr->dest_addr, &sax.sax25_call, sizeof(ax25_address)) != 0)
sk1042net/netrom/af_netrom.cif (sk->state != TCP_ESTABLISHED)
sk1045net/netrom/af_netrom.cmemcpy(&sax.sax25_call, &sk->nr->dest_addr, sizeof(ax25_address));
sk1048net/netrom/af_netrom.cif (sk->debug)
sk1052net/netrom/af_netrom.cif (sk->debug)
sk1057net/netrom/af_netrom.cif ((skb = sock_alloc_send_skb(sk, size, 0, 0, &err)) == NULL)
sk1060net/netrom/af_netrom.cskb->sk   = sk;
sk1072net/netrom/af_netrom.cif (sk->debug)
sk1077net/netrom/af_netrom.c*asmptr++ = sk->nr->your_index;
sk1078net/netrom/af_netrom.c*asmptr++ = sk->nr->your_id;
sk1083net/netrom/af_netrom.cif (sk->debug)
sk1094net/netrom/af_netrom.cif (sk->debug)
sk1100net/netrom/af_netrom.cif (sk->debug)
sk1103net/netrom/af_netrom.cif (sk->state != TCP_ESTABLISHED) {
sk1108net/netrom/af_netrom.cnr_output(sk, skb);  /* Shove it onto the queue */
sk1117net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sk1123net/netrom/af_netrom.cif (sk->err)
sk1124net/netrom/af_netrom.creturn sock_error(sk);
sk1133net/netrom/af_netrom.cif (sk->type == SOCK_SEQPACKET && sk->state != TCP_ESTABLISHED)
sk1137net/netrom/af_netrom.cif ((skb = skb_recv_datagram(sk, flags, noblock, &er)) == NULL)
sk1140net/netrom/af_netrom.cif (!sk->nr->hdrincl) {
sk1159net/netrom/af_netrom.cskb_free_datagram(sk, skb);
sk1164net/netrom/af_netrom.cstatic int nr_shutdown(struct socket *sk, int how)
sk1171net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sk1173net/netrom/af_netrom.creturn datagram_select(sk, sel_type, wait);
sk1178net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sk1186net/netrom/af_netrom.camount = sk->sndbuf - sk->wmem_alloc;
sk1196net/netrom/af_netrom.cif ((skb = skb_peek(&sk->receive_queue)) != NULL)
sk1205net/netrom/af_netrom.cif (sk != NULL) {
sk1206net/netrom/af_netrom.cif (sk->stamp.tv_sec==0)
sk1210net/netrom/af_netrom.cmemcpy_tofs((void *)arg, &sk->stamp, sizeof(struct timeval));
sk53net/netrom/nr_in.cstatic int nr_queue_rx_frame(struct sock *sk, struct sk_buff *skb, int more)
sk58net/netrom/nr_in.csk->nr->fraglen += skb->len;
sk59net/netrom/nr_in.cskb_queue_tail(&sk->nr->frag_queue, skb);
sk63net/netrom/nr_in.cif (!more && sk->nr->fraglen > 0) {  /* End of fragment */
sk64net/netrom/nr_in.csk->nr->fraglen += skb->len;
sk65net/netrom/nr_in.cskb_queue_tail(&sk->nr->frag_queue, skb);
sk67net/netrom/nr_in.cif ((skbn = alloc_skb(sk->nr->fraglen, GFP_ATOMIC)) == NULL)
sk72net/netrom/nr_in.cskbn->sk   = sk;
sk73net/netrom/nr_in.csk->rmem_alloc += skbn->truesize;
sk76net/netrom/nr_in.cskbo = skb_dequeue(&sk->nr->frag_queue);
sk80net/netrom/nr_in.cwhile ((skbo = skb_dequeue(&sk->nr->frag_queue)) != NULL) {
sk86net/netrom/nr_in.csk->nr->fraglen = 0;    
sk89net/netrom/nr_in.creturn sock_queue_rcv_skb(sk, skbn);
sk97net/netrom/nr_in.cstatic int nr_state1_machine(struct sock *sk, struct sk_buff *skb, int frametype)
sk102net/netrom/nr_in.cnr_calculate_rtt(sk);
sk103net/netrom/nr_in.csk->window         = skb->data[20];
sk104net/netrom/nr_in.csk->nr->your_index = skb->data[17];
sk105net/netrom/nr_in.csk->nr->your_id    = skb->data[18];
sk106net/netrom/nr_in.csk->nr->t1timer    = 0;
sk107net/netrom/nr_in.csk->nr->t2timer    = 0;
sk108net/netrom/nr_in.csk->nr->t4timer    = 0;
sk109net/netrom/nr_in.csk->nr->vs         = 0;
sk110net/netrom/nr_in.csk->nr->va         = 0;
sk111net/netrom/nr_in.csk->nr->vr         = 0;
sk112net/netrom/nr_in.csk->nr->vl     = 0;
sk113net/netrom/nr_in.csk->nr->state      = NR_STATE_3;
sk114net/netrom/nr_in.csk->state          = TCP_ESTABLISHED;
sk115net/netrom/nr_in.csk->nr->n2count    = 0;
sk117net/netrom/nr_in.cif (!sk->dead)
sk118net/netrom/nr_in.csk->state_change(sk);
sk122net/netrom/nr_in.cnr_clear_queues(sk);
sk123net/netrom/nr_in.csk->nr->state = NR_STATE_0;
sk124net/netrom/nr_in.csk->state     = TCP_CLOSE;
sk125net/netrom/nr_in.csk->err       = ECONNREFUSED;
sk126net/netrom/nr_in.cif (!sk->dead)
sk127net/netrom/nr_in.csk->state_change(sk);
sk128net/netrom/nr_in.csk->dead      = 1;
sk143net/netrom/nr_in.cstatic int nr_state2_machine(struct sock *sk, struct sk_buff *skb, int frametype)
sk148net/netrom/nr_in.cnr_write_internal(sk, NR_DISCACK);
sk151net/netrom/nr_in.csk->nr->state = NR_STATE_0;
sk152net/netrom/nr_in.csk->state     = TCP_CLOSE;
sk153net/netrom/nr_in.csk->err       = 0;
sk154net/netrom/nr_in.cif (!sk->dead)
sk155net/netrom/nr_in.csk->state_change(sk);
sk156net/netrom/nr_in.csk->dead      = 1;
sk171net/netrom/nr_in.cstatic int nr_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype)
sk185net/netrom/nr_in.cnr_write_internal(sk, NR_CONNACK);
sk189net/netrom/nr_in.cnr_clear_queues(sk);
sk190net/netrom/nr_in.cnr_write_internal(sk, NR_DISCACK);
sk191net/netrom/nr_in.csk->nr->state = NR_STATE_0;
sk192net/netrom/nr_in.csk->state     = TCP_CLOSE;
sk193net/netrom/nr_in.csk->err       = 0;
sk194net/netrom/nr_in.cif (!sk->dead)
sk195net/netrom/nr_in.csk->state_change(sk);
sk196net/netrom/nr_in.csk->dead      = 1;
sk200net/netrom/nr_in.cnr_clear_queues(sk);
sk201net/netrom/nr_in.csk->nr->state = NR_STATE_0;
sk202net/netrom/nr_in.csk->state     = TCP_CLOSE;
sk203net/netrom/nr_in.csk->err       = ECONNRESET;
sk204net/netrom/nr_in.cif (!sk->dead)
sk205net/netrom/nr_in.csk->state_change(sk);
sk206net/netrom/nr_in.csk->dead      = 1;
sk214net/netrom/nr_in.csk->nr->condition |= PEER_RX_BUSY_CONDITION;
sk215net/netrom/nr_in.csk->nr->t4timer = nr_default.busy_delay;
sk217net/netrom/nr_in.csk->nr->condition &= ~PEER_RX_BUSY_CONDITION;
sk218net/netrom/nr_in.csk->nr->t4timer = 0;
sk220net/netrom/nr_in.cif (!nr_validate_nr(sk, nr)) {
sk224net/netrom/nr_in.cnr_frames_acked(sk, nr);
sk225net/netrom/nr_in.cnr_send_nak_frame(sk);
sk227net/netrom/nr_in.cif (sk->nr->condition & PEER_RX_BUSY_CONDITION) {
sk228net/netrom/nr_in.cnr_frames_acked(sk, nr);
sk230net/netrom/nr_in.cnr_check_iframes_acked(sk, nr);
sk244net/netrom/nr_in.csk->nr->condition |= PEER_RX_BUSY_CONDITION;
sk245net/netrom/nr_in.csk->nr->t4timer = nr_default.busy_delay;
sk247net/netrom/nr_in.csk->nr->condition &= ~PEER_RX_BUSY_CONDITION;
sk248net/netrom/nr_in.csk->nr->t4timer = 0;
sk250net/netrom/nr_in.cif (nr_validate_nr(sk, nr)) {
sk252net/netrom/nr_in.cnr_frames_acked(sk, nr);
sk253net/netrom/nr_in.cnr_send_nak_frame(sk);
sk255net/netrom/nr_in.cif (sk->nr->condition & PEER_RX_BUSY_CONDITION) {
sk256net/netrom/nr_in.cnr_frames_acked(sk, nr);
sk258net/netrom/nr_in.cnr_check_iframes_acked(sk, nr);
sk263net/netrom/nr_in.cskb_queue_head(&sk->nr->reseq_queue, skb);
sk264net/netrom/nr_in.cif (sk->nr->condition & OWN_RX_BUSY_CONDITION)
sk268net/netrom/nr_in.csave_vr = sk->nr->vr;
sk269net/netrom/nr_in.cwhile ((skbn = skb_dequeue(&sk->nr->reseq_queue)) != NULL) {
sk271net/netrom/nr_in.cif (ns == sk->nr->vr) {
sk272net/netrom/nr_in.cif (nr_queue_rx_frame(sk, skbn, frametype & NR_MORE_FLAG) == 0) {
sk273net/netrom/nr_in.csk->nr->vr = (sk->nr->vr + 1) % NR_MODULUS;
sk275net/netrom/nr_in.csk->nr->condition |= OWN_RX_BUSY_CONDITION;
sk278net/netrom/nr_in.c} else if (nr_in_rx_window(sk, ns)) {
sk286net/netrom/nr_in.cskb_queue_tail(&sk->nr->reseq_queue, skbn);
sk288net/netrom/nr_in.c} while (save_vr != sk->nr->vr);
sk292net/netrom/nr_in.cif (((sk->nr->vl + sk->window) % NR_MODULUS) == sk->nr->vr) {
sk293net/netrom/nr_in.cnr_enquiry_response(sk);
sk295net/netrom/nr_in.cif (!(sk->nr->condition & ACK_PENDING_CONDITION)) {
sk296net/netrom/nr_in.csk->nr->t2timer = sk->nr->t2;
sk297net/netrom/nr_in.csk->nr->condition |= ACK_PENDING_CONDITION;
sk310net/netrom/nr_in.cint nr_process_rx_frame(struct sock *sk, struct sk_buff *skb)
sk314net/netrom/nr_in.cif (sk->nr->state == NR_STATE_0 && sk->dead)
sk317net/netrom/nr_in.cif (sk->nr->state != NR_STATE_1 && sk->nr->state != NR_STATE_2 &&
sk318net/netrom/nr_in.csk->nr->state != NR_STATE_3) {
sk319net/netrom/nr_in.cprintk("nr_process_rx_frame: frame received - state: %d\n", sk->nr->state);
sk323net/netrom/nr_in.cdel_timer(&sk->timer);
sk327net/netrom/nr_in.cswitch (sk->nr->state)
sk330net/netrom/nr_in.cqueued = nr_state1_machine(sk, skb, frametype);
sk333net/netrom/nr_in.cqueued = nr_state2_machine(sk, skb, frametype);
sk336net/netrom/nr_in.cqueued = nr_state3_machine(sk, skb, frametype);
sk340net/netrom/nr_in.cnr_set_timer(sk);
sk49net/netrom/nr_out.cvoid nr_output(struct sock *sk, struct sk_buff *skb)
sk55net/netrom/nr_out.cmtu = sk->nr->device->mtu;
sk65net/netrom/nr_out.cif ((skbn = sock_alloc_send_skb(sk, frontlen + mtu, 0, 0, &err)) == NULL)
sk68net/netrom/nr_out.cskbn->sk   = sk;
sk87net/netrom/nr_out.cskb_queue_tail(&sk->write_queue, skbn); /* Throw it on the queue */
sk93net/netrom/nr_out.cskb_queue_tail(&sk->write_queue, skb);    /* Throw it on the queue */
sk96net/netrom/nr_out.cif (sk->nr->state == NR_STATE_3)
sk97net/netrom/nr_out.cnr_kick(sk);
sk104net/netrom/nr_out.cstatic void nr_send_iframe(struct sock *sk, struct sk_buff *skb)
sk109net/netrom/nr_out.cskb->data[2] = sk->nr->vs;
sk110net/netrom/nr_out.cskb->data[3] = sk->nr->vr;
sk112net/netrom/nr_out.cif (sk->nr->condition & OWN_RX_BUSY_CONDITION)
sk115net/netrom/nr_out.cnr_transmit_buffer(sk, skb);  
sk118net/netrom/nr_out.cvoid nr_send_nak_frame(struct sock *sk)
sk122net/netrom/nr_out.cif ((skb = skb_peek(&sk->nr->ack_queue)) == NULL)
sk128net/netrom/nr_out.cskbn->data[2] = sk->nr->va;
sk129net/netrom/nr_out.cskbn->data[3] = sk->nr->vr;
sk131net/netrom/nr_out.cif (sk->nr->condition & OWN_RX_BUSY_CONDITION)
sk134net/netrom/nr_out.cnr_transmit_buffer(sk, skbn);
sk136net/netrom/nr_out.csk->nr->condition &= ~ACK_PENDING_CONDITION;
sk137net/netrom/nr_out.csk->nr->vl      = sk->nr->vr;
sk138net/netrom/nr_out.csk->nr->t1timer = 0;
sk141net/netrom/nr_out.cvoid nr_kick(struct sock *sk)
sk147net/netrom/nr_out.cdel_timer(&sk->timer);
sk149net/netrom/nr_out.cstart = (skb_peek(&sk->nr->ack_queue) == NULL) ? sk->nr->va : sk->nr->vs;
sk150net/netrom/nr_out.cend   = (sk->nr->va + sk->window) % NR_MODULUS;
sk152net/netrom/nr_out.cif (!(sk->nr->condition & PEER_RX_BUSY_CONDITION) &&
sk154net/netrom/nr_out.cskb_peek(&sk->write_queue) != NULL) {
sk156net/netrom/nr_out.csk->nr->vs = start;
sk166net/netrom/nr_out.cskb  = skb_dequeue(&sk->write_queue);
sk170net/netrom/nr_out.cskb_queue_head(&sk->write_queue, skb);
sk174net/netrom/nr_out.cnext = (sk->nr->vs + 1) % NR_MODULUS;
sk180net/netrom/nr_out.cnr_send_iframe(sk, skbn);
sk182net/netrom/nr_out.csk->nr->vs = next;
sk187net/netrom/nr_out.cskb_queue_tail(&sk->nr->ack_queue, skb);
sk189net/netrom/nr_out.c} while (!last && (skb = skb_dequeue(&sk->write_queue)) != NULL);
sk191net/netrom/nr_out.csk->nr->vl = sk->nr->vr;
sk192net/netrom/nr_out.csk->nr->condition &= ~ACK_PENDING_CONDITION;
sk194net/netrom/nr_out.cif (sk->nr->t1timer == 0) {
sk195net/netrom/nr_out.csk->nr->t1timer = sk->nr->t1 = nr_calculate_t1(sk);
sk199net/netrom/nr_out.cnr_set_timer(sk);
sk202net/netrom/nr_out.cvoid nr_transmit_buffer(struct sock *sk, struct sk_buff *skb)
sk211net/netrom/nr_out.cmemcpy(dptr, &sk->nr->source_addr, sizeof(ax25_address));
sk217net/netrom/nr_out.cmemcpy(dptr, &sk->nr->dest_addr,   sizeof(ax25_address));
sk230net/netrom/nr_out.csk->state = TCP_CLOSE;
sk231net/netrom/nr_out.csk->err   = ENETUNREACH;
sk232net/netrom/nr_out.cif (!sk->dead)
sk233net/netrom/nr_out.csk->state_change(sk);
sk234net/netrom/nr_out.csk->dead  = 1;
sk243net/netrom/nr_out.cvoid nr_establish_data_link(struct sock *sk)
sk245net/netrom/nr_out.csk->nr->condition = 0x00;
sk246net/netrom/nr_out.csk->nr->n2count   = 0;
sk248net/netrom/nr_out.cnr_write_internal(sk, NR_CONNREQ);
sk250net/netrom/nr_out.csk->nr->t2timer = 0;
sk251net/netrom/nr_out.csk->nr->t1timer = sk->nr->t1 = nr_calculate_t1(sk);
sk257net/netrom/nr_out.cvoid nr_enquiry_response(struct sock *sk)
sk261net/netrom/nr_out.cif (sk->nr->condition & OWN_RX_BUSY_CONDITION) {
sk264net/netrom/nr_out.cif (skb_peek(&sk->nr->reseq_queue) != NULL) {
sk269net/netrom/nr_out.cnr_write_internal(sk, frametype);
sk271net/netrom/nr_out.csk->nr->vl = sk->nr->vr;
sk272net/netrom/nr_out.csk->nr->condition &= ~ACK_PENDING_CONDITION;
sk275net/netrom/nr_out.cvoid nr_check_iframes_acked(struct sock *sk, unsigned short nr)
sk277net/netrom/nr_out.cif (sk->nr->vs == nr) {
sk278net/netrom/nr_out.cnr_frames_acked(sk, nr);
sk279net/netrom/nr_out.cnr_calculate_rtt(sk);
sk280net/netrom/nr_out.csk->nr->t1timer = 0;
sk281net/netrom/nr_out.csk->nr->n2count = 0;
sk283net/netrom/nr_out.cif (sk->nr->va != nr) {
sk284net/netrom/nr_out.cnr_frames_acked(sk, nr);
sk285net/netrom/nr_out.csk->nr->t1timer = sk->nr->t1 = nr_calculate_t1(sk);
sk47net/netrom/nr_subr.cvoid nr_clear_queues(struct sock *sk)
sk51net/netrom/nr_subr.cwhile ((skb = skb_dequeue(&sk->write_queue)) != NULL) {
sk52net/netrom/nr_subr.cskb->sk   = sk;
sk57net/netrom/nr_subr.cwhile ((skb = skb_dequeue(&sk->nr->ack_queue)) != NULL) {
sk58net/netrom/nr_subr.cskb->sk   = sk;
sk63net/netrom/nr_subr.cwhile ((skb = skb_dequeue(&sk->nr->reseq_queue)) != NULL) {
sk67net/netrom/nr_subr.cwhile ((skb = skb_dequeue(&sk->nr->frag_queue)) != NULL) {
sk77net/netrom/nr_subr.cvoid nr_frames_acked(struct sock *sk, unsigned short nr)
sk84net/netrom/nr_subr.cif (sk->nr->va != nr) {
sk85net/netrom/nr_subr.cwhile (skb_peek(&sk->nr->ack_queue) != NULL && sk->nr->va != nr) {
sk86net/netrom/nr_subr.cskb = skb_dequeue(&sk->nr->ack_queue);
sk87net/netrom/nr_subr.cskb->sk   = sk;
sk90net/netrom/nr_subr.csk->nr->va = (sk->nr->va + 1) % NR_MODULUS;
sk100net/netrom/nr_subr.cvoid nr_requeue_frames(struct sock *sk)
sk104net/netrom/nr_subr.cwhile ((skb = skb_dequeue(&sk->nr->ack_queue)) != NULL) {
sk106net/netrom/nr_subr.cskb_queue_head(&sk->write_queue, skb);
sk117net/netrom/nr_subr.cint nr_validate_nr(struct sock *sk, unsigned short nr)
sk119net/netrom/nr_subr.cunsigned short vc = sk->nr->va;
sk121net/netrom/nr_subr.cwhile (vc != sk->nr->vs) {
sk126net/netrom/nr_subr.cif (nr == sk->nr->vs) return 1;
sk134net/netrom/nr_subr.cint nr_in_rx_window(struct sock *sk, unsigned short ns)
sk136net/netrom/nr_subr.cunsigned short vc = sk->nr->vr;
sk137net/netrom/nr_subr.cunsigned short vt = (sk->nr->vl + sk->window) % NR_MODULUS;
sk151net/netrom/nr_subr.cvoid nr_write_internal(struct sock *sk, int frametype)
sk164net/netrom/nr_subr.clen += (sk->nr->bpqext) ? 2 : 1;
sk188net/netrom/nr_subr.ctimeout  = (sk->nr->rtt / PR_SLOWHZ) * 2;
sk189net/netrom/nr_subr.c*dptr++  = sk->nr->my_index;
sk190net/netrom/nr_subr.c*dptr++  = sk->nr->my_id;
sk194net/netrom/nr_subr.c*dptr++  = sk->window;
sk195net/netrom/nr_subr.cmemcpy(dptr, &sk->nr->user_addr, sizeof(ax25_address));
sk200net/netrom/nr_subr.cmemcpy(dptr, &sk->nr->source_addr, sizeof(ax25_address));
sk210net/netrom/nr_subr.c*dptr++ = sk->nr->your_index;
sk211net/netrom/nr_subr.c*dptr++ = sk->nr->your_id;
sk212net/netrom/nr_subr.c*dptr++ = sk->nr->my_index;
sk213net/netrom/nr_subr.c*dptr++ = sk->nr->my_id;
sk215net/netrom/nr_subr.c*dptr++ = sk->window;
sk216net/netrom/nr_subr.cif (sk->nr->bpqext) *dptr++ = nr_default.ttl;
sk221net/netrom/nr_subr.c*dptr++ = sk->nr->your_index;
sk222net/netrom/nr_subr.c*dptr++ = sk->nr->your_id;
sk229net/netrom/nr_subr.c*dptr++ = sk->nr->your_index;
sk230net/netrom/nr_subr.c*dptr++ = sk->nr->your_id;
sk232net/netrom/nr_subr.c*dptr++ = sk->nr->vr;
sk239net/netrom/nr_subr.cnr_transmit_buffer(sk, skb);
sk283net/netrom/nr_subr.cskbn->sk   = NULL;
sk292net/netrom/nr_subr.cunsigned short nr_calculate_t1(struct sock *sk)
sk296net/netrom/nr_subr.cfor (t = 2, n = 0; n < sk->nr->n2count; n++)
sk301net/netrom/nr_subr.creturn t * sk->nr->rtt;
sk307net/netrom/nr_subr.cvoid nr_calculate_rtt(struct sock *sk)
sk309net/netrom/nr_subr.cif (sk->nr->t1timer > 0 && sk->nr->n2count == 0)
sk310net/netrom/nr_subr.csk->nr->rtt = (9 * sk->nr->rtt + sk->nr->t1 - sk->nr->t1timer) / 10;
sk314net/netrom/nr_subr.cif (sk->nr->rtt < (NR_T1CLAMPLO))
sk315net/netrom/nr_subr.csk->nr->rtt = (NR_T1CLAMPLO);
sk317net/netrom/nr_subr.cif (sk->nr->rtt == 0)
sk318net/netrom/nr_subr.csk->nr->rtt = PR_SLOWHZ;
sk322net/netrom/nr_subr.cif (sk->nr->rtt > (NR_T1CLAMPHI))
sk323net/netrom/nr_subr.csk->nr->rtt = (NR_T1CLAMPHI);
sk48net/netrom/nr_timer.cvoid nr_set_timer(struct sock *sk)
sk54net/netrom/nr_timer.cdel_timer(&sk->timer);
sk57net/netrom/nr_timer.csk->timer.next     = sk->timer.prev = NULL;  
sk58net/netrom/nr_timer.csk->timer.data     = (unsigned long)sk;
sk59net/netrom/nr_timer.csk->timer.function = &nr_timer;
sk61net/netrom/nr_timer.csk->timer.expires = jiffies+10;
sk62net/netrom/nr_timer.cadd_timer(&sk->timer);
sk65net/netrom/nr_timer.cstatic void nr_reset_timer(struct sock *sk)
sk71net/netrom/nr_timer.cdel_timer(&sk->timer);
sk74net/netrom/nr_timer.csk->timer.data     = (unsigned long)sk;
sk75net/netrom/nr_timer.csk->timer.function = &nr_timer;
sk76net/netrom/nr_timer.csk->timer.expires  = jiffies+10;
sk77net/netrom/nr_timer.cadd_timer(&sk->timer);
sk88net/netrom/nr_timer.cstruct sock *sk = (struct sock *)param;
sk90net/netrom/nr_timer.cswitch (sk->nr->state) {
sk94net/netrom/nr_timer.cif (sk->destroy || (sk->state == TCP_LISTEN && sk->dead)) {
sk95net/netrom/nr_timer.cdel_timer(&sk->timer);
sk96net/netrom/nr_timer.cnr_destroy_socket(sk);
sk105net/netrom/nr_timer.cif (sk->rmem_alloc < (sk->rcvbuf / 2) && (sk->nr->condition & OWN_RX_BUSY_CONDITION)) {
sk106net/netrom/nr_timer.csk->nr->condition &= ~OWN_RX_BUSY_CONDITION;
sk107net/netrom/nr_timer.cnr_write_internal(sk, NR_INFOACK);
sk108net/netrom/nr_timer.csk->nr->condition &= ~ACK_PENDING_CONDITION;
sk109net/netrom/nr_timer.csk->nr->vl = sk->nr->vr;
sk115net/netrom/nr_timer.cnr_kick(sk);
sk122net/netrom/nr_timer.cif (sk->nr->t2timer > 0 && --sk->nr->t2timer == 0) {
sk123net/netrom/nr_timer.cif (sk->nr->state == NR_STATE_3) {
sk124net/netrom/nr_timer.cif (sk->nr->condition & ACK_PENDING_CONDITION) {
sk125net/netrom/nr_timer.csk->nr->condition &= ~ACK_PENDING_CONDITION;
sk126net/netrom/nr_timer.cnr_enquiry_response(sk);
sk131net/netrom/nr_timer.cif (sk->nr->t4timer > 0 && --sk->nr->t4timer == 0) {
sk132net/netrom/nr_timer.csk->nr->condition &= ~PEER_RX_BUSY_CONDITION;
sk135net/netrom/nr_timer.cif (sk->nr->t1timer == 0 || --sk->nr->t1timer > 0) {
sk136net/netrom/nr_timer.cnr_reset_timer(sk);
sk140net/netrom/nr_timer.cswitch (sk->nr->state) {
sk142net/netrom/nr_timer.cif (sk->nr->n2count == sk->nr->n2) {
sk143net/netrom/nr_timer.cnr_clear_queues(sk);
sk144net/netrom/nr_timer.csk->nr->state = NR_STATE_0;
sk145net/netrom/nr_timer.csk->state     = TCP_CLOSE;
sk146net/netrom/nr_timer.csk->err       = ETIMEDOUT;
sk147net/netrom/nr_timer.cif (!sk->dead)
sk148net/netrom/nr_timer.csk->state_change(sk);
sk149net/netrom/nr_timer.csk->dead      = 1;
sk151net/netrom/nr_timer.csk->nr->n2count++;
sk152net/netrom/nr_timer.cnr_write_internal(sk, NR_CONNREQ);
sk157net/netrom/nr_timer.cif (sk->nr->n2count == sk->nr->n2) {
sk158net/netrom/nr_timer.cnr_clear_queues(sk);
sk159net/netrom/nr_timer.csk->nr->state = NR_STATE_0;
sk160net/netrom/nr_timer.csk->state     = TCP_CLOSE;
sk161net/netrom/nr_timer.csk->err       = ETIMEDOUT;
sk162net/netrom/nr_timer.cif (!sk->dead)
sk163net/netrom/nr_timer.csk->state_change(sk);
sk164net/netrom/nr_timer.csk->dead      = 1;
sk166net/netrom/nr_timer.csk->nr->n2count++;
sk167net/netrom/nr_timer.cnr_write_internal(sk, NR_DISCREQ);
sk172net/netrom/nr_timer.cif (sk->nr->n2count == sk->nr->n2) {
sk173net/netrom/nr_timer.cnr_clear_queues(sk);
sk174net/netrom/nr_timer.csk->nr->state = NR_STATE_0;
sk175net/netrom/nr_timer.csk->state     = TCP_CLOSE;
sk176net/netrom/nr_timer.csk->err       = ETIMEDOUT;
sk177net/netrom/nr_timer.cif (!sk->dead)
sk178net/netrom/nr_timer.csk->state_change(sk);
sk179net/netrom/nr_timer.csk->dead      = 1;
sk181net/netrom/nr_timer.csk->nr->n2count++;
sk182net/netrom/nr_timer.cnr_requeue_frames(sk);
sk187net/netrom/nr_timer.csk->nr->t1timer = sk->nr->t1 = nr_calculate_t1(sk);
sk189net/netrom/nr_timer.cnr_set_timer(sk);
sk87net/unix/af_unix.cstatic void unix_remove_socket(unix_socket *sk)
sk96net/unix/af_unix.cif(*s==sk)
sk98net/unix/af_unix.c*s=sk->next;
sk107net/unix/af_unix.cstatic void unix_insert_socket(unix_socket *sk)
sk110net/unix/af_unix.csk->next=unix_socket_list;
sk111net/unix/af_unix.cunix_socket_list=sk;
sk139net/unix/af_unix.cunix_socket *sk=(unix_socket *)data;
sk140net/unix/af_unix.cif(sk->protinfo.af_unix.locks==0 && sk->wmem_alloc==0)
sk142net/unix/af_unix.cif(sk->protinfo.af_unix.name)
sk143net/unix/af_unix.ckfree(sk->protinfo.af_unix.name);
sk144net/unix/af_unix.ckfree_s(sk,sizeof(*sk));
sk152net/unix/af_unix.csk->timer.expires=jiffies+10*HZ;  /* No real hurry try it every 10 seconds or so */
sk153net/unix/af_unix.cadd_timer(&sk->timer);
sk157net/unix/af_unix.cstatic void unix_delayed_delete(unix_socket *sk)
sk159net/unix/af_unix.csk->timer.data=(unsigned long)sk;
sk160net/unix/af_unix.csk->timer.expires=jiffies+HZ;    /* Normally 1 second after will clean up. After that we try every 10 */
sk161net/unix/af_unix.csk->timer.function=unix_destroy_timer;
sk162net/unix/af_unix.cadd_timer(&sk->timer);
sk165net/unix/af_unix.cstatic void unix_destroy_socket(unix_socket *sk)
sk168net/unix/af_unix.cunix_remove_socket(sk);
sk170net/unix/af_unix.cwhile((skb=skb_dequeue(&sk->receive_queue))!=NULL)
sk172net/unix/af_unix.cif(sk->state==TCP_LISTEN)
sk174net/unix/af_unix.cunix_socket *osk=skb->sk;
sk187net/unix/af_unix.cif(sk->protinfo.af_unix.inode!=NULL)
sk189net/unix/af_unix.ciput(sk->protinfo.af_unix.inode);
sk190net/unix/af_unix.csk->protinfo.af_unix.inode=NULL;
sk193net/unix/af_unix.cif(--sk->protinfo.af_unix.locks==0 && sk->wmem_alloc==0)
sk195net/unix/af_unix.cif(sk->protinfo.af_unix.name)
sk196net/unix/af_unix.ckfree(sk->protinfo.af_unix.name);
sk197net/unix/af_unix.ckfree_s(sk,sizeof(*sk));
sk201net/unix/af_unix.csk->dead=1;
sk202net/unix/af_unix.cunix_delayed_delete(sk);  /* Try every so often until buffers are all freed */
sk221net/unix/af_unix.cunix_socket *sk=sock->data;
sk224net/unix/af_unix.creturn sock_setsockopt(sk,level,optname,optval,optlen);  
sk229net/unix/af_unix.cunix_socket *sk=sock->data;
sk232net/unix/af_unix.creturn sock_getsockopt(sk,level,optname,optval,optlen);
sk237net/unix/af_unix.cunix_socket *sk=sock->data;
sk238net/unix/af_unix.cif(sk->type!=SOCK_STREAM)
sk240net/unix/af_unix.cif(sk->protinfo.af_unix.name==NULL)
sk242net/unix/af_unix.csk->max_ack_backlog=backlog;
sk243net/unix/af_unix.csk->state=TCP_LISTEN;
sk247net/unix/af_unix.cstatic void def_callback1(struct sock *sk)
sk249net/unix/af_unix.cif(!sk->dead)
sk250net/unix/af_unix.cwake_up_interruptible(sk->sleep);
sk253net/unix/af_unix.cstatic void def_callback2(struct sock *sk, int len)
sk255net/unix/af_unix.cif(!sk->dead)
sk257net/unix/af_unix.cwake_up_interruptible(sk->sleep);
sk258net/unix/af_unix.csock_wake_async(sk->socket, 1);
sk262net/unix/af_unix.cstatic void def_callback3(struct sock *sk)
sk264net/unix/af_unix.cif(!sk->dead)
sk266net/unix/af_unix.cwake_up_interruptible(sk->sleep);
sk267net/unix/af_unix.csock_wake_async(sk->socket, 2);
sk273net/unix/af_unix.cunix_socket *sk;
sk277net/unix/af_unix.csk=(unix_socket *)kmalloc(sizeof(*sk),GFP_KERNEL);
sk278net/unix/af_unix.cif(sk==NULL)
sk293net/unix/af_unix.ckfree_s(sk,sizeof(*sk));
sk296net/unix/af_unix.csk->type=sock->type;
sk297net/unix/af_unix.cinit_timer(&sk->timer);
sk298net/unix/af_unix.cskb_queue_head_init(&sk->write_queue);
sk299net/unix/af_unix.cskb_queue_head_init(&sk->receive_queue);
sk300net/unix/af_unix.cskb_queue_head_init(&sk->back_log);
sk301net/unix/af_unix.csk->protinfo.af_unix.family=AF_UNIX;
sk302net/unix/af_unix.csk->protinfo.af_unix.inode=NULL;
sk303net/unix/af_unix.csk->protinfo.af_unix.locks=1;    /* Us */
sk304net/unix/af_unix.csk->protinfo.af_unix.readsem=MUTEX;  /* single task reading lock */
sk305net/unix/af_unix.csk->protinfo.af_unix.name=NULL;
sk306net/unix/af_unix.csk->protinfo.af_unix.other=NULL;
sk307net/unix/af_unix.csk->protocol=0;
sk308net/unix/af_unix.csk->rmem_alloc=0;
sk309net/unix/af_unix.csk->wmem_alloc=0;
sk310net/unix/af_unix.csk->dead=0;
sk311net/unix/af_unix.csk->next=NULL;
sk312net/unix/af_unix.csk->broadcast=0;
sk313net/unix/af_unix.csk->rcvbuf=SK_RMEM_MAX;
sk314net/unix/af_unix.csk->sndbuf=SK_WMEM_MAX;
sk315net/unix/af_unix.csk->allocation=GFP_KERNEL;
sk316net/unix/af_unix.csk->users=0;
sk317net/unix/af_unix.csk->bsdism=0;
sk318net/unix/af_unix.csk->debug=0;
sk319net/unix/af_unix.csk->prot=NULL;
sk320net/unix/af_unix.csk->err=0;
sk321net/unix/af_unix.csk->localroute=0;
sk322net/unix/af_unix.csk->send_head=NULL;
sk323net/unix/af_unix.csk->state=TCP_CLOSE;
sk324net/unix/af_unix.csk->priority=SOPRI_NORMAL;
sk325net/unix/af_unix.csk->ack_backlog=0;
sk326net/unix/af_unix.csk->shutdown=0;
sk327net/unix/af_unix.csk->state_change=def_callback1;
sk328net/unix/af_unix.csk->data_ready=def_callback2;
sk329net/unix/af_unix.csk->write_space=def_callback3;
sk330net/unix/af_unix.csk->error_report=def_callback1;
sk331net/unix/af_unix.csk->mtu=4096;
sk332net/unix/af_unix.csk->socket=sock;
sk333net/unix/af_unix.csock->data=(void *)sk;
sk334net/unix/af_unix.csk->sleep=sock->wait;
sk335net/unix/af_unix.csk->zapped=0;
sk336net/unix/af_unix.cunix_insert_socket(sk);
sk347net/unix/af_unix.cunix_socket *sk=sock->data;
sk352net/unix/af_unix.cif(sk==NULL)
sk355net/unix/af_unix.csk->state_change(sk);
sk356net/unix/af_unix.csk->dead=1;
sk357net/unix/af_unix.cskpair=(unix_socket *)sk->protinfo.af_unix.other;  /* Person we send to (default) */
sk358net/unix/af_unix.cif(sk->type==SOCK_STREAM && skpair!=NULL && skpair->state!=TCP_LISTEN)
sk365net/unix/af_unix.csk->protinfo.af_unix.other=NULL;    /* No pair */
sk366net/unix/af_unix.cunix_destroy_socket(sk);      /* Try and flush out this socket. Throw our buffers at least */
sk407net/unix/af_unix.cunix_socket *sk=sock->data;
sk411net/unix/af_unix.cif(sk->protinfo.af_unix.name)
sk420net/unix/af_unix.cif(sk->protinfo.af_unix.inode!=NULL)
sk423net/unix/af_unix.csk->protinfo.af_unix.name=kmalloc(addr_len+1, GFP_KERNEL);
sk424net/unix/af_unix.cif(sk->protinfo.af_unix.name==NULL)
sk426net/unix/af_unix.cmemcpy(sk->protinfo.af_unix.name, sunaddr->sun_path, addr_len+1);
sk431net/unix/af_unix.cerr=do_mknod(sk->protinfo.af_unix.name,S_IFSOCK|S_IRWXUGO,0);
sk433net/unix/af_unix.cerr=open_namei(sk->protinfo.af_unix.name, 2, S_IFSOCK, &sk->protinfo.af_unix.inode, NULL);
sk439net/unix/af_unix.ckfree_s(sk->protinfo.af_unix.name,addr_len+1);
sk440net/unix/af_unix.csk->protinfo.af_unix.name=NULL;
sk453net/unix/af_unix.cunix_socket *sk=sock->data;
sk459net/unix/af_unix.cif(sk->type==SOCK_STREAM && sk->protinfo.af_unix.other)
sk461net/unix/af_unix.cif(sock->state==SS_CONNECTING && sk->state==TCP_ESTABLISHED)
sk466net/unix/af_unix.cif(sock->state==SS_CONNECTING && sk->state == TCP_CLOSE)
sk481net/unix/af_unix.cif(sk->type==SOCK_DGRAM && sk->protinfo.af_unix.other)
sk483net/unix/af_unix.csk->protinfo.af_unix.other->protinfo.af_unix.locks--;
sk484net/unix/af_unix.csk->protinfo.af_unix.other=NULL;
sk493net/unix/af_unix.cif(other->type!=sk->type)
sk496net/unix/af_unix.csk->protinfo.af_unix.other=other;
sk498net/unix/af_unix.csk->state=TCP_ESTABLISHED;
sk509net/unix/af_unix.cskb=sock_alloc_send_skb(sk, 0, 0, 0, &err); /* Marker object */
sk512net/unix/af_unix.cskb->sk=sk;        /* So they know it is us */
sk514net/unix/af_unix.csk->state=TCP_CLOSE;
sk522net/unix/af_unix.cif(other->type!=sk->type)
sk529net/unix/af_unix.csk->protinfo.af_unix.other=other;
sk531net/unix/af_unix.csk->state=TCP_SYN_SENT;
sk541net/unix/af_unix.cwhile(sk->state==TCP_SYN_SENT)
sk548net/unix/af_unix.cinterruptible_sleep_on(sk->sleep);
sk560net/unix/af_unix.cif(sk->state==TCP_CLOSE)
sk562net/unix/af_unix.csk->protinfo.af_unix.other->protinfo.af_unix.locks--;
sk563net/unix/af_unix.csk->protinfo.af_unix.other=NULL;
sk598net/unix/af_unix.cunix_socket *sk=sock->data;
sk602net/unix/af_unix.cif(sk->type!=SOCK_STREAM)
sk606net/unix/af_unix.cif(sk->state!=TCP_LISTEN)
sk612net/unix/af_unix.cif(sk->protinfo.af_unix.name!=NULL)
sk614net/unix/af_unix.cnewsk->protinfo.af_unix.name=kmalloc(strlen(sk->protinfo.af_unix.name)+1, GFP_KERNEL);
sk617net/unix/af_unix.cstrcpy(newsk->protinfo.af_unix.name, sk->protinfo.af_unix.name);
sk623net/unix/af_unix.cskb=skb_dequeue(&sk->receive_queue);
sk631net/unix/af_unix.cinterruptible_sleep_on(sk->sleep);
sk641net/unix/af_unix.ctsk=skb->sk;
sk643net/unix/af_unix.csk->ack_backlog--;
sk649net/unix/af_unix.csk->protinfo.af_unix.locks--;  /* Locked to child socket not master */
sk659net/unix/af_unix.cunix_socket *sk=sock->data;
sk664net/unix/af_unix.cif(sk->protinfo.af_unix.other==NULL)
sk666net/unix/af_unix.csk=sk->protinfo.af_unix.other;
sk669net/unix/af_unix.cif(sk->protinfo.af_unix.name==NULL)
sk675net/unix/af_unix.c*uaddr_len=sizeof(sunaddr->sun_family)+strlen(sk->protinfo.af_unix.name)+1;
sk676net/unix/af_unix.cstrcpy(sunaddr->sun_path,sk->protinfo.af_unix.name);    /* 108 byte limited */
sk685net/unix/af_unix.cunix_socket *sk=sock->data;
sk695net/unix/af_unix.cif(sk->err)
sk696net/unix/af_unix.creturn sock_error(sk);
sk708net/unix/af_unix.cif(sk->state==TCP_ESTABLISHED)
sk717net/unix/af_unix.cif(sk->protinfo.af_unix.other==NULL)
sk751net/unix/af_unix.cif(size>(sk->sndbuf-sizeof(struct sk_buff))/2)  /* Keep two messages in the pipe so it schedules better */
sk755net/unix/af_unix.csize=(sk->sndbuf-sizeof(struct sk_buff))/2;
sk772net/unix/af_unix.cskb=sock_alloc_send_skb(sk,size,limit,nonblock, &err);
sk778net/unix/af_unix.csk->err=-err;
sk785net/unix/af_unix.cskb->sk=sk;
sk793net/unix/af_unix.cother=sk->protinfo.af_unix.other;
sk797net/unix/af_unix.csk->protinfo.af_unix.other=NULL;
sk841net/unix/af_unix.cstatic void unix_data_wait(unix_socket * sk)
sk844net/unix/af_unix.cif (!skb_peek(&sk->receive_queue)) {
sk845net/unix/af_unix.csk->socket->flags |= SO_WAITDATA;
sk846net/unix/af_unix.cinterruptible_sleep_on(sk->sleep);
sk847net/unix/af_unix.csk->socket->flags &= ~SO_WAITDATA;
sk884net/unix/af_unix.cunix_socket *sk=sock->data;
sk901net/unix/af_unix.cif(sk->err)
sk902net/unix/af_unix.creturn sock_error(sk);
sk904net/unix/af_unix.cdown(&sk->protinfo.af_unix.readsem);    /* Lock the socket */
sk918net/unix/af_unix.cskb=skb_dequeue(&sk->receive_queue);
sk921net/unix/af_unix.cup(&sk->protinfo.af_unix.readsem);
sk922net/unix/af_unix.cif(sk->shutdown & RCV_SHUTDOWN)
sk930net/unix/af_unix.cunix_data_wait(sk);
sk931net/unix/af_unix.cdown(&sk->protinfo.af_unix.readsem);
sk937net/unix/af_unix.cif(skb->sk->protinfo.af_unix.name)
sk939net/unix/af_unix.cmemcpy(sunaddr->sun_path, skb->sk->protinfo.af_unix.name, 108);
sk964net/unix/af_unix.cskb_queue_head(&sk->receive_queue, skb);
sk973net/unix/af_unix.cup(&sk->protinfo.af_unix.readsem);
sk979net/unix/af_unix.cunix_socket *sk=(unix_socket *)sock->data;
sk980net/unix/af_unix.cunix_socket *other=sk->protinfo.af_unix.other;
sk983net/unix/af_unix.csk->shutdown|=SEND_SHUTDOWN;
sk984net/unix/af_unix.csk->state_change(sk);
sk991net/unix/af_unix.cother=sk->protinfo.af_unix.other;
sk994net/unix/af_unix.csk->shutdown|=RCV_SHUTDOWN;
sk995net/unix/af_unix.csk->state_change(sk);
sk1013net/unix/af_unix.cunix_socket *sk=sock->data;
sk1024net/unix/af_unix.camount=sk->sndbuf-sk->wmem_alloc;
sk1032net/unix/af_unix.cif(sk->state==TCP_LISTEN)
sk1035net/unix/af_unix.cif((skb=skb_peek(&sk->receive_queue))!=NULL)