taglinefilesource code
th36net/inet/skbuff.hstruct tcphdr  *th;
th226net/inet/slhc.cstruct tcphdr *th, *oth;
th244net/inet/slhc.cth = (struct tcphdr *)(((unsigned char *)ip) + ip->ihl*4);
th245net/inet/slhc.chlen = ip->ihl*4 + th->doff*4;
th250net/inet/slhc.cif(th->syn || th->fin || th->rst ||
th251net/inet/slhc.c! (th->ack)){
th252net/inet/slhc.cDPRINT(("comp: noncomp 2 %x %x %d %d %d %d\n", ip, th, 
th253net/inet/slhc.cth->syn, th->fin, th->rst, th->ack));
th275net/inet/slhc.c&& th->source == cs->cs_tcp.source
th276net/inet/slhc.c&& th->dest == cs->cs_tcp.dest)
th335net/inet/slhc.c|| th->doff != cs->cs_tcp.doff
th337net/inet/slhc.c|| (th->doff > 5 && memcmp(th+1,cs->cs_tcpopt,((th->doff)-5)*4 != 0))){
th348net/inet/slhc.cif(th->urg){
th349net/inet/slhc.cdeltaS = ntohs(th->urg_ptr);
th352net/inet/slhc.c} else if(th->urg_ptr != oth->urg_ptr){
th360net/inet/slhc.cif((deltaS = ntohs(th->window) - ntohs(oth->window)) != 0){
th364net/inet/slhc.cif((deltaA = ntohl(th->ack_seq) - ntohl(oth->ack_seq)) != 0L){
th370net/inet/slhc.cif((deltaS = ntohl(th->seq) - ntohl(oth->seq)) != 0L){
th419net/inet/slhc.cif(th->psh)
th424net/inet/slhc.cdeltaA = ntohs(th->check);
th426net/inet/slhc.cmemcpy(&cs->cs_tcp,th,20);
th460net/inet/slhc.cmemcpy(&cs->cs_tcp,th,20);
th463net/inet/slhc.cif (th->doff > 5)
th464net/inet/slhc.cmemcpy(cs->cs_tcpopt, th+1, ((th->doff) - 5) * 4);
th66net/inet/slip.cstruct tcphdr *th;
th72net/inet/slip.cth = (struct tcphdr *) (ptr + ip->ihl * 4);
th75net/inet/slip.cntohl(th->seq), ntohl(th->ack_seq), ntohs(ip->tot_len));
th57net/inet/tcp.cprint_th(struct tcphdr *th)
th64net/inet/tcp.cptr =(unsigned char *)(th + 1);
th66net/inet/tcp.cntohs(th->source), ntohs(th->dest),
th67net/inet/tcp.cntohl(th->seq), ntohl(th->ack_seq));
th69net/inet/tcp.cth->fin, th->syn, th->rst, th->psh, th->ack,
th70net/inet/tcp.cth->urg, th->res1, th->res2);
th72net/inet/tcp.cntohs(th->window), ntohs(th->check), ntohs(th->urg_ptr));
th73net/inet/tcp.cprintk("    doff = %d\n", th->doff);
th151net/inet/tcp.cstruct tcphdr *th;
th157net/inet/tcp.cth =(struct tcphdr *)header;
th158net/inet/tcp.csk = get_sock(&tcp_prot, th->dest, saddr, th->source, daddr);
th159net/inet/tcp.cprint_th(th);
th215net/inet/tcp.cif (before(counted, skb->h.th->seq)) break;
th216net/inet/tcp.csum = skb->len -(counted - skb->h.th->seq);
th217net/inet/tcp.cif (skb->h.th->syn) sum++;
th218net/inet/tcp.cif (skb->h.th->urg) {
th219net/inet/tcp.csum -= ntohs(skb->h.th->urg_ptr);
th223net/inet/tcp.cif (skb->h.th->syn) amount--;
th226net/inet/tcp.cif (amount && skb->h.th->psh) break;
th347net/inet/tcp.cif (sk->copied_seq+1 == skb->h.th->seq &&
th348net/inet/tcp.cskb->h.th->urg) answ = 1;
th375net/inet/tcp.ctcp_check(struct tcphdr *th, int len,
th381net/inet/tcp.cprint_th(th);
th396net/inet/tcp.c: "=b"(sum) , "=S"(th)
th397net/inet/tcp.c: "0"(sum), "c"(len/4) ,"1"(th)
th415net/inet/tcp.c: "=b"(sum), "=S"(th)
th416net/inet/tcp.c: "0"(sum) ,"1"(th)
th427net/inet/tcp.c: "0"(sum) ,"S"(th)
th437net/inet/tcp.ctcp_send_check(struct tcphdr *th, unsigned long saddr, 
th440net/inet/tcp.cth->check = 0;
th442net/inet/tcp.cth->check = tcp_check(th, len, saddr, daddr);
th457net/inet/tcp.ctcp_send_check(skb->h.th, sk->saddr, sk->daddr,
th458net/inet/tcp.cskb->len-(unsigned long)skb->h.th +
th487net/inet/tcp.cstruct tcphdr *th, unsigned long daddr)
th528net/inet/tcp.cmemcpy(t1, th, sizeof(*t1)); /* this should probably be removed */
th531net/inet/tcp.ct1->dest = th->source;
th532net/inet/tcp.ct1->source = th->dest;
th563net/inet/tcp.ctcp_build_header(struct tcphdr *th, struct sock *sk, int push)
th567net/inet/tcp.cmemcpy(th,(void *) &(sk->dummy_th), sizeof(*th));
th568net/inet/tcp.cth->seq = ntohl(sk->send_seq);
th569net/inet/tcp.cth->psh =(push == 0) ? 1 : 0;
th570net/inet/tcp.cth->doff = sizeof(*th)/4;
th571net/inet/tcp.cth->ack = 1;
th572net/inet/tcp.cth->fin = 0;
th576net/inet/tcp.cth->ack_seq = ntohl(sk->acked_seq);
th578net/inet/tcp.cth->window = ntohs(sk->window);
th580net/inet/tcp.creturn(sizeof(*th));
th702net/inet/tcp.cif (skb->len -(unsigned long)skb->h.th +
th796net/inet/tcp.cskb->h.th =(struct tcphdr *) buff;
th1067net/inet/tcp.cif (skb->h.th->urg && !skb->urg_used) {
th1068net/inet/tcp.cif (skb->h.th->urg_ptr == 0) {
th1069net/inet/tcp.cskb->h.th->urg_ptr = ntohs(skb->len);
th1071net/inet/tcp.camt = min(ntohs(skb->h.th->urg_ptr),len);
th1073net/inet/tcp.cmemcpy_tofs(to,(unsigned char *)(skb->h.th) +
th1074net/inet/tcp.cskb->h.th->doff*4, amt);
th1125net/inet/tcp.cbefore(sk->copied_seq+1, skb->h.th->seq) || skb->used) {
th1195net/inet/tcp.cbefore(sk->copied_seq+1, sk->rqueue->next->h.th->seq)) {
th1221net/inet/tcp.coffset = sk->copied_seq+1 - skb->h.th->seq;
th1223net/inet/tcp.cif (skb->h.th->syn) offset--;
th1229net/inet/tcp.cif (skb->h.th->urg) {
th1231net/inet/tcp.csk->copied_seq += ntohs(skb->h.th->urg_ptr);
th1232net/inet/tcp.coffset += ntohs(skb->h.th->urg_ptr);
th1247net/inet/tcp.cmemcpy_tofs(to,((unsigned char *)skb->h.th) +
th1248net/inet/tcp.cskb->h.th->doff*4 + offset, used);
th1260net/inet/tcp.c(!skb->h.th->urg || skb->urg_used) &&
th1267net/inet/tcp.cif (skb->h.th->psh || skb->h.th->urg) {
th1291net/inet/tcp.cstruct tcphdr *t1, *th;
th1312net/inet/tcp.cth =(struct tcphdr *)&sk->dummy_th;
th1340net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th1397net/inet/tcp.ctcp_reset(unsigned long saddr, unsigned long daddr, struct tcphdr *th,
th1430net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th1433net/inet/tcp.ct1->dest = th->source;
th1434net/inet/tcp.ct1->source = th->dest;
th1435net/inet/tcp.ct1->seq = th->ack_seq; /* add one so it will be in the right range */
th1436net/inet/tcp.ct1->ack_seq = htonl(ntohl(th->seq)+1);
th1438net/inet/tcp.ct1->ack_seq = htonl(ntohl(th->seq)+1); /* send correct ack -FB */
th1467net/inet/tcp.cstruct tcphdr *th;
th1474net/inet/tcp.cth = skb->h.th;
th1481net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt, dev);
th1534net/inet/tcp.cnewsk->acked_seq = skb->h.th->seq+1;
th1535net/inet/tcp.cnewsk->fin_seq = skb->h.th->seq;
th1536net/inet/tcp.cnewsk->copied_seq = skb->h.th->seq;
th1546net/inet/tcp.cnewsk->dummy_th.source = skb->h.th->dest;
th1547net/inet/tcp.cnewsk->dummy_th.dest = skb->h.th->source;
th1563net/inet/tcp.cnewsk->acked_seq = skb->h.th->seq + 1;
th1564net/inet/tcp.cnewsk->copied_seq = skb->h.th->seq;
th1566net/inet/tcp.cif (skb->h.th->doff == 5) {
th1569net/inet/tcp.cptr =(unsigned char *)(skb->h.th + 1);
th1613net/inet/tcp.cmemcpy(t1, skb->h.th, sizeof(*t1));
th1617net/inet/tcp.ct1->dest = skb->h.th->source;
th1629net/inet/tcp.ct1->ack_seq = ntohl(skb->h.th->seq+1);
th1668net/inet/tcp.cstruct tcphdr *t1, *th;
th1694net/inet/tcp.cafter(skb->h.th->seq + skb->len + 1, sk->copied_seq))
th1734net/inet/tcp.cth =(struct tcphdr *)&sk->dummy_th;
th1764net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th1877net/inet/tcp.ctcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len)
th1882net/inet/tcp.cack = ntohl(th->ack_seq);
th1885net/inet/tcp.cack, ntohs(th->window), sk->rcv_ack_seq, sk->window_seq));
th1898net/inet/tcp.cif (len != th->doff*4) flag |= 1;
th1901net/inet/tcp.cif (after(sk->window_seq, ack+ntohs(th->window))) {
th1919net/inet/tcp.csk->window_seq = ack + ntohs(th->window);
th1983net/inet/tcp.csk->window_seq = ack + ntohs(th->window);
th2130net/inet/tcp.cth, sk->daddr);
th2159net/inet/tcp.cstruct tcphdr *th;
th2161net/inet/tcp.cth = skb->h.th;
th2162net/inet/tcp.cprint_th(th);
th2163net/inet/tcp.cskb->len = len -(th->doff*4);
th2168net/inet/tcp.cif (skb->len == 0 && !th->fin && !th->urg && !th->psh) {
th2170net/inet/tcp.cif (!th->ack) tcp_send_ack(sk->send_seq, sk->acked_seq,sk, th, saddr);
th2176net/inet/tcp.csk->acked_seq = th->seq + skb->len + th->syn + th->fin;
th2177net/inet/tcp.ctcp_reset(sk->saddr, sk->daddr, skb->h.th,
th2209net/inet/tcp.cDPRINTF((DBG_TCP, "skb1->h.th->seq = %d\n", skb1->h.th->seq));
th2210net/inet/tcp.cif (after(th->seq+1, skb1->h.th->seq)) {
th2231net/inet/tcp.cth->ack_seq = th->seq + skb->len;
th2232net/inet/tcp.cif (th->syn) th->ack_seq++;
th2233net/inet/tcp.cif (th->fin) th->ack_seq++;
th2241net/inet/tcp.cif (skb1 == NULL || skb1->acked || before(th->seq, sk->acked_seq+1)) {
th2242net/inet/tcp.cif (before(th->seq, sk->acked_seq+1)) {
th2243net/inet/tcp.cif (after(th->ack_seq, sk->acked_seq))
th2244net/inet/tcp.csk->acked_seq = th->ack_seq;
th2248net/inet/tcp.cif (skb->h.th->fin) {
th2256net/inet/tcp.cif (before(skb2->h.th->seq, sk->acked_seq+1)) {
th2257net/inet/tcp.cif (after(skb2->h.th->ack_seq, sk->acked_seq))
th2258net/inet/tcp.csk->acked_seq = skb2->h.th->ack_seq;
th2265net/inet/tcp.cif (skb2->h.th->fin) {
th2283net/inet/tcp.csk->bytes_rcv > sk->max_unacked || th->fin) {
th2322net/inet/tcp.ctcp_send_ack(sk->send_seq, sk->acked_seq, sk, th, saddr);
th2327net/inet/tcp.ctcp_send_ack(sk->send_seq, sk->acked_seq, sk, th, saddr);
th2352net/inet/tcp.ctcp_urg(struct sock *sk, struct tcphdr *th, unsigned long saddr)
th2360net/inet/tcp.cth->urg = 0;
th2361net/inet/tcp.cth->psh = 1;
th2382net/inet/tcp.ctcp_fin(struct sock *sk, struct tcphdr *th, 
th2386net/inet/tcp.csk, th, saddr, dev));
th2397net/inet/tcp.csk->fin_seq = th->seq+1;
th2399net/inet/tcp.cif (th->rst) sk->shutdown = SHUTDOWN_MASK;
th2408net/inet/tcp.csk->fin_seq = th->seq+1;
th2574net/inet/tcp.ctcp_sequence(struct sock *sk, struct tcphdr *th, short len,
th2584net/inet/tcp.csk, th, len, opt, saddr));
th2586net/inet/tcp.cif (between(th->seq, sk->acked_seq, sk->acked_seq + sk->window)||
th2587net/inet/tcp.cbetween(th->seq + len-(th->doff*4), sk->acked_seq + 1,
th2589net/inet/tcp.c(before(th->seq, sk->acked_seq) &&
th2590net/inet/tcp.cafter(th->seq + len -(th->doff*4), sk->acked_seq + sk->window))) {
th2599net/inet/tcp.cif (after(th->seq, sk->acked_seq + sk->window)) {
th2600net/inet/tcp.ctcp_send_ack(sk->send_seq, sk->acked_seq, sk, th, saddr);
th2605net/inet/tcp.cif (th->ack && len == (th->doff * 4) &&
th2606net/inet/tcp.cafter(th->seq, sk->acked_seq - 32767) &&
th2607net/inet/tcp.c!th->fin && !th->syn) return(1);
th2609net/inet/tcp.cif (!th->rst) {
th2611net/inet/tcp.ctcp_send_ack(sk->send_seq, sk->acked_seq, sk, th, saddr);
th2619net/inet/tcp.ctcp_options(struct sock *sk, struct tcphdr *th)
th2623net/inet/tcp.cptr = (unsigned char *)(th + 1);
th2637net/inet/tcp.cstruct tcphdr *th;
th2658net/inet/tcp.cth = skb->h.th;
th2661net/inet/tcp.csk = get_sock(&tcp_prot, th->dest, saddr, th->source, daddr);
th2670net/inet/tcp.cif (th->check && tcp_check(th, len, saddr, daddr )) {
th2684net/inet/tcp.cif (!th->rst) tcp_reset(daddr, saddr, th, &tcp_prot, opt,dev);
th2699net/inet/tcp.cth->seq = ntohl(th->seq);
th2750net/inet/tcp.cif (th->rst) {
th2767net/inet/tcp.cif (!tcp_sequence(sk, th, len, opt, saddr)) {
th2770net/inet/tcp.csk, th, saddr);
th2776net/inet/tcp.cif (th->rst) {
th2802net/inet/tcp.copt->compartment != 0 || th->syn)) {
th2806net/inet/tcp.ctcp_reset(daddr, saddr,  th, sk->prot, opt,dev);
th2815net/inet/tcp.cif (th->ack) {
th2816net/inet/tcp.cif (!tcp_ack(sk, th, saddr, len)) {
th2822net/inet/tcp.cif (th->urg) {
th2823net/inet/tcp.cif (tcp_urg(sk, th, saddr)) {
th2830net/inet/tcp.cif (th->fin && tcp_fin(sk, th, saddr, dev)) {
th2853net/inet/tcp.cif (!th->rst) {
th2854net/inet/tcp.cif (!th->ack)
th2855net/inet/tcp.cth->ack_seq = 0;
th2856net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt,dev);
th2863net/inet/tcp.cif (th->rst) {
th2868net/inet/tcp.cif (th->ack) {
th2869net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt,dev);
th2875net/inet/tcp.cif (th->syn) {
th2878net/inet/tcp.ctcp_reset(daddr, saddr, th, prot, opt,dev);
th2900net/inet/tcp.cif (!tcp_sequence(sk, th, len, opt, saddr)) {
th2907net/inet/tcp.cif (th->rst) {
th2923net/inet/tcp.ctcp_reset(daddr, saddr,  th, sk->prot, opt, dev);
th2932net/inet/tcp.cif (!th->ack) {
th2933net/inet/tcp.cif (th->syn) {
th2944net/inet/tcp.cif (!tcp_ack(sk, th, saddr, len)) {
th2945net/inet/tcp.ctcp_reset(daddr, saddr, th,
th2956net/inet/tcp.cif (!th->syn) {
th2963net/inet/tcp.csk->acked_seq = th->seq+1;
th2964net/inet/tcp.csk->fin_seq = th->seq;
th2965net/inet/tcp.ctcp_send_ack(sk->send_seq, th->seq+1,
th2966net/inet/tcp.csk, th, sk->daddr);
th2969net/inet/tcp.cif (!tcp_ack(sk, th, saddr, len)) {
th2970net/inet/tcp.ctcp_reset(daddr, saddr, th,
th2983net/inet/tcp.ctcp_options(sk, th);
th2984net/inet/tcp.csk->dummy_th.dest = th->source;
th2994net/inet/tcp.cif (th->urg) {
th2995net/inet/tcp.cif (tcp_urg(sk, th, saddr)) { 
th3004net/inet/tcp.cif (th->fin) tcp_fin(sk, th, saddr, dev);
th3009net/inet/tcp.cif (th->urg) {
th3010net/inet/tcp.cif (tcp_urg(sk, th, saddr)) {
th3023net/inet/tcp.cif (!th->fin) {
th3027net/inet/tcp.ctcp_fin(sk, th, saddr, dev);
th95net/inet/udp.cstruct udphdr *th;
th102net/inet/udp.cth = (struct udphdr *)header;
th103net/inet/udp.csk = get_sock(&udp_prot, th->dest, saddr, th->source, daddr);