Searched refs:tcph (Results 1 - 25 of 44) sorted by relevance

12

/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv4/netfilter/
H A Dipt_TCPMSS.c42 struct tcphdr *tcph; local
61 tcph = (void *)iph + iph->ihl*4;
68 if (tcplen != tcph->doff*4) {
95 opt = (u_int8_t *)tcph;
96 for (i = sizeof(struct tcphdr); i < tcph->doff*4; i += optlen(opt, i)){
98 ((tcph->doff*4 - i) >= TCPOLEN_MSS) &&
111 tcph->check = cheat_check(htons(oldmss)^0xFFFF,
113 tcph->check);
119 ntohs(tcph->source),
121 ntohs(tcph
[all...]
H A Dip_conntrack_proto_tcp.c142 static unsigned int get_conntrack_index(const struct tcphdr *tcph) argument
144 if (tcph->rst) return 3;
145 else if (tcph->syn) return 0;
146 else if (tcph->fin) return 1;
147 else if (tcph->ack) return 2;
157 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph + iph->ihl); local
161 if (len < (iph->ihl + tcph->doff) * 4) {
171 [get_conntrack_index(tcph)][oldtcpstate];
176 CTINFO2DIR(ctinfo), get_conntrack_index(tcph),
187 && tcph
219 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph + iph->ihl); local
240 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph + iph->ihl); local
[all...]
H A Dipt_LOG.c69 struct tcphdr *tcph = protoh; local
78 if (datalen < sizeof (*tcph)) {
85 ntohs(tcph->source), ntohs(tcph->dest));
89 ntohl(tcph->seq), ntohl(tcph->ack_seq));
91 printk("WINDOW=%u ", ntohs(tcph->window));
93 printk("RES=0x%02x ", (u_int8_t)(ntohl(tcp_flag_word(tcph) & TCP_RESERVED_BITS) >> 22));
95 if (tcph->cwr)
97 if (tcph
[all...]
H A Dip_conntrack_h323.c38 struct tcphdr *tcph = (void *)iph + iph->ihl * 4; local
39 unsigned char *data = (unsigned char *) tcph + tcph->doff * 4;
42 u_int32_t datalen = tcplen - tcph->doff * 4;
52 NIPQUAD(iph->saddr), ntohs(tcph->source),
53 NIPQUAD(iph->daddr), ntohs(tcph->dest));
67 if (tcplen < sizeof(struct tcphdr) || tcplen < tcph->doff * 4 + 5) {
73 if (tcp_v4_check(tcph, tcplen, iph->saddr, iph->daddr,
74 csum_partial((char *)tcph, tcplen, 0))) {
76 tcph, tcple
153 struct tcphdr *tcph = (void *)iph + iph->ihl * 4; local
[all...]
H A Dip_fw_compat_redir.c87 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph local
90 tcph->check = cheat_check(~redir->core.orig_dstip,
94 tcph->check));
97 tcph->dest = redir->core.new_dport;
127 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph local
130 tcph->check = cheat_check(~redir->core.new_dstip,
134 tcph->check));
138 tcph->source = redir->core.orig_dport;
192 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph local
198 if (skb->len < iph->ihl*4 + sizeof(*tcph))
245 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph local
273 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph local
[all...]
H A Dip_nat_helper.c81 struct tcphdr *tcph = (void *)iph + iph->ihl*4; local
82 void *data = (void *)tcph + tcph->doff*4;
94 || before(this_way->correction_pos, ntohl(tcph->seq))) {
95 this_way->correction_pos = ntohl(tcph->seq);
122 struct tcphdr *tcph; local
163 tcph = (void *)iph + iph->ihl*4;
164 data = (void *)tcph + tcph->doff*4;
189 (*skb)->csum = csum_partial((char *)tcph
301 sack_adjust(struct tcphdr *tcph, unsigned char *ptr, struct ip_nat_seq *natseq) argument
353 struct tcphdr *tcph; local
403 struct tcphdr *tcph; local
[all...]
H A Dipt_ecn.c32 struct tcphdr *tcph = (void *)iph + iph->ihl*4; local
36 if (tcph->ece == 1)
39 if (tcph->ece == 0)
46 if (tcph->cwr == 1)
49 if (tcph->cwr == 0)
H A Dip_nat_h323.c145 struct tcphdr *tcph = (void *)iph + iph->ihl*4; local
148 u_int32_t datalen = tcplen - tcph->doff*4;
158 between(info->seq[IP_CT_DIR_ORIGINAL], ntohl(tcph->seq), ntohl(tcph->seq) + datalen)
160 between(info->seq[IP_CT_DIR_REPLY], ntohl(tcph->seq), ntohl(tcph->seq) + datalen)
162 if (!(between(info->seq[IP_CT_DIR_ORIGINAL], ntohl(tcph->seq), ntohl(tcph->seq) + datalen)
163 || between(info->seq[IP_CT_DIR_REPLY], ntohl(tcph->seq), ntohl(tcph
236 struct tcphdr *tcph = (void *)iph + iph->ihl*4; local
[all...]
H A Dipt_ECN.c62 struct tcphdr *tcph = (void *) iph + iph->ihl * 4; local
63 u_int16_t *tcpflags = (u_int16_t *)tcph + 6;
80 && tcph->ece != einfo->proto.tcp.ece) {
81 tcph->ece = einfo->proto.tcp.ece;
85 && tcph->cwr != einfo->proto.tcp.cwr) {
86 tcph->cwr = einfo->proto.tcp.cwr;
92 tcph->check = csum_fold(csum_partial((char *)diffs,
94 tcph->check^0xFFFF));
H A Dip_conntrack_irc.c105 struct tcphdr *tcph = (void *) iph + iph->ihl * 4; local
106 const char *data = (const char *) tcph + tcph->doff * 4;
110 u_int32_t datalen = tcplen - tcph->doff * 4;
134 if (tcplen < sizeof(struct tcphdr) || tcplen < tcph->doff * 4) {
140 if (tcp_v4_check(tcph, tcplen, iph->saddr, iph->daddr,
141 csum_partial((char *) tcph, tcplen, 0))) {
143 tcph, tcplen, NIPQUAD(iph->saddr),
158 NIPQUAD(iph->saddr), ntohs(tcph->source),
159 NIPQUAD(iph->daddr), ntohs(tcph
[all...]
H A Dipt_REJECT.c37 struct tcphdr *otcph, *tcph; local
78 tcph = (struct tcphdr *)((u_int32_t*)nskb->nh.iph + nskb->nh.iph->ihl);
84 tmp_port = tcph->source;
85 tcph->source = tcph->dest;
86 tcph->dest = tmp_port;
89 tcph->doff = sizeof(struct tcphdr)/4;
93 if (tcph->ack) {
95 tcph->seq = otcph->ack_seq;
96 tcph
[all...]
H A Dipt_unclean.c264 const struct tcphdr *tcph,
270 u_int8_t *opt = (u_int8_t *)tcph;
271 u_int8_t *endhdr = (u_int8_t *)tcph + tcph->doff * 4;
292 if (!tcph->source || !tcph->dest) {
294 htons(tcph->source), htons(tcph->dest));
301 if (datalen < tcph->doff * 4) {
313 csum_partial((char *)tcph, datale
263 check_tcp(const struct iphdr *iph, const struct tcphdr *tcph, u_int16_t datalen, unsigned int offset, int more_frags, int embedded) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv4/netfilter.noQoS/
H A Dipt_TCPMSS.c42 struct tcphdr *tcph; local
61 tcph = (void *)iph + iph->ihl*4;
68 if (tcplen != tcph->doff*4) {
95 opt = (u_int8_t *)tcph;
96 for (i = sizeof(struct tcphdr); i < tcph->doff*4; i += optlen(opt, i)){
98 ((tcph->doff*4 - i) >= TCPOLEN_MSS) &&
111 tcph->check = cheat_check(htons(oldmss)^0xFFFF,
113 tcph->check);
119 ntohs(tcph->source),
121 ntohs(tcph
[all...]
H A Dip_conntrack_proto_tcp.c135 static unsigned int get_conntrack_index(const struct tcphdr *tcph) argument
137 if (tcph->rst) return 3;
138 else if (tcph->syn) return 0;
139 else if (tcph->fin) return 1;
140 else if (tcph->ack) return 2;
150 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph + iph->ihl); local
154 if (len < (iph->ihl + tcph->doff) * 4) {
164 [get_conntrack_index(tcph)][oldtcpstate];
169 CTINFO2DIR(ctinfo), get_conntrack_index(tcph),
180 && tcph
212 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph + iph->ihl); local
233 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph + iph->ihl); local
[all...]
H A Dipt_LOG.c69 struct tcphdr *tcph = protoh; local
78 if (datalen < sizeof (*tcph)) {
85 ntohs(tcph->source), ntohs(tcph->dest));
89 ntohl(tcph->seq), ntohl(tcph->ack_seq));
91 printk("WINDOW=%u ", ntohs(tcph->window));
93 printk("RES=0x%02x ", (u_int8_t)(ntohl(tcp_flag_word(tcph) & TCP_RESERVED_BITS) >> 22));
95 if (tcph->cwr)
97 if (tcph
[all...]
H A Dip_conntrack_h323.c38 struct tcphdr *tcph = (void *)iph + iph->ihl * 4; local
39 unsigned char *data = (unsigned char *) tcph + tcph->doff * 4;
42 u_int32_t datalen = tcplen - tcph->doff * 4;
52 NIPQUAD(iph->saddr), ntohs(tcph->source),
53 NIPQUAD(iph->daddr), ntohs(tcph->dest));
67 if (tcplen < sizeof(struct tcphdr) || tcplen < tcph->doff * 4 + 5) {
73 if (tcp_v4_check(tcph, tcplen, iph->saddr, iph->daddr,
74 csum_partial((char *)tcph, tcplen, 0))) {
76 tcph, tcple
153 struct tcphdr *tcph = (void *)iph + iph->ihl * 4; local
[all...]
H A Dip_fw_compat_redir.c87 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph local
90 tcph->check = cheat_check(~redir->core.orig_dstip,
94 tcph->check));
97 tcph->dest = redir->core.new_dport;
127 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph local
130 tcph->check = cheat_check(~redir->core.new_dstip,
134 tcph->check));
138 tcph->source = redir->core.orig_dport;
192 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph local
198 if (skb->len < iph->ihl*4 + sizeof(*tcph))
245 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph local
273 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph local
[all...]
H A Dip_nat_helper.c81 struct tcphdr *tcph = (void *)iph + iph->ihl*4; local
82 void *data = (void *)tcph + tcph->doff*4;
94 || before(this_way->correction_pos, ntohl(tcph->seq))) {
95 this_way->correction_pos = ntohl(tcph->seq);
122 struct tcphdr *tcph; local
163 tcph = (void *)iph + iph->ihl*4;
164 data = (void *)tcph + tcph->doff*4;
189 (*skb)->csum = csum_partial((char *)tcph
301 sack_adjust(struct tcphdr *tcph, unsigned char *ptr, struct ip_nat_seq *natseq) argument
353 struct tcphdr *tcph; local
403 struct tcphdr *tcph; local
[all...]
H A Dipt_ecn.c32 struct tcphdr *tcph = (void *)iph + iph->ihl*4; local
36 if (tcph->ece == 1)
39 if (tcph->ece == 0)
46 if (tcph->cwr == 1)
49 if (tcph->cwr == 0)
H A Dip_nat_h323.c145 struct tcphdr *tcph = (void *)iph + iph->ihl*4; local
148 u_int32_t datalen = tcplen - tcph->doff*4;
158 between(info->seq[IP_CT_DIR_ORIGINAL], ntohl(tcph->seq), ntohl(tcph->seq) + datalen)
160 between(info->seq[IP_CT_DIR_REPLY], ntohl(tcph->seq), ntohl(tcph->seq) + datalen)
162 if (!(between(info->seq[IP_CT_DIR_ORIGINAL], ntohl(tcph->seq), ntohl(tcph->seq) + datalen)
163 || between(info->seq[IP_CT_DIR_REPLY], ntohl(tcph->seq), ntohl(tcph
236 struct tcphdr *tcph = (void *)iph + iph->ihl*4; local
[all...]
H A Dipt_ECN.c62 struct tcphdr *tcph = (void *) iph + iph->ihl * 4; local
63 u_int16_t *tcpflags = (u_int16_t *)tcph + 6;
80 && tcph->ece != einfo->proto.tcp.ece) {
81 tcph->ece = einfo->proto.tcp.ece;
85 && tcph->cwr != einfo->proto.tcp.cwr) {
86 tcph->cwr = einfo->proto.tcp.cwr;
92 tcph->check = csum_fold(csum_partial((char *)diffs,
94 tcph->check^0xFFFF));
H A Dip_conntrack_irc.c105 struct tcphdr *tcph = (void *) iph + iph->ihl * 4; local
106 const char *data = (const char *) tcph + tcph->doff * 4;
110 u_int32_t datalen = tcplen - tcph->doff * 4;
134 if (tcplen < sizeof(struct tcphdr) || tcplen < tcph->doff * 4) {
140 if (tcp_v4_check(tcph, tcplen, iph->saddr, iph->daddr,
141 csum_partial((char *) tcph, tcplen, 0))) {
143 tcph, tcplen, NIPQUAD(iph->saddr),
158 NIPQUAD(iph->saddr), ntohs(tcph->source),
159 NIPQUAD(iph->daddr), ntohs(tcph
[all...]
H A Dipt_REJECT.c37 struct tcphdr *otcph, *tcph; local
78 tcph = (struct tcphdr *)((u_int32_t*)nskb->nh.iph + nskb->nh.iph->ihl);
84 tmp_port = tcph->source;
85 tcph->source = tcph->dest;
86 tcph->dest = tmp_port;
89 tcph->doff = sizeof(struct tcphdr)/4;
93 if (tcph->ack) {
95 tcph->seq = otcph->ack_seq;
96 tcph
[all...]
H A Dipt_unclean.c264 const struct tcphdr *tcph,
270 u_int8_t *opt = (u_int8_t *)tcph;
271 u_int8_t *endhdr = (u_int8_t *)tcph + tcph->doff * 4;
292 if (!tcph->source || !tcph->dest) {
294 htons(tcph->source), htons(tcph->dest));
301 if (datalen < tcph->doff * 4) {
313 csum_partial((char *)tcph, datale
263 check_tcp(const struct iphdr *iph, const struct tcphdr *tcph, u_int16_t datalen, unsigned int offset, int more_frags, int embedded) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv6/netfilter/
H A Dip6t_LOG.c148 struct tcphdr *tcph = (struct tcphdr *)hdrptr; local
158 ntohs(tcph->source), ntohs(tcph->dest));
162 ntohl(tcph->seq), ntohl(tcph->ack_seq));
164 printk("WINDOW=%u ", ntohs(tcph->window));
166 printk("RES=0x%02x ", (u_int8_t)(ntohl(tcp_flag_word(tcph) & TCP_RESERVED_BITS) >> 22));
168 if (tcph->cwr)
170 if (tcph->ece)
172 if (tcph
[all...]

Completed in 125 milliseconds

12