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);
th76drivers/net/slip.cstruct tcphdr *th;
th82drivers/net/slip.cth = (struct tcphdr *) (ptr + ip->ihl * 4);
th85drivers/net/slip.cntohl(th->seq), ntohl(th->ack_seq), ntohs(ip->tot_len));
th52net/inet/skbuff.hstruct tcphdr  *th;
th105net/inet/tcp.cprint_th(struct tcphdr *th)
th112net/inet/tcp.cptr =(unsigned char *)(th + 1);
th114net/inet/tcp.cntohs(th->source), ntohs(th->dest),
th115net/inet/tcp.cntohl(th->seq), ntohl(th->ack_seq));
th117net/inet/tcp.cth->fin, th->syn, th->rst, th->psh, th->ack,
th118net/inet/tcp.cth->urg, th->res1, th->res2);
th120net/inet/tcp.cntohs(th->window), ntohs(th->check), ntohs(th->urg_ptr));
th121net/inet/tcp.cprintk("    doff = %d\n", th->doff);
th198net/inet/tcp.cstruct tcphdr *th;
th207net/inet/tcp.cth =(struct tcphdr *)header;
th208net/inet/tcp.csk = get_sock(&tcp_prot, th->source/*dest*/, daddr, th->dest/*source*/, saddr);
th209net/inet/tcp.cprint_th(th);
th292net/inet/tcp.cif (before(counted, skb->h.th->seq))   /* Found a hole so stops here */
th294net/inet/tcp.csum = skb->len -(counted - skb->h.th->seq);  /* Length - header but start from where we are up to (avoid overlaps) */
th295net/inet/tcp.cif (skb->h.th->syn) sum++;
th296net/inet/tcp.cif (skb->h.th->urg) {
th297net/inet/tcp.csum -= ntohs(skb->h.th->urg_ptr);  /* Dont count urg data */
th301net/inet/tcp.cif (skb->h.th->syn) amount--;
th450net/inet/tcp.cif (sk->copied_seq+1 == skb->h.th->seq && skb->h.th->urg) 
th482net/inet/tcp.ctcp_check(struct tcphdr *th, int len,
th488net/inet/tcp.cprint_th(th);
th503net/inet/tcp.c: "=b"(sum) , "=S"(th)
th504net/inet/tcp.c: "0"(sum), "c"(len/4) ,"1"(th)
th522net/inet/tcp.c: "=b"(sum), "=S"(th)
th523net/inet/tcp.c: "0"(sum) ,"1"(th)
th534net/inet/tcp.c: "0"(sum) ,"S"(th)
th544net/inet/tcp.ctcp_send_check(struct tcphdr *th, unsigned long saddr, 
th547net/inet/tcp.cth->check = 0;
th548net/inet/tcp.cth->check = tcp_check(th, len, saddr, daddr);
th563net/inet/tcp.ctcp_send_check(skb->h.th, sk->saddr, sk->daddr,
th564net/inet/tcp.cskb->len-(unsigned long)skb->h.th +
th593net/inet/tcp.cstruct tcphdr *th, unsigned long daddr)
th636net/inet/tcp.cmemcpy(t1, th, sizeof(*t1)); /* this should probably be removed */
th639net/inet/tcp.ct1->dest = th->source;
th640net/inet/tcp.ct1->source = th->dest;
th671net/inet/tcp.ctcp_build_header(struct tcphdr *th, struct sock *sk, int push)
th675net/inet/tcp.cmemcpy(th,(void *) &(sk->dummy_th), sizeof(*th));
th676net/inet/tcp.cth->seq = htonl(sk->send_seq);
th677net/inet/tcp.cth->psh =(push == 0) ? 1 : 0;
th678net/inet/tcp.cth->doff = sizeof(*th)/4;
th679net/inet/tcp.cth->ack = 1;
th680net/inet/tcp.cth->fin = 0;
th684net/inet/tcp.cth->ack_seq = htonl(sk->acked_seq);
th686net/inet/tcp.cth->window = htons(sk->window);
th688net/inet/tcp.creturn(sizeof(*th));
th807net/inet/tcp.cif (skb->len -(unsigned long)skb->h.th +
th901net/inet/tcp.cskb->h.th =(struct tcphdr *) buff;
th1185net/inet/tcp.cif (skb->h.th->urg && !skb->urg_used) {
th1186net/inet/tcp.cif (skb->h.th->urg_ptr == 0) {
th1187net/inet/tcp.cskb->h.th->urg_ptr = ntohs(skb->len);
th1189net/inet/tcp.camt = min(ntohs(skb->h.th->urg_ptr),len);
th1193net/inet/tcp.cmemcpy_tofs(to,(unsigned char *)(skb->h.th) +
th1194net/inet/tcp.cskb->h.th->doff*4, amt);
th1254net/inet/tcp.cbefore(sk->copied_seq+1, skb->h.th->seq) || skb->used) {
th1333net/inet/tcp.cbefore(sk->copied_seq+1, sk->rqueue->h.th->seq)) {
th1362net/inet/tcp.coffset = sk->copied_seq+1 - skb->h.th->seq;
th1364net/inet/tcp.cif (skb->h.th->syn) offset--;
th1371net/inet/tcp.cif (skb->h.th->urg) 
th1375net/inet/tcp.csk->copied_seq += ntohs(skb->h.th->urg_ptr);
th1376net/inet/tcp.coffset += ntohs(skb->h.th->urg_ptr);
th1396net/inet/tcp.cmemcpy_tofs(to,((unsigned char *)skb->h.th) +
th1397net/inet/tcp.cskb->h.th->doff*4 + offset, used);
th1412net/inet/tcp.c(!skb->h.th->urg || skb->urg_used) &&
th1420net/inet/tcp.cif (/*skb->h.th->psh || */skb->h.th->urg) 
th1450net/inet/tcp.cstruct tcphdr *t1, *th;
th1471net/inet/tcp.cth =(struct tcphdr *)&sk->dummy_th;
th1499net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th1571net/inet/tcp.ctcp_reset(unsigned long saddr, unsigned long daddr, struct tcphdr *th,
th1605net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th1608net/inet/tcp.ct1->dest = th->source;
th1609net/inet/tcp.ct1->source = th->dest;
th1613net/inet/tcp.cif(th->ack)
th1616net/inet/tcp.ct1->seq=th->ack_seq;
th1622net/inet/tcp.cif(!th->syn)
th1623net/inet/tcp.ct1->ack_seq=htonl(th->seq);
th1625net/inet/tcp.ct1->ack_seq=htonl(th->seq+1);
th1644net/inet/tcp.ctcp_options(struct sock *sk, struct tcphdr *th)
th1647net/inet/tcp.cint length=(th->doff*4)-sizeof(struct tcphdr);
th1650net/inet/tcp.cptr = (unsigned char *)(th + 1);
th1706net/inet/tcp.cstruct tcphdr *th;
th1713net/inet/tcp.cth = skb->h.th;
th1720net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt, dev);
th1773net/inet/tcp.cnewsk->acked_seq = skb->h.th->seq+1;
th1774net/inet/tcp.cnewsk->fin_seq = skb->h.th->seq;
th1775net/inet/tcp.cnewsk->copied_seq = skb->h.th->seq;
th1785net/inet/tcp.cnewsk->dummy_th.source = skb->h.th->dest;
th1786net/inet/tcp.cnewsk->dummy_th.dest = skb->h.th->source;
th1802net/inet/tcp.cnewsk->acked_seq = skb->h.th->seq + 1;
th1803net/inet/tcp.cnewsk->copied_seq = skb->h.th->seq;
th1806net/inet/tcp.cif (skb->h.th->doff == 5) {
th1809net/inet/tcp.cptr =(unsigned char *)(skb->h.th + 1);
th1818net/inet/tcp.ctcp_options(newsk,skb->h.th);
th1855net/inet/tcp.cmemcpy(t1, skb->h.th, sizeof(*t1));
th1859net/inet/tcp.ct1->dest = skb->h.th->source;
th1871net/inet/tcp.ct1->ack_seq = ntohl(skb->h.th->seq+1);
th1901net/inet/tcp.cstruct tcphdr *t1, *th;
th1928net/inet/tcp.cafter(skb->h.th->seq + skb->len + 1, sk->copied_seq))
th1938net/inet/tcp.cif(skb->len > 0 && after(skb->h.th->seq + skb->len + 1 , sk->copied_seq))
th1980net/inet/tcp.cth =(struct tcphdr *)&sk->dummy_th;
th2013net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th2133net/inet/tcp.ctcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len)
th2141net/inet/tcp.cack = ntohl(th->ack_seq);
th2144net/inet/tcp.cack, ntohs(th->window), sk->rcv_ack_seq, sk->window_seq));
th2157net/inet/tcp.cif (len != th->doff*4) flag |= 1;
th2160net/inet/tcp.cif (after(sk->window_seq, ack+ntohs(th->window))) {
th2178net/inet/tcp.csk->window_seq = ack + ntohs(th->window);
th2244net/inet/tcp.csk->window_seq = ack + ntohs(th->window);
th2375net/inet/tcp.cth, sk->daddr);
th2404net/inet/tcp.cstruct tcphdr *th;
th2407net/inet/tcp.cth = skb->h.th;
th2408net/inet/tcp.cprint_th(th);
th2409net/inet/tcp.cskb->len = len -(th->doff*4);
th2414net/inet/tcp.cif (skb->len == 0 && !th->fin && !th->urg && !th->psh) {
th2416net/inet/tcp.cif (!th->ack) tcp_send_ack(sk->send_seq, sk->acked_seq,sk, th, saddr);
th2422net/inet/tcp.csk->acked_seq = th->seq + skb->len + th->syn + th->fin;
th2423net/inet/tcp.ctcp_reset(sk->saddr, sk->daddr, skb->h.th,
th2460net/inet/tcp.cprintk("skb1->h.th->seq = %ld: ", skb1->h.th->seq);
th2461net/inet/tcp.cprintk("skb->h.th->seq = %ld\n",skb->h.th->seq);
th2466net/inet/tcp.cif (after(th->seq+1, skb1->h.th->seq)) {
th2484net/inet/tcp.cif (th->seq==skb1->h.th->seq && skb->len>= skb1->len)
th2493net/inet/tcp.cif (after(th->seq+1, skb1->h.th->seq))
th2508net/inet/tcp.cth->ack_seq = th->seq + skb->len;
th2509net/inet/tcp.cif (th->syn) th->ack_seq++;
th2510net/inet/tcp.cif (th->fin) th->ack_seq++;
th2518net/inet/tcp.cif ((!dup_dumped && (skb1 == NULL || skb1->acked)) || before(th->seq, sk->acked_seq+1)) {
th2519net/inet/tcp.cif (before(th->seq, sk->acked_seq+1)) {
th2520net/inet/tcp.cif (after(th->ack_seq, sk->acked_seq))
th2521net/inet/tcp.csk->acked_seq = th->ack_seq;
th2525net/inet/tcp.cif (skb->h.th->fin) {
th2533net/inet/tcp.cif (before(skb2->h.th->seq, sk->acked_seq+1)) {
th2534net/inet/tcp.cif (after(skb2->h.th->ack_seq, sk->acked_seq))
th2535net/inet/tcp.csk->acked_seq = skb2->h.th->ack_seq;
th2542net/inet/tcp.cif (skb2->h.th->fin) {
th2560net/inet/tcp.csk->bytes_rcv > sk->max_unacked || th->fin) {
th2605net/inet/tcp.ctcp_send_ack(sk->send_seq, sk->acked_seq, sk, th, saddr);
th2610net/inet/tcp.ctcp_send_ack(sk->send_seq, sk->acked_seq, sk, th, saddr);
th2637net/inet/tcp.ctcp_urg(struct sock *sk, struct tcphdr *th, unsigned long saddr)
th2645net/inet/tcp.cth->urg = 0;
th2646net/inet/tcp.cth->psh = 1;
th2667net/inet/tcp.ctcp_fin(struct sock *sk, struct tcphdr *th, 
th2671net/inet/tcp.csk, th, saddr, dev));
th2682net/inet/tcp.csk->fin_seq = th->seq+1;
th2684net/inet/tcp.cif (th->rst) sk->shutdown = SHUTDOWN_MASK;
th2693net/inet/tcp.csk->fin_seq = th->seq+1;
th2864net/inet/tcp.ctcp_sequence(struct sock *sk, struct tcphdr *th, short len,
th2874net/inet/tcp.csk, th, len, opt, saddr));
th2876net/inet/tcp.cif (between(th->seq, sk->acked_seq, sk->acked_seq + sk->window)||
th2877net/inet/tcp.cbetween(th->seq + len-(th->doff*4), sk->acked_seq + 1,
th2879net/inet/tcp.c(before(th->seq, sk->acked_seq) &&
th2880net/inet/tcp.cafter(th->seq + len -(th->doff*4), sk->acked_seq + sk->window))) {
th2889net/inet/tcp.cif (after(th->seq, sk->acked_seq + sk->window)) {
th2890net/inet/tcp.cif(!th->rst)
th2891net/inet/tcp.ctcp_send_ack(sk->send_seq, sk->acked_seq, sk, th, saddr);
th2896net/inet/tcp.cif (th->ack && len == (th->doff * 4) &&
th2897net/inet/tcp.cafter(th->seq, sk->acked_seq - 32767) &&
th2898net/inet/tcp.c!th->fin && !th->syn) return(1);
th2900net/inet/tcp.cif (!th->rst) {
th2902net/inet/tcp.ctcp_send_ack(sk->send_seq, sk->acked_seq, sk, th, saddr);
th2916net/inet/tcp.cstruct tcphdr *th;
th2937net/inet/tcp.cth = skb->h.th;
th2940net/inet/tcp.csk = get_sock(&tcp_prot, th->dest, saddr, th->source, daddr);
th2954net/inet/tcp.cif (tcp_check(th, len, saddr, daddr )) {
th2968net/inet/tcp.cif (!th->rst) 
th2970net/inet/tcp.cth->seq = ntohl(th->seq);
th2972net/inet/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev);
th2988net/inet/tcp.cth->seq = ntohl(th->seq);
th3039net/inet/tcp.cif (th->rst) {
th3057net/inet/tcp.cif (!tcp_sequence(sk, th, len, opt, saddr)) {
th3059net/inet/tcp.cif(!th->rst)
th3061net/inet/tcp.csk, th, saddr);
th3067net/inet/tcp.cif (th->rst) {
th3094net/inet/tcp.copt->compartment != 0 || th->syn)) {
th3098net/inet/tcp.ctcp_reset(daddr, saddr,  th, sk->prot, opt,dev);
th3107net/inet/tcp.cif (th->ack) {
th3108net/inet/tcp.cif (!tcp_ack(sk, th, saddr, len)) {
th3114net/inet/tcp.cif (th->urg) {
th3115net/inet/tcp.cif (tcp_urg(sk, th, saddr)) {
th3122net/inet/tcp.cif (th->fin && tcp_fin(sk, th, saddr, dev)) {
th3145net/inet/tcp.cif (!th->rst) {
th3146net/inet/tcp.cif (!th->ack)
th3147net/inet/tcp.cth->ack_seq = 0;
th3148net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt,dev);
th3155net/inet/tcp.cif (th->rst) {
th3160net/inet/tcp.cif (th->ack) {
th3161net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt,dev);
th3167net/inet/tcp.cif (th->syn) {
th3170net/inet/tcp.ctcp_reset(daddr, saddr, th, prot, opt,dev);
th3192net/inet/tcp.cif (!tcp_sequence(sk, th, len, opt, saddr)) {
th3199net/inet/tcp.cif (th->rst) {
th3216net/inet/tcp.ctcp_reset(daddr, saddr,  th, sk->prot, opt, dev);
th3225net/inet/tcp.cif (!th->ack) {
th3226net/inet/tcp.cif (th->syn) {
th3237net/inet/tcp.cif (!tcp_ack(sk, th, saddr, len)) {
th3238net/inet/tcp.ctcp_reset(daddr, saddr, th,
th3249net/inet/tcp.cif (!th->syn) {
th3256net/inet/tcp.csk->acked_seq = th->seq+1;
th3257net/inet/tcp.csk->fin_seq = th->seq;
th3258net/inet/tcp.ctcp_send_ack(sk->send_seq, th->seq+1,
th3259net/inet/tcp.csk, th, sk->daddr);
th3262net/inet/tcp.cif (!tcp_ack(sk, th, saddr, len)) {
th3263net/inet/tcp.ctcp_reset(daddr, saddr, th,
th3276net/inet/tcp.ctcp_options(sk, th);
th3277net/inet/tcp.csk->dummy_th.dest = th->source;
th3287net/inet/tcp.cif (th->urg) {
th3288net/inet/tcp.cif (tcp_urg(sk, th, saddr)) { 
th3297net/inet/tcp.cif (th->fin) tcp_fin(sk, th, saddr, dev);
th3302net/inet/tcp.cif (th->urg) {
th3303net/inet/tcp.cif (tcp_urg(sk, th, saddr)) {
th3316net/inet/tcp.cif (!th->fin) {
th3320net/inet/tcp.ctcp_fin(sk, th, saddr, dev);
th98net/inet/udp.cstruct udphdr *th;
th104net/inet/udp.cth = (struct udphdr *)header;  
th107net/inet/udp.csport=%d,dport=%d", err, header, daddr, saddr, protocol, (int)th->source,(int)th->dest));
th109net/inet/udp.csk = get_sock(&udp_prot, th->source, daddr, th->dest, saddr);