/linux-2.4.37.9/arch/alpha/lib/ |
D | csum_partial_copy.c | 196 unsigned long doff, in csum_partial_cfu_src_aligned() argument 206 mskql(partial_dest, doff, partial_dest); in csum_partial_cfu_src_aligned() 210 insql(word, doff, second_dest); in csum_partial_cfu_src_aligned() 215 insqh(word, doff, partial_dest); in csum_partial_cfu_src_aligned() 226 insql(word, doff, second_dest); in csum_partial_cfu_src_aligned() 227 len += doff; in csum_partial_cfu_src_aligned() 234 insqh(word, doff, partial_dest); in csum_partial_cfu_src_aligned() 236 doff = len; in csum_partial_cfu_src_aligned() 239 mskqh(second_dest, doff, second_dest); in csum_partial_cfu_src_aligned() 253 unsigned long soff, unsigned long doff, in csum_partial_cfu_unaligned() argument [all …]
|
/linux-2.4.37.9/drivers/net/ |
D | slhc.c | 268 hlen = ip->ihl*4 + th->doff*4; in slhc_compress() 355 || th->doff != cs->cs_tcp.doff in slhc_compress() 357 || (th->doff > 5 && memcmp(th+1,cs->cs_tcpopt,((th->doff)-5)*4) != 0)){ in slhc_compress() 478 if (th->doff > 5) in slhc_compress() 479 memcpy(cs->cs_tcpopt, th+1, ((th->doff) - 5) * 4); in slhc_compress() 543 hdrlen = ip->ihl * 4 + thp->doff * 4; in slhc_uncompress() 627 if (thp->doff > 5) { in slhc_uncompress() 628 memcpy(cp, cs->cs_tcpopt, ((thp->doff) - 5) * 4); in slhc_uncompress() 629 cp += ((thp->doff) - 5) * 4; in slhc_uncompress() 679 if (cs->cs_tcp.doff > 5) in slhc_remember() [all …]
|
D | sky2.c | 1201 mss += ((skb->h.th->doff - 5) * 4); /* TCP options */ in sky2_xmit_frame()
|
D | tg3.c | 3258 tcp_opt_len = ((skb->h.th->doff - 5) * 4); in tg3_start_xmit()
|
/linux-2.4.37.9/net/ipv4/netfilter/ |
D | ipt_tcpmss.c | 23 if (tcp->doff * 4 > datalen) { in mssoption_match() 28 for (i = sizeof(struct tcphdr); i < tcp->doff * 4; ) { in mssoption_match() 30 && ((tcp->doff * 4 - i) >= TCPOLEN_MSS) in mssoption_match()
|
D | ipt_TCPMSS.c | 72 if (tcplen != tcph->doff*4) { in ipt_tcpmss_target() 100 for (i = sizeof(struct tcphdr); i < tcph->doff*4; i += optlen(opt, i)){ in ipt_tcpmss_target() 102 ((tcph->doff*4 - i) >= TCPOLEN_MSS) && in ipt_tcpmss_target() 169 tcph->doff += TCPOLEN_MSS/4; in ipt_tcpmss_target()
|
D | ipt_unclean.c | 291 u_int8_t *endhdr = (u_int8_t *)tcph + tcph->doff * 4; in check_tcp() 321 if (datalen < tcph->doff * 4) { in check_tcp() 357 for (i = sizeof(struct tcphdr); i < tcph->doff * 4; ) { in check_tcp() 374 else if (i+1 >= tcph->doff * 4) { in check_tcp()
|
D | ip_conntrack_irc.c | 112 const char *data = (const char *) tcph + tcph->doff * 4; in help() 116 u_int32_t datalen = tcplen - tcph->doff * 4; in help() 140 if (tcplen < sizeof(struct tcphdr) || tcplen < tcph->doff * 4) { in help()
|
D | ipt_LOG.c | 129 && tcph->doff * 4 > sizeof(struct tcphdr) in dump_packet() 130 && tcph->doff * 4 <= datalen) { in dump_packet() 135 for (i =sizeof(struct tcphdr); i < tcph->doff * 4; i++) in dump_packet()
|
D | ip_conntrack_ftp.c | 238 const char *data = (const char *)tcph + tcph->doff * 4; in help() 240 unsigned int datalen = tcplen - tcph->doff * 4; in help() 261 if (tcplen < sizeof(struct tcphdr) || tcplen < tcph->doff*4) { in help()
|
D | ip_conntrack_proto_tcp.c | 167 if (len < (iph->ihl + tcph->doff) * 4) { in tcp_packet() 249 datalen = (*pskb)->len - iph->ihl*4 - tcph->doff*4; in tcp_exp_matches_pkt()
|
D | ipt_REJECT.c | 132 tcph->doff = sizeof(struct tcphdr)/4; in send_reset() 143 + otcplen - (otcph->doff<<2)); in send_reset()
|
D | ip_nat_helper.c | 176 data = (void *)tcph + tcph->doff*4; in ip_nat_mangle_tcp_packet() 375 optend = (unsigned char *)tcph + tcph->doff*4; in ip_nat_sack_adjust()
|
D | ip_nat_irc.c | 179 datalen = (*pskb)->len - iph->ihl * 4 - tcph->doff * 4; in help()
|
D | ip_nat_ftp.c | 247 datalen = (*pskb)->len - iph->ihl * 4 - tcph->doff * 4; in help()
|
D | ip_tables.c | 1485 if (tcp->doff * 4 < sizeof(struct tcphdr) || in tcp_find_option() 1486 tcp->doff * 4 > datalen) { in tcp_find_option() 1491 while (i < tcp->doff * 4) { in tcp_find_option()
|
/linux-2.4.37.9/include/linux/ |
D | tcp.h | 30 doff:4, member 40 __u16 doff:4, member
|
/linux-2.4.37.9/net/ipv4/ipvs/ |
D | ip_vs_ftp.c | 164 data = (char *)th + (th->doff << 2); in ip_vs_ftp_out() 268 data = data_start = (char *)th + (th->doff << 2); in ip_vs_ftp_in()
|
/linux-2.4.37.9/net/ipv6/netfilter/ |
D | ip6t_LOG.c | 256 && tcph->doff * 4 > sizeof(struct tcphdr)) { in dump_packet() 259 unsigned int optsize = tcph->doff * 4 in dump_packet()
|
D | ip6_tables.c | 1566 if (tcp->doff * 4 < sizeof(struct tcphdr) || in tcp_find_option() 1567 tcp->doff * 4 > datalen) { in tcp_find_option() 1572 while (i < tcp->doff * 4) { in tcp_find_option()
|
/linux-2.4.37.9/net/ipv4/ |
D | tcp_ipv4.c | 1137 csum_partial((char *)th, th->doff<<2, skb->csum)); in tcp_v4_send_check() 1171 rth.doff = sizeof(struct tcphdr)/4; in tcp_v4_send_reset() 1179 + skb->len - (th->doff<<2)); in tcp_v4_send_reset() 1232 rep.th.doff = arg.iov[0].iov_len/4; in tcp_v4_send_ack() 1672 if (skb->len < (skb->h.th->doff<<2) || tcp_checksum_complete(skb)) in tcp_v4_do_rcv() 1730 if (th->doff < sizeof(struct tcphdr)/4) in tcp_v4_rcv() 1732 if (!pskb_may_pull(skb, th->doff*4)) in tcp_v4_rcv() 1746 skb->len - th->doff*4); in tcp_v4_rcv() 1784 if (skb->len < (th->doff<<2) || tcp_checksum_complete(skb)) { in tcp_v4_rcv() 1801 if (skb->len < (th->doff<<2) || tcp_checksum_complete(skb)) { in tcp_v4_rcv()
|
D | tcp_minisocks.c | 135 if (th->doff > (sizeof(struct tcphdr)>>2) && tw->ts_recent_stamp) { in tcp_timewait_state_process() 814 if (th->doff > (sizeof(struct tcphdr)>>2)) { in tcp_check_req()
|
D | tcp_input.c | 2875 int length=(th->doff*4)-sizeof(struct tcphdr); in tcp_parse_options() 2958 if (th->doff == sizeof(struct tcphdr)>>2) { in tcp_fast_parse_options() 2962 th->doff == (sizeof(struct tcphdr)>>2)+(TCPOLEN_TSTAMP_ALIGNED>>2)) { in tcp_fast_parse_options() 3410 __skb_pull(skb, th->doff*4); in tcp_data_queue() 4009 u32 ptr = tp->urg_seq - ntohl(th->seq) + (th->doff*4) - th->syn; in tcp_urg() 4256 if (len < (th->doff<<2) || tcp_checksum_complete_user(sk, skb)) in tcp_rcv_established()
|
D | tcp_output.c | 1178 th->doff = (tcp_header_size >> 2); in tcp_make_synack()
|
/linux-2.4.37.9/net/ipv6/ |
D | tcp_ipv6.c | 958 csum_partial((char *)th, th->doff<<2, in tcp_v6_send_check() 993 t1->doff = sizeof(*t1)/4; in tcp_v6_send_reset() 1001 + skb->len - (th->doff<<2)); in tcp_v6_send_reset() 1055 t1->doff = tot_len/4; in tcp_v6_send_ack() 1491 if (skb->len < (skb->h.th->doff<<2) || tcp_checksum_complete(skb)) in tcp_v6_do_rcv() 1580 if (th->doff < sizeof(struct tcphdr)/4) in tcp_v6_rcv() 1582 if (!pskb_may_pull(skb, th->doff*4)) in tcp_v6_rcv() 1592 skb->len - th->doff*4); in tcp_v6_rcv() 1628 if (skb->len < (th->doff<<2) || tcp_checksum_complete(skb)) { in tcp_v6_rcv() 1649 if (skb->len < (th->doff<<2) || tcp_checksum_complete(skb)) { in tcp_v6_rcv()
|