/linux-2.4.37.9/net/ipv4/netfilter/ |
D | ip_fw_compat_redir.c | 99 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph in do_tcp_redir() 139 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph in do_tcp_unredir() 204 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph in do_redirect() 257 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph in check_for_redirect() 285 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph in check_for_unredirect()
|
D | ip_conntrack_proto_tcp.c | 110 const struct tcphdr *hdr = datah; in tcp_pkt_to_tuple() 148 static unsigned int get_conntrack_index(const struct tcphdr *tcph) in get_conntrack_index() 163 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph + iph->ihl); in tcp_packet() 225 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph + iph->ihl); in tcp_new() 246 struct tcphdr *tcph = (struct tcphdr *)((u_int32_t *)iph + iph->ihl); in tcp_exp_matches_pkt()
|
D | ipt_TCPMSS.c | 46 struct tcphdr *tcph; in ipt_tcpmss_target() 88 if((*pskb)->dst->pmtu <= (sizeof(struct iphdr) + sizeof(struct tcphdr))) { in ipt_tcpmss_target() 95 newmss = (*pskb)->dst->pmtu - sizeof(struct iphdr) - sizeof(struct tcphdr); in ipt_tcpmss_target() 100 for (i = sizeof(struct tcphdr); i < tcph->doff*4; i += optlen(opt, i)){ in ipt_tcpmss_target() 154 opt = (u_int8_t *)tcph + sizeof(struct tcphdr); in ipt_tcpmss_target() 155 memmove(opt + TCPOLEN_MSS, opt, tcplen - sizeof(struct tcphdr)); in ipt_tcpmss_target()
|
D | ipt_REJECT.c | 70 struct tcphdr *otcph, *tcph; in send_reset() 80 || oldskb->len < (oldskb->nh.iph->ihl<<2) + sizeof(struct tcphdr)) in send_reset() 83 otcph = (struct tcphdr *)((u_int32_t*)oldskb->nh.iph + oldskb->nh.iph->ihl); in send_reset() 121 tcph = (struct tcphdr *)((u_int32_t*)nskb->nh.iph + nskb->nh.iph->ihl); in send_reset() 132 tcph->doff = sizeof(struct tcphdr)/4; in send_reset() 133 skb_trim(nskb, nskb->nh.iph->ihl*4 + sizeof(struct tcphdr)); in send_reset() 157 tcph->check = tcp_v4_check(tcph, sizeof(struct tcphdr), in send_reset() 161 sizeof(struct tcphdr), 0)); in send_reset()
|
D | ipt_tcpmss.c | 14 const struct tcphdr *tcp, in mssoption_match() 28 for (i = sizeof(struct tcphdr); i < tcp->doff * 4; ) { in mssoption_match() 56 const struct tcphdr *tcph = (void *)skb->nh.iph + skb->nh.iph->ihl*4; in match()
|
D | ip_nat_helper.c | 86 struct tcphdr *tcph = (void *)iph + iph->ihl*4; in ip_nat_resize_packet() 134 struct tcphdr *tcph; in ip_nat_mangle_tcp_packet() 319 sack_adjust(struct tcphdr *tcph, in sack_adjust() 370 struct tcphdr *tcph; in ip_nat_sack_adjust() 416 struct tcphdr *tcph; in ip_nat_seq_adjust()
|
D | ipt_LOG.c | 83 struct tcphdr *tcph = protoh; in dump_packet() 129 && tcph->doff * 4 > sizeof(struct tcphdr) in dump_packet() 135 for (i =sizeof(struct tcphdr); i < tcph->doff * 4; i++) in dump_packet()
|
D | ip_nat_proto_tcp.c | 82 struct tcphdr *hdr = (struct tcphdr *)((u_int32_t *)iph + iph->ihl); in tcp_manip_pkt()
|
D | ipt_unclean.c | 284 const struct tcphdr *tcph, in check_tcp() 304 if (datalen < sizeof(struct tcphdr)) { in check_tcp() 357 for (i = sizeof(struct tcphdr); i < tcph->doff * 4; ) { in check_tcp()
|
D | ip_nat_irc.c | 98 struct tcphdr *tcph = (void *) iph + iph->ihl * 4; in irc_data_fixup() 155 struct tcphdr *tcph = (void *) iph + iph->ihl * 4; in help()
|
D | ip_conntrack_irc.c | 111 struct tcphdr *tcph = (void *) iph + iph->ihl * 4; in help() 140 if (tcplen < sizeof(struct tcphdr) || tcplen < tcph->doff * 4) { in help()
|
D | ipt_ecn.c | 32 struct tcphdr *tcph = (void *)iph + iph->ihl*4; in match_tcp()
|
/linux-2.4.37.9/include/net/ |
D | tcp_ecn.h | 41 TCP_ECN_make_synack(struct open_request *req, struct tcphdr *th) in TCP_ECN_make_synack() 98 TCP_ECN_rcv_synack(struct tcp_opt *tp, struct tcphdr *th) in TCP_ECN_rcv_synack() 105 TCP_ECN_rcv_syn(struct tcp_opt *tp, struct tcphdr *th) in TCP_ECN_rcv_syn() 112 TCP_ECN_rcv_ecn_echo(struct tcp_opt *tp, struct tcphdr *th) in TCP_ECN_rcv_ecn_echo() 126 TCP_ECN_create_request(struct open_request *req, struct tcphdr *th) in TCP_ECN_create_request()
|
D | slhc_vj.h | 132 struct tcphdr cs_tcp;
|
/linux-2.4.37.9/net/ipv6/netfilter/ |
D | ip6t_LOG.c | 209 struct tcphdr *tcph; in dump_packet() 222 tcph = (struct tcphdr *)(skb->data + ptr); in dump_packet() 256 && tcph->doff * 4 > sizeof(struct tcphdr)) { in dump_packet() 260 - sizeof(struct tcphdr); in dump_packet() 262 if (skb->len - ptr - sizeof(struct tcphdr) < optsize) { in dump_packet() 267 + sizeof(struct tcphdr)); in dump_packet()
|
/linux-2.4.37.9/net/ipv4/ipvs/ |
D | ip_vs_app.c | 205 static inline void vs_fix_seq(const struct ip_vs_seq *vseq, struct tcphdr *th) in vs_fix_seq() 232 vs_fix_ack_seq(const struct ip_vs_seq *vseq, struct tcphdr *th) in vs_fix_ack_seq() 288 struct tcphdr *th; in ip_vs_app_pkt_out() 299 th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]); in ip_vs_app_pkt_out() 345 struct tcphdr *th; in ip_vs_app_pkt_in() 356 th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]); in ip_vs_app_pkt_in()
|
D | ip_vs_ftp.c | 147 struct tcphdr *th; in ip_vs_ftp_out() 163 th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]); in ip_vs_ftp_out() 248 struct tcphdr *th; in ip_vs_ftp_in() 263 th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]); in ip_vs_ftp_in()
|
/linux-2.4.37.9/include/linux/ |
D | tcp.h | 23 struct tcphdr { struct 98 struct tcphdr hdr;
|
/linux-2.4.37.9/net/ipv4/ |
D | tcp_ipv4.c | 83 void tcp_v4_send_check(struct sock *sk, struct tcphdr *th, int len, 986 struct tcphdr *th = (struct tcphdr*)(skb->data+(iph->ihl<<2)); in tcp_v4_err() 1129 void tcp_v4_send_check(struct sock *sk, struct tcphdr *th, int len, in tcp_v4_send_check() 1134 skb->csum = offsetof(struct tcphdr, check); in tcp_v4_send_check() 1156 struct tcphdr *th = skb->h.th; in tcp_v4_send_reset() 1157 struct tcphdr rth; in tcp_v4_send_reset() 1168 memset(&rth, 0, sizeof(struct tcphdr)); in tcp_v4_send_reset() 1171 rth.doff = sizeof(struct tcphdr)/4; in tcp_v4_send_reset() 1187 sizeof(struct tcphdr), in tcp_v4_send_reset() 1191 arg.csumoffset = offsetof(struct tcphdr, check) / 2; in tcp_v4_send_reset() [all …]
|
D | tcp_output.c | 202 struct tcphdr *th; in tcp_transmit_skb() 212 tcp_header_size = sizeof(struct tcphdr) + TCPOLEN_MSS; in tcp_transmit_skb() 246 th = (struct tcphdr *) skb_push(skb, tcp_header_size); in tcp_transmit_skb() 532 mss_now = pmtu - tp->af_specific->net_header_len - sizeof(struct tcphdr); in tcp_sync_mss() 546 mss_now -= tp->tcp_header_len - sizeof(struct tcphdr); in tcp_sync_mss() 1124 struct tcphdr *th; in tcp_make_synack() 1137 tcp_header_size = (sizeof(struct tcphdr) + TCPOLEN_MSS + in tcp_make_synack() 1142 skb->h.th = th = (struct tcphdr *) skb_push(skb, tcp_header_size); in tcp_make_synack() 1144 memset(th, 0, sizeof(struct tcphdr)); in tcp_make_synack() 1194 tp->tcp_header_len = sizeof(struct tcphdr) + in tcp_connect_init() [all …]
|
D | tcp_minisocks.c | 129 struct tcphdr *th, unsigned len) in tcp_timewait_state_process() 135 if (th->doff > (sizeof(struct tcphdr)>>2) && tw->ts_recent_stamp) { in tcp_timewait_state_process() 781 newtp->tcp_header_len = sizeof(struct tcphdr) + TCPOLEN_TSTAMP_ALIGNED; in tcp_create_openreq_child() 784 newtp->tcp_header_len = sizeof(struct tcphdr); in tcp_create_openreq_child() 806 struct tcphdr *th = skb->h.th; in tcp_check_req() 814 if (th->doff > (sizeof(struct tcphdr)>>2)) { in tcp_check_req()
|
D | tcp_input.c | 156 if (len >= TCP_MIN_RCVMSS + sizeof(struct tcphdr) || in tcp_measure_rcv_mss() 162 (len >= TCP_MIN_MSS + sizeof(struct tcphdr) && in tcp_measure_rcv_mss() 2874 struct tcphdr *th = skb->h.th; in tcp_parse_options() 2875 int length=(th->doff*4)-sizeof(struct tcphdr); in tcp_parse_options() 2956 static __inline__ int tcp_fast_parse_options(struct sk_buff *skb, struct tcphdr *th, struct tcp_opt… in tcp_fast_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() 3027 struct tcphdr *th = skb->h.th; in tcp_disordered_ack() 3107 static void tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th) in tcp_fin() 3402 struct tcphdr *th = skb->h.th; in tcp_data_queue() [all …]
|
/linux-2.4.37.9/net/ipv6/ |
D | tcp_ipv6.c | 58 static void tcp_v6_send_check(struct sock *sk, struct tcphdr *th, int len, 421 static __inline__ u16 tcp_v6_check(struct tcphdr *th, int len, in tcp_v6_check() 699 tp->mss_clamp = IPV6_MIN_MTU - sizeof(struct tcphdr) - sizeof(struct ipv6hdr); in tcp_v6_connect() 731 struct tcphdr *th = (struct tcphdr *)(skb->data+offset); in tcp_v6_err() 899 struct tcphdr *th = skb->h.th; in tcp_v6_send_synack() 948 static void tcp_v6_send_check(struct sock *sk, struct tcphdr *th, int len, in tcp_v6_send_check() 955 skb->csum = offsetof(struct tcphdr, check); in tcp_v6_send_check() 966 struct tcphdr *th = skb->h.th, *t1; in tcp_v6_send_reset() 981 buff = alloc_skb(MAX_HEADER + sizeof(struct ipv6hdr) + sizeof(struct tcphdr), GFP_ATOMIC); in tcp_v6_send_reset() 985 skb_reserve(buff, MAX_HEADER + sizeof(struct ipv6hdr) + sizeof(struct tcphdr)); in tcp_v6_send_reset() [all …]
|
D | ip6_fw.c | 141 struct tcphdr *th; in ip6_fw_accept_trans() 143 if (len < sizeof(struct tcphdr)) { in ip6_fw_accept_trans() 147 th = (struct tcphdr *)(hdr + 1); in ip6_fw_accept_trans()
|
/linux-2.4.37.9/drivers/net/ |
D | slhc.c | 244 struct tcphdr *th, *oth; in slhc_compress() 267 th = (struct tcphdr *)(((unsigned char *)ip) + ip->ihl*4); in slhc_compress() 495 register struct tcphdr *thp; in slhc_uncompress() 680 memcpy(cs->cs_tcpopt, icp + ihl*4 + sizeof(struct tcphdr), (cs->cs_tcp.doff - 5) * 4); in slhc_remember()
|