taglinefilesource code
th226drivers/net/slhc.cstruct tcphdr *th, *oth;
th244drivers/net/slhc.cth = (struct tcphdr *)(((unsigned char *)ip) + ip->ihl*4);
th245drivers/net/slhc.chlen = ip->ihl*4 + th->doff*4;
th250drivers/net/slhc.cif(th->syn || th->fin || th->rst ||
th251drivers/net/slhc.c! (th->ack)){
th252drivers/net/slhc.cDPRINT(("comp: noncomp 2 %x %x %d %d %d %d\n", ip, th, 
th253drivers/net/slhc.cth->syn, th->fin, th->rst, th->ack));
th275drivers/net/slhc.c&& th->source == cs->cs_tcp.source
th276drivers/net/slhc.c&& th->dest == cs->cs_tcp.dest)
th335drivers/net/slhc.c|| th->doff != cs->cs_tcp.doff
th337drivers/net/slhc.c|| (th->doff > 5 && memcmp(th+1,cs->cs_tcpopt,((th->doff)-5)*4 != 0))){
th348drivers/net/slhc.cif(th->urg){
th349drivers/net/slhc.cdeltaS = ntohs(th->urg_ptr);
th352drivers/net/slhc.c} else if(th->urg_ptr != oth->urg_ptr){
th360drivers/net/slhc.cif((deltaS = ntohs(th->window) - ntohs(oth->window)) != 0){
th364drivers/net/slhc.cif((deltaA = ntohl(th->ack_seq) - ntohl(oth->ack_seq)) != 0L){
th370drivers/net/slhc.cif((deltaS = ntohl(th->seq) - ntohl(oth->seq)) != 0L){
th419drivers/net/slhc.cif(th->psh)
th424drivers/net/slhc.cdeltaA = ntohs(th->check);
th426drivers/net/slhc.cmemcpy(&cs->cs_tcp,th,20);
th460drivers/net/slhc.cmemcpy(&cs->cs_tcp,th,20);
th463drivers/net/slhc.cif (th->doff > 5)
th464drivers/net/slhc.cmemcpy(cs->cs_tcpopt, th+1, ((th->doff) - 5) * 4);
th81drivers/net/slip.cstruct tcphdr *th;
th87drivers/net/slip.cth = (struct tcphdr *) (ptr + ip->ihl * 4);
th90drivers/net/slip.cntohl(th->seq), ntohl(th->ack_seq), ntohs(ip->tot_len));
th52net/inet/skbuff.hstruct tcphdr  *th;
th116net/inet/tcp.cprint_th(struct tcphdr *th)
th123net/inet/tcp.cptr =(unsigned char *)(th + 1);
th125net/inet/tcp.cntohs(th->source), ntohs(th->dest),
th126net/inet/tcp.cntohl(th->seq), ntohl(th->ack_seq));
th128net/inet/tcp.cth->fin, th->syn, th->rst, th->psh, th->ack,
th129net/inet/tcp.cth->urg, th->res1, th->res2);
th131net/inet/tcp.cntohs(th->window), ntohs(th->check), ntohs(th->urg_ptr));
th132net/inet/tcp.cprintk("    doff = %d\n", th->doff);
th241net/inet/tcp.cstruct tcphdr *th;
th250net/inet/tcp.cth =(struct tcphdr *)header;
th251net/inet/tcp.csk = get_sock(&tcp_prot, th->source/*dest*/, daddr, th->dest/*source*/, saddr);
th252net/inet/tcp.cprint_th(th);
th335net/inet/tcp.cif (before(counted, skb->h.th->seq))   /* Found a hole so stops here */
th337net/inet/tcp.csum = skb->len -(counted - skb->h.th->seq);  /* Length - header but start from where we are up to (avoid overlaps) */
th338net/inet/tcp.cif (skb->h.th->syn) sum++;
th339net/inet/tcp.cif (skb->h.th->urg) {
th340net/inet/tcp.csum -= ntohs(skb->h.th->urg_ptr);  /* Dont count urg data */
th344net/inet/tcp.cif (skb->h.th->syn) amount--;
th347net/inet/tcp.cif (amount && skb->h.th->psh) break;
th493net/inet/tcp.cif (sk->copied_seq+1 == skb->h.th->seq && skb->h.th->urg) 
th525net/inet/tcp.ctcp_check(struct tcphdr *th, int len,
th531net/inet/tcp.cprint_th(th);
th546net/inet/tcp.c: "=b"(sum) , "=S"(th)
th547net/inet/tcp.c: "0"(sum), "c"(len/4) ,"1"(th)
th565net/inet/tcp.c: "=b"(sum), "=S"(th)
th566net/inet/tcp.c: "0"(sum) ,"1"(th)
th577net/inet/tcp.c: "0"(sum) ,"S"(th)
th586net/inet/tcp.cvoid tcp_send_check(struct tcphdr *th, unsigned long saddr, 
th589net/inet/tcp.cth->check = 0;
th590net/inet/tcp.cth->check = tcp_check(th, len, saddr, daddr);
th599net/inet/tcp.csize = skb->len - ((unsigned char *) skb->h.th - skb->data);
th604net/inet/tcp.cskb, skb->data, skb->h.th, skb->len);
th612net/inet/tcp.cif(!skb->h.th->syn && !skb->h.th->fin) {
th620net/inet/tcp.ctcp_send_check(skb->h.th, sk->saddr, sk->daddr, size, sk);
th694net/inet/tcp.cstruct tcphdr *th, unsigned long daddr)
th737net/inet/tcp.cmemcpy(t1, th, sizeof(*t1)); /* this should probably be removed */
th740net/inet/tcp.ct1->dest = th->source;
th741net/inet/tcp.ct1->source = th->dest;
th776net/inet/tcp.ctcp_build_header(struct tcphdr *th, struct sock *sk, int push)
th780net/inet/tcp.cmemcpy(th,(void *) &(sk->dummy_th), sizeof(*th));
th781net/inet/tcp.cth->seq = htonl(sk->send_seq);
th782net/inet/tcp.cth->psh =(push == 0) ? 1 : 0;
th783net/inet/tcp.cth->doff = sizeof(*th)/4;
th784net/inet/tcp.cth->ack = 1;
th785net/inet/tcp.cth->fin = 0;
th789net/inet/tcp.cth->ack_seq = htonl(sk->acked_seq);
th791net/inet/tcp.cth->window = htons(sk->window);
th793net/inet/tcp.creturn(sizeof(*th));
th893net/inet/tcp.chdrlen = ((unsigned long)skb->h.th - (unsigned long)skb->data)
th1008net/inet/tcp.cskb->h.th =(struct tcphdr *) buff;
th1286net/inet/tcp.cif (skb->h.th->urg && !skb->urg_used) {
th1287net/inet/tcp.cif (skb->h.th->urg_ptr == 0) {
th1288net/inet/tcp.cskb->h.th->urg_ptr = ntohs(skb->len);
th1290net/inet/tcp.camt = min(ntohs(skb->h.th->urg_ptr),len);
th1293net/inet/tcp.cmemcpy_tofs(to,(unsigned char *)(skb->h.th) +
th1294net/inet/tcp.cskb->h.th->doff*4, amt);
th1354net/inet/tcp.cbefore(sk->copied_seq+1, skb->h.th->seq) || skb->used) {
th1433net/inet/tcp.cbefore(sk->copied_seq+1, sk->rqueue->h.th->seq)) {
th1462net/inet/tcp.coffset = sk->copied_seq+1 - skb->h.th->seq;
th1464net/inet/tcp.cif (skb->h.th->syn) offset--;
th1471net/inet/tcp.cif (skb->h.th->urg) 
th1475net/inet/tcp.csk->copied_seq += ntohs(skb->h.th->urg_ptr);
th1476net/inet/tcp.coffset += ntohs(skb->h.th->urg_ptr);
th1496net/inet/tcp.cmemcpy_tofs(to,((unsigned char *)skb->h.th) +
th1497net/inet/tcp.cskb->h.th->doff*4 + offset, used);
th1512net/inet/tcp.c(!skb->h.th->urg || skb->urg_used) &&
th1520net/inet/tcp.cif (/*skb->h.th->psh || */skb->h.th->urg) 
th1550net/inet/tcp.cstruct tcphdr *t1, *th;
th1571net/inet/tcp.cth =(struct tcphdr *)&sk->dummy_th;
th1599net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th1671net/inet/tcp.ctcp_reset(unsigned long saddr, unsigned long daddr, struct tcphdr *th,
th1705net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th1708net/inet/tcp.ct1->dest = th->source;
th1709net/inet/tcp.ct1->source = th->dest;
th1713net/inet/tcp.cif(th->ack)
th1716net/inet/tcp.ct1->seq=th->ack_seq;
th1722net/inet/tcp.cif(!th->syn)
th1723net/inet/tcp.ct1->ack_seq=htonl(th->seq);
th1725net/inet/tcp.ct1->ack_seq=htonl(th->seq+1);
th1744net/inet/tcp.ctcp_options(struct sock *sk, struct tcphdr *th)
th1747net/inet/tcp.cint length=(th->doff*4)-sizeof(struct tcphdr);
th1749net/inet/tcp.cptr = (unsigned char *)(th + 1);
th1799net/inet/tcp.cstruct tcphdr *th;
th1806net/inet/tcp.cth = skb->h.th;
th1813net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl);
th1866net/inet/tcp.cnewsk->acked_seq = skb->h.th->seq+1;
th1867net/inet/tcp.cnewsk->fin_seq = skb->h.th->seq;
th1868net/inet/tcp.cnewsk->copied_seq = skb->h.th->seq;
th1878net/inet/tcp.cnewsk->dummy_th.source = skb->h.th->dest;
th1879net/inet/tcp.cnewsk->dummy_th.dest = skb->h.th->source;
th1895net/inet/tcp.cnewsk->acked_seq = skb->h.th->seq + 1;
th1896net/inet/tcp.cnewsk->copied_seq = skb->h.th->seq;
th1912net/inet/tcp.ctcp_options(newsk,skb->h.th);
th1949net/inet/tcp.cmemcpy(t1, skb->h.th, sizeof(*t1));
th1953net/inet/tcp.ct1->dest = skb->h.th->source;
th1965net/inet/tcp.ct1->ack_seq = ntohl(skb->h.th->seq+1);
th1995net/inet/tcp.cstruct tcphdr *t1, *th;
th2020net/inet/tcp.cif(skb->len > 0 && after(skb->h.th->seq + skb->len + 1 , sk->copied_seq))
th2061net/inet/tcp.cth =(struct tcphdr *)&sk->dummy_th;
th2094net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th2217net/inet/tcp.ctcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len)
th2225net/inet/tcp.cack = ntohl(th->ack_seq);
th2228net/inet/tcp.cack, ntohs(th->window), sk->rcv_ack_seq, sk->window_seq));
th2244net/inet/tcp.cif (len != th->doff*4) flag |= 1;
th2247net/inet/tcp.cif (after(sk->window_seq, ack+ntohs(th->window))) {
th2265net/inet/tcp.csk->window_seq = ack + ntohs(th->window);
th2308net/inet/tcp.csk->window_seq = ack + ntohs(th->window);
th2499net/inet/tcp.cth, sk->daddr);
th2528net/inet/tcp.cstruct tcphdr *th;
th2531net/inet/tcp.cth = skb->h.th;
th2532net/inet/tcp.cprint_th(th);
th2533net/inet/tcp.cskb->len = len -(th->doff*4);
th2538net/inet/tcp.cif (skb->len == 0 && !th->fin && !th->urg && !th->psh) {
th2540net/inet/tcp.cif (!th->ack) tcp_send_ack(sk->send_seq, sk->acked_seq,sk, th, saddr);
th2546net/inet/tcp.csk->acked_seq = th->seq + skb->len + th->syn + th->fin;
th2547net/inet/tcp.ctcp_reset(sk->saddr, sk->daddr, skb->h.th,
th2584net/inet/tcp.cprintk("skb1->h.th->seq = %ld: ", skb1->h.th->seq);
th2585net/inet/tcp.cprintk("skb->h.th->seq = %ld\n",skb->h.th->seq);
th2590net/inet/tcp.cif (after(th->seq+1, skb1->h.th->seq)) {
th2608net/inet/tcp.cif (th->seq==skb1->h.th->seq && skb->len>= skb1->len)
th2617net/inet/tcp.cif (after(th->seq+1, skb1->h.th->seq))
th2632net/inet/tcp.cth->ack_seq = th->seq + skb->len;
th2633net/inet/tcp.cif (th->syn) th->ack_seq++;
th2634net/inet/tcp.cif (th->fin) th->ack_seq++;
th2642net/inet/tcp.cif ((!dup_dumped && (skb1 == NULL || skb1->acked)) || before(th->seq, sk->acked_seq+1)) {
th2643net/inet/tcp.cif (before(th->seq, sk->acked_seq+1)) {
th2644net/inet/tcp.cif (after(th->ack_seq, sk->acked_seq))
th2645net/inet/tcp.csk->acked_seq = th->ack_seq;
th2649net/inet/tcp.cif (skb->h.th->fin) {
th2657net/inet/tcp.cif (before(skb2->h.th->seq, sk->acked_seq+1)) {
th2658net/inet/tcp.cif (after(skb2->h.th->ack_seq, sk->acked_seq))
th2661net/inet/tcp.csk->acked_seq = skb2->h.th->ack_seq;
th2677net/inet/tcp.cif (skb2->h.th->fin) {
th2695net/inet/tcp.csk->bytes_rcv > sk->max_unacked || th->fin) {
th2740net/inet/tcp.ctcp_send_ack(sk->send_seq, sk->acked_seq, sk, th, saddr);
th2745net/inet/tcp.ctcp_send_ack(sk->send_seq, sk->acked_seq, sk, th, saddr);
th2772net/inet/tcp.ctcp_urg(struct sock *sk, struct tcphdr *th, unsigned long saddr)
th2781net/inet/tcp.cth->urg = 0;
th2782net/inet/tcp.cth->psh = 1;
th2803net/inet/tcp.ctcp_fin(struct sock *sk, struct tcphdr *th, 
th2807net/inet/tcp.csk, th, saddr, dev));
th2818net/inet/tcp.csk->fin_seq = th->seq+1;
th2820net/inet/tcp.cif (th->rst) sk->shutdown = SHUTDOWN_MASK;
th2829net/inet/tcp.csk->fin_seq = th->seq+1;
th3011net/inet/tcp.ctcp_sequence(struct sock *sk, struct tcphdr *th, short len,
th3021net/inet/tcp.csk, th, len, opt, saddr));
th3023net/inet/tcp.cif (between(th->seq, sk->acked_seq, sk->acked_seq + sk->window)||
th3024net/inet/tcp.cbetween(th->seq + len-(th->doff*4), sk->acked_seq + 1,
th3026net/inet/tcp.c(before(th->seq, sk->acked_seq) &&
th3027net/inet/tcp.cafter(th->seq + len -(th->doff*4), sk->acked_seq + sk->window))) {
th3041net/inet/tcp.ctcp_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl);
th3049net/inet/tcp.cif (after(th->seq, sk->acked_seq + sk->window)) {
th3050net/inet/tcp.cif(!th->rst)
th3051net/inet/tcp.ctcp_send_ack(sk->send_seq, sk->acked_seq, sk, th, saddr);
th3064net/inet/tcp.cif (th->ack && len == (th->doff * 4) &&
th3065net/inet/tcp.cafter(th->seq, sk->acked_seq - 32767) &&
th3066net/inet/tcp.c!th->fin && !th->syn) return(1);
th3069net/inet/tcp.cif (!th->rst) {
th3071net/inet/tcp.ctcp_send_ack(sk->send_seq, sk->acked_seq, sk, th, saddr);
th3085net/inet/tcp.cstruct tcphdr *th;
th3106net/inet/tcp.cth = skb->h.th;
th3109net/inet/tcp.csk = get_sock(&tcp_prot, th->dest, saddr, th->source, daddr);
th3123net/inet/tcp.cif (tcp_check(th, len, saddr, daddr )) {
th3137net/inet/tcp.cif (!th->rst) 
th3139net/inet/tcp.cth->seq = ntohl(th->seq);
th3141net/inet/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
th3157net/inet/tcp.cth->seq = ntohl(th->seq);
th3208net/inet/tcp.cif (th->rst) {
th3226net/inet/tcp.cif (!tcp_sequence(sk, th, len, opt, saddr,dev)) {
th3230net/inet/tcp.cif(!th->rst)
th3232net/inet/tcp.csk, th, saddr);
th3239net/inet/tcp.cif (th->rst) {
th3266net/inet/tcp.cth->syn) {
th3270net/inet/tcp.ctcp_reset(daddr, saddr,  th, sk->prot, opt,dev, sk->ip_tos,sk->ip_ttl);
th3278net/inet/tcp.cif (th->ack) {
th3279net/inet/tcp.cif (!tcp_ack(sk, th, saddr, len)) {
th3285net/inet/tcp.cif (th->urg) {
th3286net/inet/tcp.cif (tcp_urg(sk, th, saddr)) {
th3300net/inet/tcp.cif (th->fin && tcp_fin(sk, th, saddr, dev)) {
th3317net/inet/tcp.cif (!th->rst) {
th3318net/inet/tcp.cif (!th->ack)
th3319net/inet/tcp.cth->ack_seq = 0;
th3320net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt,dev,sk->ip_tos,sk->ip_ttl);
th3327net/inet/tcp.cif (th->rst) {
th3332net/inet/tcp.cif (th->ack) {
th3333net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt,dev,sk->ip_tos,sk->ip_ttl);
th3339net/inet/tcp.cif (th->syn) {
th3342net/inet/tcp.ctcp_reset(daddr, saddr, th, prot, opt,dev);
th3364net/inet/tcp.cif (!tcp_sequence(sk, th, len, opt, saddr,dev)) {
th3371net/inet/tcp.cif (th->rst) {
th3388net/inet/tcp.ctcp_reset(daddr, saddr,  th, sk->prot, opt, dev);
th3397net/inet/tcp.cif (!th->ack) {
th3398net/inet/tcp.cif (th->syn) {
th3409net/inet/tcp.cif (!tcp_ack(sk, th, saddr, len)) {
th3410net/inet/tcp.ctcp_reset(daddr, saddr, th,
th3421net/inet/tcp.cif (!th->syn) {
th3428net/inet/tcp.csk->acked_seq = th->seq+1;
th3429net/inet/tcp.csk->fin_seq = th->seq;
th3430net/inet/tcp.ctcp_send_ack(sk->send_seq, th->seq+1,
th3431net/inet/tcp.csk, th, sk->daddr);
th3434net/inet/tcp.cif (!tcp_ack(sk, th, saddr, len)) {
th3435net/inet/tcp.ctcp_reset(daddr, saddr, th,
th3448net/inet/tcp.ctcp_options(sk, th);
th3449net/inet/tcp.csk->dummy_th.dest = th->source;
th3459net/inet/tcp.cif (th->urg) {
th3460net/inet/tcp.cif (tcp_urg(sk, th, saddr)) { 
th3469net/inet/tcp.cif (th->fin) tcp_fin(sk, th, saddr, dev);
th3474net/inet/tcp.cif (th->urg) {
th3475net/inet/tcp.cif (tcp_urg(sk, th, saddr)) {
th3488net/inet/tcp.cif (!th->fin) {
th3492net/inet/tcp.ctcp_fin(sk, th, saddr, dev);
th3623net/inet/tcp.ct1 = skb2->h.th;
th99net/inet/udp.cstruct udphdr *th;
th105net/inet/udp.cth = (struct udphdr *)header;  
th108net/inet/udp.csport=%d,dport=%d", err, header, daddr, saddr, protocol, (int)th->source,(int)th->dest));
th110net/inet/udp.csk = get_sock(&udp_prot, th->source, daddr, th->dest, saddr);