taglinefilesource code
th232drivers/net/slhc.cstruct tcphdr *th, *oth;
th250drivers/net/slhc.cth = (struct tcphdr *)(((unsigned char *)ip) + ip->ihl*4);
th251drivers/net/slhc.chlen = ip->ihl*4 + th->doff*4;
th256drivers/net/slhc.cif(th->syn || th->fin || th->rst ||
th257drivers/net/slhc.c! (th->ack)){
th258drivers/net/slhc.cDPRINT(("comp: noncomp 2 %x %x %d %d %d %d\n", ip, th, 
th259drivers/net/slhc.cth->syn, th->fin, th->rst, th->ack));
th281drivers/net/slhc.c&& th->source == cs->cs_tcp.source
th282drivers/net/slhc.c&& th->dest == cs->cs_tcp.dest)
th341drivers/net/slhc.c|| th->doff != cs->cs_tcp.doff
th343drivers/net/slhc.c|| (th->doff > 5 && memcmp(th+1,cs->cs_tcpopt,((th->doff)-5)*4 != 0))){
th354drivers/net/slhc.cif(th->urg){
th355drivers/net/slhc.cdeltaS = ntohs(th->urg_ptr);
th358drivers/net/slhc.c} else if(th->urg_ptr != oth->urg_ptr){
th366drivers/net/slhc.cif((deltaS = ntohs(th->window) - ntohs(oth->window)) != 0){
th370drivers/net/slhc.cif((deltaA = ntohl(th->ack_seq) - ntohl(oth->ack_seq)) != 0L){
th376drivers/net/slhc.cif((deltaS = ntohl(th->seq) - ntohl(oth->seq)) != 0L){
th425drivers/net/slhc.cif(th->psh)
th430drivers/net/slhc.cdeltaA = ntohs(th->check);
th432drivers/net/slhc.cmemcpy(&cs->cs_tcp,th,20);
th466drivers/net/slhc.cmemcpy(&cs->cs_tcp,th,20);
th469drivers/net/slhc.cif (th->doff > 5)
th470drivers/net/slhc.cmemcpy(cs->cs_tcpopt, th+1, ((th->doff) - 5) * 4);
th90drivers/net/slip.cstruct tcphdr *th;
th96drivers/net/slip.cth = (struct tcphdr *) (ptr + ip->ihl * 4);
th99drivers/net/slip.cntohl(th->seq), ntohl(th->ack_seq), ntohs(ip->tot_len));
th51include/linux/skbuff.hstruct tcphdr  *th;
th122net/inet/tcp.cstatic void __print_th(struct tcphdr *th)
th128net/inet/tcp.cntohs(th->source), ntohs(th->dest),
th129net/inet/tcp.cntohl(th->seq), ntohl(th->ack_seq));
th131net/inet/tcp.cth->fin, th->syn, th->rst, th->psh, th->ack,
th132net/inet/tcp.cth->urg, th->res1, th->res2);
th134net/inet/tcp.cntohs(th->window), ntohs(th->check), ntohs(th->urg_ptr));
th135net/inet/tcp.cprintk("    doff = %d\n", th->doff);
th136net/inet/tcp.cptr =(unsigned char *)(th + 1);
th140net/inet/tcp.cstatic inline void print_th(struct tcphdr *th)
th143net/inet/tcp.c__print_th(th);
th230net/inet/tcp.cstruct tcphdr *th;
th239net/inet/tcp.cth =(struct tcphdr *)header;
th240net/inet/tcp.csk = get_sock(&tcp_prot, th->source/*dest*/, daddr, th->dest/*source*/, saddr);
th241net/inet/tcp.cprint_th(th);
th313net/inet/tcp.cif (before(counted, skb->h.th->seq))   /* Found a hole so stops here */
th315net/inet/tcp.csum = skb->len -(counted - skb->h.th->seq);  /* Length - header but start from where we are up to (avoid overlaps) */
th316net/inet/tcp.cif (skb->h.th->syn)
th320net/inet/tcp.cif (skb->h.th->syn) amount--;
th323net/inet/tcp.cif (amount && skb->h.th->psh) break;
th490net/inet/tcp.ctcp_check(struct tcphdr *th, int len,
th496net/inet/tcp.cprint_th(th);
th511net/inet/tcp.c: "=b"(sum) , "=S"(th)
th512net/inet/tcp.c: "0"(sum), "c"(len/4) ,"1"(th)
th530net/inet/tcp.c: "=b"(sum), "=S"(th)
th531net/inet/tcp.c: "0"(sum) ,"1"(th)
th542net/inet/tcp.c: "0"(sum) ,"S"(th)
th551net/inet/tcp.cvoid tcp_send_check(struct tcphdr *th, unsigned long saddr, 
th554net/inet/tcp.cth->check = 0;
th555net/inet/tcp.cth->check = tcp_check(th, len, saddr, daddr);
th562net/inet/tcp.cstruct tcphdr * th = skb->h.th;
th565net/inet/tcp.csize = skb->len - ((unsigned char *) th - skb->data);
th570net/inet/tcp.cskb, skb->data, th, skb->len);
th578net/inet/tcp.cif(!th->syn && !th->fin) {
th587net/inet/tcp.ctcp_send_check(th, sk->saddr, sk->daddr, size, sk);
th589net/inet/tcp.cskb->h.seq = ntohl(th->seq) + size - 4*th->doff;
th663net/inet/tcp.cstruct tcphdr *th, unsigned long daddr)
th711net/inet/tcp.cmemcpy(t1, th, sizeof(*t1)); /* this should probably be removed */
th716net/inet/tcp.ct1->dest = th->source;
th717net/inet/tcp.ct1->source = th->dest;
th755net/inet/tcp.ctcp_build_header(struct tcphdr *th, struct sock *sk, int push)
th759net/inet/tcp.cmemcpy(th,(void *) &(sk->dummy_th), sizeof(*th));
th760net/inet/tcp.cth->seq = htonl(sk->write_seq);
th761net/inet/tcp.cth->psh =(push == 0) ? 1 : 0;
th762net/inet/tcp.cth->doff = sizeof(*th)/4;
th763net/inet/tcp.cth->ack = 1;
th764net/inet/tcp.cth->fin = 0;
th768net/inet/tcp.cth->ack_seq = htonl(sk->acked_seq);
th770net/inet/tcp.cth->window = htons(sk->window);
th772net/inet/tcp.creturn(sizeof(*th));
th910net/inet/tcp.chdrlen = ((unsigned long)skb->h.th - (unsigned long)skb->data)
th1056net/inet/tcp.cskb->h.th =(struct tcphdr *) buff;
th1407net/inet/tcp.cif (before(1+*seq, skb->h.th->seq))
th1409net/inet/tcp.coffset = 1 + *seq - skb->h.th->seq;
th1410net/inet/tcp.cif (skb->h.th->syn)
th1478net/inet/tcp.cmemcpy_tofs(to,((unsigned char *)skb->h.th) +
th1479net/inet/tcp.cskb->h.th->doff*4 + offset, used);
th1508net/inet/tcp.cstruct tcphdr *t1, *th;
th1539net/inet/tcp.cth =(struct tcphdr *)&sk->dummy_th;
th1578net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th1661net/inet/tcp.cstatic void tcp_reset(unsigned long saddr, unsigned long daddr, struct tcphdr *th,
th1701net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th1707net/inet/tcp.ct1->dest = th->source;
th1708net/inet/tcp.ct1->source = th->dest;
th1712net/inet/tcp.cif(th->ack)
th1715net/inet/tcp.ct1->seq = th->ack_seq;
th1721net/inet/tcp.cif(!th->syn)
th1722net/inet/tcp.ct1->ack_seq=htonl(th->seq);
th1724net/inet/tcp.ct1->ack_seq=htonl(th->seq+1);
th1748net/inet/tcp.ctcp_options(struct sock *sk, struct tcphdr *th)
th1751net/inet/tcp.cint length=(th->doff*4)-sizeof(struct tcphdr);
th1754net/inet/tcp.cptr = (unsigned char *)(th + 1);
th1774net/inet/tcp.cif(opsize==4 && th->syn)
th1786net/inet/tcp.cif (th->syn) {
th1819net/inet/tcp.cstruct tcphdr *th;
th1827net/inet/tcp.cth = skb->h.th;
th1834net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl);
th1895net/inet/tcp.cnewsk->acked_seq = skb->h.th->seq+1;
th1896net/inet/tcp.cnewsk->fin_seq = skb->h.th->seq;
th1897net/inet/tcp.cnewsk->copied_seq = skb->h.th->seq;
th1908net/inet/tcp.cnewsk->dummy_th.source = skb->h.th->dest;
th1909net/inet/tcp.cnewsk->dummy_th.dest = skb->h.th->source;
th1925net/inet/tcp.cnewsk->acked_seq = skb->h.th->seq + 1;
th1926net/inet/tcp.cnewsk->copied_seq = skb->h.th->seq;
th1950net/inet/tcp.ctcp_options(newsk,skb->h.th);
th1988net/inet/tcp.cmemcpy(t1, skb->h.th, sizeof(*t1));
th1992net/inet/tcp.ct1->dest = skb->h.th->source;
th2005net/inet/tcp.ct1->ack_seq = ntohl(skb->h.th->seq+1);
th2035net/inet/tcp.cstruct tcphdr *t1, *th;
th2063net/inet/tcp.cif(skb->len > 0 && after(skb->h.th->seq + skb->len + 1 , sk->copied_seq))
th2115net/inet/tcp.cth =(struct tcphdr *)&sk->dummy_th;
th2159net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th2281net/inet/tcp.ctcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len)
th2295net/inet/tcp.cack = ntohl(th->ack_seq);
th2298net/inet/tcp.cack, ntohs(th->window), sk->rcv_ack_seq, sk->window_seq));
th2300net/inet/tcp.cif (ntohs(th->window) > sk->max_window) {
th2301net/inet/tcp.csk->max_window = ntohs(th->window);
th2320net/inet/tcp.cif (len != th->doff*4) flag |= 1;
th2323net/inet/tcp.cif (after(sk->window_seq, ack+ntohs(th->window))) {
th2341net/inet/tcp.csk->window_seq = ack + ntohs(th->window);
th2379net/inet/tcp.csk->window_seq = ack + ntohs(th->window);
th2597net/inet/tcp.cth, sk->daddr);
th2655net/inet/tcp.cstruct tcphdr *th;
th2658net/inet/tcp.cth = skb->h.th;
th2659net/inet/tcp.cprint_th(th);
th2660net/inet/tcp.cskb->len = len -(th->doff*4);
th2665net/inet/tcp.cif (skb->len == 0 && !th->fin && !th->urg && !th->psh) {
th2667net/inet/tcp.cif (!th->ack) tcp_send_ack(sk->sent_seq, sk->acked_seq,sk, th, saddr);
th2673net/inet/tcp.csk->acked_seq = th->seq + skb->len + th->syn + th->fin;
th2674net/inet/tcp.ctcp_reset(sk->saddr, sk->daddr, skb->h.th,
th2705net/inet/tcp.cprintk("skb1->h.th->seq = %ld: ", skb1->h.th->seq);
th2706net/inet/tcp.cprintk("skb->h.th->seq = %ld\n",skb->h.th->seq);
th2710net/inet/tcp.cif (th->seq==skb1->h.th->seq && skb->len>= skb1->len)
th2719net/inet/tcp.cif (after(th->seq+1, skb1->h.th->seq))
th2733net/inet/tcp.cth->ack_seq = th->seq + skb->len;
th2734net/inet/tcp.cif (th->syn) th->ack_seq++;
th2735net/inet/tcp.cif (th->fin) th->ack_seq++;
th2743net/inet/tcp.cif ((!dup_dumped && (skb1 == NULL || skb1->acked)) || before(th->seq, sk->acked_seq+1)) {
th2744net/inet/tcp.cif (before(th->seq, sk->acked_seq+1)) {
th2747net/inet/tcp.cif (after(th->ack_seq, sk->acked_seq)) {
th2749net/inet/tcp.c(th->ack_seq - sk->acked_seq);
th2753net/inet/tcp.csk->acked_seq = th->ack_seq;
th2758net/inet/tcp.cif (skb->h.th->fin) {
th2766net/inet/tcp.cif (before(skb2->h.th->seq, sk->acked_seq+1)) {
th2767net/inet/tcp.cif (after(skb2->h.th->ack_seq, sk->acked_seq))
th2770net/inet/tcp.c(skb2->h.th->ack_seq - sk->acked_seq);
th2774net/inet/tcp.csk->acked_seq = skb2->h.th->ack_seq;
th2782net/inet/tcp.cif (skb2->h.th->fin) {
th2800net/inet/tcp.csk->bytes_rcv > sk->max_unacked || th->fin) {
th2837net/inet/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
th2842net/inet/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
th2868net/inet/tcp.cstatic void tcp_check_urg(struct sock * sk, struct tcphdr * th)
th2870net/inet/tcp.cunsigned long ptr = ntohs(th->urg_ptr);
th2874net/inet/tcp.cptr += th->seq;
th2896net/inet/tcp.cstatic inline int tcp_urg(struct sock *sk, struct tcphdr *th,
th2902net/inet/tcp.cif (th->urg)
th2903net/inet/tcp.ctcp_check_urg(sk,th);
th2910net/inet/tcp.cptr = sk->urg_seq - th->seq + th->doff*4;
th2915net/inet/tcp.csk->urg_data = URG_VALID | *(ptr + (unsigned char *) th);
th2926net/inet/tcp.cstatic int tcp_fin(struct sock *sk, struct tcphdr *th, 
th2930net/inet/tcp.csk, th, saddr, dev));
th2944net/inet/tcp.csk->fin_seq = th->seq+1;
th2947net/inet/tcp.cif (th->rst)
th2957net/inet/tcp.csk->fin_seq = th->seq+1;
th3189net/inet/tcp.ctcp_sequence(struct sock *sk, struct tcphdr *th, short len,
th3194net/inet/tcp.cnext_seq = len - 4*th->doff;
th3195net/inet/tcp.cif (th->fin)
th3200net/inet/tcp.cnext_seq += th->seq;
th3213net/inet/tcp.cif (!before(th->seq, sk->acked_seq + sk->window + 1))
th3222net/inet/tcp.cif (th->rst)
th3233net/inet/tcp.ctcp_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl);
th3238net/inet/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
th3248net/inet/tcp.cstruct tcphdr *th;
th3264net/inet/tcp.cth = skb->h.th;
th3267net/inet/tcp.csk = get_sock(&tcp_prot, th->dest, saddr, th->source, daddr);
th3281net/inet/tcp.cif (tcp_check(th, len, saddr, daddr )) {
th3293net/inet/tcp.cth->seq = ntohl(th->seq);
th3297net/inet/tcp.cif (!th->rst)
th3298net/inet/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
th3352net/inet/tcp.cif (th->rst) {
th3370net/inet/tcp.cif (!tcp_sequence(sk, th, len, opt, saddr,dev)) {
th3378net/inet/tcp.cif (th->rst) 
th3405net/inet/tcp.cif (th->syn) 
th3412net/inet/tcp.ctcp_reset(daddr, saddr,  th, sk->prot, opt,dev, sk->ip_tos,sk->ip_ttl);
th3421net/inet/tcp.cif (th->ack && !tcp_ack(sk, th, saddr, len)) {
th3427net/inet/tcp.cif (tcp_urg(sk, th, saddr, len)) {
th3440net/inet/tcp.cif (th->fin && tcp_fin(sk, th, saddr, dev)) {
th3457net/inet/tcp.cif (!th->rst) {
th3458net/inet/tcp.cif (!th->ack)
th3459net/inet/tcp.cth->ack_seq = 0;
th3460net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt,dev,sk->ip_tos,sk->ip_ttl);
th3467net/inet/tcp.cif (th->rst) {
th3472net/inet/tcp.cif (th->ack) {
th3473net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt,dev,sk->ip_tos,sk->ip_ttl);
th3479net/inet/tcp.cif (th->syn) 
th3497net/inet/tcp.cif (th->syn) {
th3506net/inet/tcp.cif (!tcp_sequence(sk, th, len, opt, saddr,dev)) 
th3514net/inet/tcp.cif (th->rst) 
th3529net/inet/tcp.cif (!th->ack) 
th3531net/inet/tcp.cif (th->syn) 
th3544net/inet/tcp.cif (!tcp_ack(sk, th, saddr, len)) 
th3547net/inet/tcp.ctcp_reset(daddr, saddr, th,
th3558net/inet/tcp.cif (!th->syn) 
th3566net/inet/tcp.csk->acked_seq = th->seq+1;
th3567net/inet/tcp.csk->fin_seq = th->seq;
th3568net/inet/tcp.ctcp_send_ack(sk->sent_seq, th->seq+1,
th3569net/inet/tcp.csk, th, sk->daddr);
th3572net/inet/tcp.cif (!tcp_ack(sk, th, saddr, len)) 
th3575net/inet/tcp.ctcp_reset(daddr, saddr, th,
th3590net/inet/tcp.ctcp_options(sk, th);
th3591net/inet/tcp.csk->dummy_th.dest = th->source;
th3615net/inet/tcp.cif (th->urg) {
th3616net/inet/tcp.cif (tcp_urg(sk, th, saddr, len)) { 
th3625net/inet/tcp.cif (th->fin) tcp_fin(sk, th, saddr, dev);
th3630net/inet/tcp.cif (th->urg) {
th3631net/inet/tcp.cif (tcp_urg(sk, th, saddr, len)) {
th3644net/inet/tcp.cif (!th->fin) {
th3648net/inet/tcp.ctcp_fin(sk, th, saddr, dev);
th110net/inet/udp.cstruct udphdr *th;
th119net/inet/udp.cth = (struct udphdr *)header;  
th122net/inet/udp.csport=%d,dport=%d", err, header, daddr, saddr, protocol, (int)th->source,(int)th->dest));
th124net/inet/udp.csk = get_sock(&udp_prot, th->source, daddr, th->dest, saddr);