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);
th83drivers/net/slip.cstruct tcphdr *th;
th89drivers/net/slip.cth = (struct tcphdr *) (ptr + ip->ihl * 4);
th92drivers/net/slip.cntohl(th->seq), ntohl(th->ack_seq), ntohs(ip->tot_len));
th52net/inet/skbuff.hstruct tcphdr  *th;
th124net/inet/tcp.cstatic void __print_th(struct tcphdr *th)
th130net/inet/tcp.cntohs(th->source), ntohs(th->dest),
th131net/inet/tcp.cntohl(th->seq), ntohl(th->ack_seq));
th133net/inet/tcp.cth->fin, th->syn, th->rst, th->psh, th->ack,
th134net/inet/tcp.cth->urg, th->res1, th->res2);
th136net/inet/tcp.cntohs(th->window), ntohs(th->check), ntohs(th->urg_ptr));
th137net/inet/tcp.cprintk("    doff = %d\n", th->doff);
th138net/inet/tcp.cptr =(unsigned char *)(th + 1);
th142net/inet/tcp.cstatic inline void print_th(struct tcphdr *th)
th145net/inet/tcp.c__print_th(th);
th238net/inet/tcp.cstruct tcphdr *th;
th247net/inet/tcp.cth =(struct tcphdr *)header;
th248net/inet/tcp.csk = get_sock(&tcp_prot, th->source/*dest*/, daddr, th->dest/*source*/, saddr);
th249net/inet/tcp.cprint_th(th);
th332net/inet/tcp.cif (before(counted, skb->h.th->seq))   /* Found a hole so stops here */
th334net/inet/tcp.csum = skb->len -(counted - skb->h.th->seq);  /* Length - header but start from where we are up to (avoid overlaps) */
th335net/inet/tcp.cif (skb->h.th->syn)
th339net/inet/tcp.cif (skb->h.th->syn) amount--;
th342net/inet/tcp.cif (amount && skb->h.th->psh) break;
th511net/inet/tcp.ctcp_check(struct tcphdr *th, int len,
th517net/inet/tcp.cprint_th(th);
th532net/inet/tcp.c: "=b"(sum) , "=S"(th)
th533net/inet/tcp.c: "0"(sum), "c"(len/4) ,"1"(th)
th551net/inet/tcp.c: "=b"(sum), "=S"(th)
th552net/inet/tcp.c: "0"(sum) ,"1"(th)
th563net/inet/tcp.c: "0"(sum) ,"S"(th)
th572net/inet/tcp.cvoid tcp_send_check(struct tcphdr *th, unsigned long saddr, 
th575net/inet/tcp.cth->check = 0;
th576net/inet/tcp.cth->check = tcp_check(th, len, saddr, daddr);
th583net/inet/tcp.cstruct tcphdr * th = skb->h.th;
th586net/inet/tcp.csize = skb->len - ((unsigned char *) th - skb->data);
th591net/inet/tcp.cskb, skb->data, th, skb->len);
th599net/inet/tcp.cif(!th->syn && !th->fin) {
th607net/inet/tcp.ctcp_send_check(th, sk->saddr, sk->daddr, size, sk);
th609net/inet/tcp.cskb->h.seq = ntohl(th->seq) + size - 4*th->doff;
th686net/inet/tcp.cstruct tcphdr *th, unsigned long daddr)
th729net/inet/tcp.cmemcpy(t1, th, sizeof(*t1)); /* this should probably be removed */
th732net/inet/tcp.ct1->dest = th->source;
th733net/inet/tcp.ct1->source = th->dest;
th768net/inet/tcp.ctcp_build_header(struct tcphdr *th, struct sock *sk, int push)
th772net/inet/tcp.cmemcpy(th,(void *) &(sk->dummy_th), sizeof(*th));
th773net/inet/tcp.cth->seq = htonl(sk->write_seq);
th774net/inet/tcp.cth->psh =(push == 0) ? 1 : 0;
th775net/inet/tcp.cth->doff = sizeof(*th)/4;
th776net/inet/tcp.cth->ack = 1;
th777net/inet/tcp.cth->fin = 0;
th781net/inet/tcp.cth->ack_seq = htonl(sk->acked_seq);
th783net/inet/tcp.cth->window = htons(sk->window);
th785net/inet/tcp.creturn(sizeof(*th));
th897net/inet/tcp.chdrlen = ((unsigned long)skb->h.th - (unsigned long)skb->data)
th1012net/inet/tcp.cskb->h.th =(struct tcphdr *) buff;
th1337net/inet/tcp.cif (before(1+*seq, skb->h.th->seq))
th1339net/inet/tcp.coffset = 1 + *seq - skb->h.th->seq;
th1340net/inet/tcp.cif (skb->h.th->syn)
th1408net/inet/tcp.cmemcpy_tofs(to,((unsigned char *)skb->h.th) +
th1409net/inet/tcp.cskb->h.th->doff*4 + offset, used);
th1438net/inet/tcp.cstruct tcphdr *t1, *th;
th1460net/inet/tcp.cth =(struct tcphdr *)&sk->dummy_th;
th1493net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th1566net/inet/tcp.ctcp_reset(unsigned long saddr, unsigned long daddr, struct tcphdr *th,
th1600net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th1603net/inet/tcp.ct1->dest = th->source;
th1604net/inet/tcp.ct1->source = th->dest;
th1608net/inet/tcp.cif(th->ack)
th1611net/inet/tcp.ct1->seq = th->ack_seq;
th1617net/inet/tcp.cif(!th->syn)
th1618net/inet/tcp.ct1->ack_seq=htonl(th->seq);
th1620net/inet/tcp.ct1->ack_seq=htonl(th->seq+1);
th1643net/inet/tcp.ctcp_options(struct sock *sk, struct tcphdr *th)
th1646net/inet/tcp.cint length=(th->doff*4)-sizeof(struct tcphdr);
th1649net/inet/tcp.cptr = (unsigned char *)(th + 1);
th1669net/inet/tcp.cif(opsize==4 && th->syn)
th1681net/inet/tcp.cif (th->syn) {
th1714net/inet/tcp.cstruct tcphdr *th;
th1721net/inet/tcp.cth = skb->h.th;
th1728net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl);
th1786net/inet/tcp.cnewsk->acked_seq = skb->h.th->seq+1;
th1787net/inet/tcp.cnewsk->fin_seq = skb->h.th->seq;
th1788net/inet/tcp.cnewsk->copied_seq = skb->h.th->seq;
th1799net/inet/tcp.cnewsk->dummy_th.source = skb->h.th->dest;
th1800net/inet/tcp.cnewsk->dummy_th.dest = skb->h.th->source;
th1816net/inet/tcp.cnewsk->acked_seq = skb->h.th->seq + 1;
th1817net/inet/tcp.cnewsk->copied_seq = skb->h.th->seq;
th1841net/inet/tcp.ctcp_options(newsk,skb->h.th);
th1878net/inet/tcp.cmemcpy(t1, skb->h.th, sizeof(*t1));
th1882net/inet/tcp.ct1->dest = skb->h.th->source;
th1895net/inet/tcp.ct1->ack_seq = ntohl(skb->h.th->seq+1);
th1925net/inet/tcp.cstruct tcphdr *t1, *th;
th1950net/inet/tcp.cif(skb->len > 0 && after(skb->h.th->seq + skb->len + 1 , sk->copied_seq))
th1995net/inet/tcp.cth =(struct tcphdr *)&sk->dummy_th;
th2035net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th2159net/inet/tcp.ctcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len)
th2173net/inet/tcp.cack = ntohl(th->ack_seq);
th2176net/inet/tcp.cack, ntohs(th->window), sk->rcv_ack_seq, sk->window_seq));
th2178net/inet/tcp.cif (ntohs(th->window) > sk->max_window) {
th2179net/inet/tcp.csk->max_window = ntohs(th->window);
th2198net/inet/tcp.cif (len != th->doff*4) flag |= 1;
th2201net/inet/tcp.cif (after(sk->window_seq, ack+ntohs(th->window))) {
th2219net/inet/tcp.csk->window_seq = ack + ntohs(th->window);
th2262net/inet/tcp.csk->window_seq = ack + ntohs(th->window);
th2480net/inet/tcp.cth, sk->daddr);
th2538net/inet/tcp.cstruct tcphdr *th;
th2541net/inet/tcp.cth = skb->h.th;
th2542net/inet/tcp.cprint_th(th);
th2543net/inet/tcp.cskb->len = len -(th->doff*4);
th2548net/inet/tcp.cif (skb->len == 0 && !th->fin && !th->urg && !th->psh) {
th2550net/inet/tcp.cif (!th->ack) tcp_send_ack(sk->sent_seq, sk->acked_seq,sk, th, saddr);
th2556net/inet/tcp.csk->acked_seq = th->seq + skb->len + th->syn + th->fin;
th2557net/inet/tcp.ctcp_reset(sk->saddr, sk->daddr, skb->h.th,
th2594net/inet/tcp.cprintk("skb1->h.th->seq = %ld: ", skb1->h.th->seq);
th2595net/inet/tcp.cprintk("skb->h.th->seq = %ld\n",skb->h.th->seq);
th2600net/inet/tcp.cif (after(th->seq+1, skb1->h.th->seq)) {
th2618net/inet/tcp.cif (th->seq==skb1->h.th->seq && skb->len>= skb1->len)
th2627net/inet/tcp.cif (after(th->seq+1, skb1->h.th->seq))
th2642net/inet/tcp.cth->ack_seq = th->seq + skb->len;
th2643net/inet/tcp.cif (th->syn) th->ack_seq++;
th2644net/inet/tcp.cif (th->fin) th->ack_seq++;
th2652net/inet/tcp.cif ((!dup_dumped && (skb1 == NULL || skb1->acked)) || before(th->seq, sk->acked_seq+1)) {
th2653net/inet/tcp.cif (before(th->seq, sk->acked_seq+1)) {
th2656net/inet/tcp.cif (after(th->ack_seq, sk->acked_seq)) {
th2658net/inet/tcp.c(th->ack_seq - sk->acked_seq);
th2662net/inet/tcp.csk->acked_seq = th->ack_seq;
th2667net/inet/tcp.cif (skb->h.th->fin) {
th2675net/inet/tcp.cif (before(skb2->h.th->seq, sk->acked_seq+1)) {
th2676net/inet/tcp.cif (after(skb2->h.th->ack_seq, sk->acked_seq))
th2679net/inet/tcp.c(skb2->h.th->ack_seq - sk->acked_seq);
th2683net/inet/tcp.csk->acked_seq = skb2->h.th->ack_seq;
th2691net/inet/tcp.cif (skb2->h.th->fin) {
th2709net/inet/tcp.csk->bytes_rcv > sk->max_unacked || th->fin) {
th2755net/inet/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
th2760net/inet/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
th2786net/inet/tcp.cstatic void tcp_check_urg(struct sock * sk, struct tcphdr * th)
th2788net/inet/tcp.cunsigned long ptr = ntohs(th->urg_ptr);
th2792net/inet/tcp.cptr += th->seq;
th2814net/inet/tcp.cstatic inline int tcp_urg(struct sock *sk, struct tcphdr *th,
th2820net/inet/tcp.cif (th->urg)
th2821net/inet/tcp.ctcp_check_urg(sk,th);
th2828net/inet/tcp.cptr = sk->urg_seq - th->seq + th->doff*4;
th2833net/inet/tcp.csk->urg_data = URG_VALID | *(ptr + (unsigned char *) th);
th2842net/inet/tcp.ctcp_fin(struct sock *sk, struct tcphdr *th, 
th2846net/inet/tcp.csk, th, saddr, dev));
th2858net/inet/tcp.csk->fin_seq = th->seq+1;
th2860net/inet/tcp.cif (th->rst) sk->shutdown = SHUTDOWN_MASK;
th2869net/inet/tcp.csk->fin_seq = th->seq+1;
th3061net/inet/tcp.ctcp_sequence(struct sock *sk, struct tcphdr *th, short len,
th3066net/inet/tcp.cnext_seq = len - 4*th->doff;
th3067net/inet/tcp.cif (th->fin)
th3072net/inet/tcp.cnext_seq += th->seq;
th3085net/inet/tcp.cif (!before(th->seq, sk->acked_seq + sk->window + 1))
th3102net/inet/tcp.ctcp_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl);
th3106net/inet/tcp.cif (th->rst)
th3110net/inet/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
th3120net/inet/tcp.cstruct tcphdr *th;
th3141net/inet/tcp.cth = skb->h.th;
th3144net/inet/tcp.csk = get_sock(&tcp_prot, th->dest, saddr, th->source, daddr);
th3158net/inet/tcp.cif (tcp_check(th, len, saddr, daddr )) {
th3170net/inet/tcp.cth->seq = ntohl(th->seq);
th3174net/inet/tcp.cif (!th->rst)
th3175net/inet/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
th3238net/inet/tcp.cif (th->rst) {
th3256net/inet/tcp.cif (!tcp_sequence(sk, th, len, opt, saddr,dev)) {
th3260net/inet/tcp.cif(!th->rst)
th3262net/inet/tcp.csk, th, saddr);
th3269net/inet/tcp.cif (th->rst) {
th3296net/inet/tcp.cth->syn) {
th3300net/inet/tcp.ctcp_reset(daddr, saddr,  th, sk->prot, opt,dev, sk->ip_tos,sk->ip_ttl);
th3309net/inet/tcp.cif (th->ack && !tcp_ack(sk, th, saddr, len)) {
th3315net/inet/tcp.cif (tcp_urg(sk, th, saddr, len)) {
th3328net/inet/tcp.cif (th->fin && tcp_fin(sk, th, saddr, dev)) {
th3345net/inet/tcp.cif (!th->rst) {
th3346net/inet/tcp.cif (!th->ack)
th3347net/inet/tcp.cth->ack_seq = 0;
th3348net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt,dev,sk->ip_tos,sk->ip_ttl);
th3355net/inet/tcp.cif (th->rst) {
th3360net/inet/tcp.cif (th->ack) {
th3361net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt,dev,sk->ip_tos,sk->ip_ttl);
th3367net/inet/tcp.cif (th->syn) {
th3370net/inet/tcp.ctcp_reset(daddr, saddr, th, prot, opt,dev);
th3392net/inet/tcp.cif (th->syn) {
th3401net/inet/tcp.cif (!tcp_sequence(sk, th, len, opt, saddr,dev)) {
th3408net/inet/tcp.cif (th->rst) {
th3425net/inet/tcp.ctcp_reset(daddr, saddr,  th, sk->prot, opt, dev);
th3434net/inet/tcp.cif (!th->ack) {
th3435net/inet/tcp.cif (th->syn) {
th3446net/inet/tcp.cif (!tcp_ack(sk, th, saddr, len)) {
th3447net/inet/tcp.ctcp_reset(daddr, saddr, th,
th3458net/inet/tcp.cif (!th->syn) {
th3465net/inet/tcp.csk->acked_seq = th->seq+1;
th3466net/inet/tcp.csk->fin_seq = th->seq;
th3467net/inet/tcp.ctcp_send_ack(sk->sent_seq, th->seq+1,
th3468net/inet/tcp.csk, th, sk->daddr);
th3471net/inet/tcp.cif (!tcp_ack(sk, th, saddr, len)) {
th3472net/inet/tcp.ctcp_reset(daddr, saddr, th,
th3485net/inet/tcp.ctcp_options(sk, th);
th3486net/inet/tcp.csk->dummy_th.dest = th->source;
th3510net/inet/tcp.cif (th->urg) {
th3511net/inet/tcp.cif (tcp_urg(sk, th, saddr, len)) { 
th3520net/inet/tcp.cif (th->fin) tcp_fin(sk, th, saddr, dev);
th3525net/inet/tcp.cif (th->urg) {
th3526net/inet/tcp.cif (tcp_urg(sk, th, saddr, len)) {
th3539net/inet/tcp.cif (!th->fin) {
th3543net/inet/tcp.ctcp_fin(sk, th, saddr, dev);
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);