Home
last modified time | relevance | path

Searched refs:doff (Results 1 – 25 of 25) sorted by relevance

/linux-2.4.37.9/arch/alpha/lib/
Dcsum_partial_copy.c196 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/
Dslhc.c268 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 …]
Dsky2.c1201 mss += ((skb->h.th->doff - 5) * 4); /* TCP options */ in sky2_xmit_frame()
Dtg3.c3258 tcp_opt_len = ((skb->h.th->doff - 5) * 4); in tg3_start_xmit()
/linux-2.4.37.9/net/ipv4/netfilter/
Dipt_tcpmss.c23 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()
Dipt_TCPMSS.c72 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()
Dipt_unclean.c291 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()
Dip_conntrack_irc.c112 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()
Dipt_LOG.c129 && 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()
Dip_conntrack_ftp.c238 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()
Dip_conntrack_proto_tcp.c167 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()
Dipt_REJECT.c132 tcph->doff = sizeof(struct tcphdr)/4; in send_reset()
143 + otcplen - (otcph->doff<<2)); in send_reset()
Dip_nat_helper.c176 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()
Dip_nat_irc.c179 datalen = (*pskb)->len - iph->ihl * 4 - tcph->doff * 4; in help()
Dip_nat_ftp.c247 datalen = (*pskb)->len - iph->ihl * 4 - tcph->doff * 4; in help()
Dip_tables.c1485 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/
Dtcp.h30 doff:4, member
40 __u16 doff:4, member
/linux-2.4.37.9/net/ipv4/ipvs/
Dip_vs_ftp.c164 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/
Dip6t_LOG.c256 && tcph->doff * 4 > sizeof(struct tcphdr)) { in dump_packet()
259 unsigned int optsize = tcph->doff * 4 in dump_packet()
Dip6_tables.c1566 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/
Dtcp_ipv4.c1137 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()
Dtcp_minisocks.c135 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()
Dtcp_input.c2875 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()
Dtcp_output.c1178 th->doff = (tcp_header_size >> 2); in tcp_make_synack()
/linux-2.4.37.9/net/ipv6/
Dtcp_ipv6.c958 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()