Home
last modified time | relevance | path

Searched refs:tcplen (Results 1 – 4 of 4) sorted by relevance

/linux-2.4.37.9/net/ipv4/netfilter/
Dip_conntrack_irc.c115 u_int32_t tcplen = len - iph->ihl * 4; in help() local
116 u_int32_t datalen = tcplen - tcph->doff * 4; in help()
140 if (tcplen < sizeof(struct tcphdr) || tcplen < tcph->doff * 4) { in help()
141 DEBUGP("tcplen = %u\n", (unsigned) tcplen); in help()
147 if (tcp_v4_check(tcph, tcplen, iph->saddr, iph->daddr, in help()
148 csum_partial((char *) tcph, tcplen, 0))) { in help()
150 tcph, tcplen, NIPQUAD(iph->saddr), in help()
Dipt_TCPMSS.c48 u_int16_t tcplen, newtotlen, oldval, newmss; in ipt_tcpmss_target() local
63 tcplen = (*pskb)->len - iph->ihl*4; in ipt_tcpmss_target()
72 if (tcplen != tcph->doff*4) { in ipt_tcpmss_target()
155 memmove(opt + TCPOLEN_MSS, opt, tcplen - sizeof(struct tcphdr)); in ipt_tcpmss_target()
157 tcph->check = cheat_check(htons(tcplen) ^ 0xFFFF, in ipt_tcpmss_target()
158 htons(tcplen + TCPOLEN_MSS), tcph->check); in ipt_tcpmss_target()
159 tcplen += TCPOLEN_MSS; in ipt_tcpmss_target()
Dip_conntrack_ftp.c239 unsigned int tcplen = len - iph->ihl * 4; in help() local
240 unsigned int datalen = tcplen - tcph->doff * 4; in help()
261 if (tcplen < sizeof(struct tcphdr) || tcplen < tcph->doff*4) { in help()
262 DEBUGP("ftp: tcplen = %u\n", (unsigned)tcplen); in help()
268 if (tcp_v4_check(tcph, tcplen, iph->saddr, iph->daddr, in help()
269 csum_partial((char *)tcph, tcplen, 0))) { in help()
271 tcph, tcplen, NIPQUAD(iph->saddr), in help()
Dip_nat_helper.c136 u_int32_t tcplen, newlen, newtcplen; in ip_nat_mangle_tcp_packet() local
138 tcplen = (*skb)->len - iph->ihl*4; in ip_nat_mangle_tcp_packet()
139 newtcplen = tcplen - match_len + rep_len; in ip_nat_mangle_tcp_packet()