| /src/sys/netinet/ |
| tcp_congctl.h | 53 int (*fast_retransmit)(struct tcpcb *, const struct tcphdr *); 65 void (*fast_retransmit_newack)(struct tcpcb *, const struct tcphdr *); 71 void (*newack)(struct tcpcb *, const struct tcphdr *);
|
| tcp_debug.h | 49 struct tcphdr th; 57 struct tcphdr th;
|
| tcp_syncache.h | 206 struct tcphdr *, unsigned int, struct socket *, 209 struct tcphdr *); 212 struct tcphdr *, struct socket *so, struct mbuf *); 216 struct tcphdr *);
|
| tcp_congctl.c | 195 static int tcp_reno_do_fast_retransmit(struct tcpcb *, const struct tcphdr *); 196 static int tcp_reno_fast_retransmit(struct tcpcb *, const struct tcphdr *); 199 const struct tcphdr *); 200 static void tcp_reno_newack(struct tcpcb *, const struct tcphdr *); 203 static int tcp_newreno_fast_retransmit(struct tcpcb *, const struct tcphdr *); 205 const struct tcphdr *); 206 static void tcp_newreno_newack(struct tcpcb *, const struct tcphdr *); 208 static int tcp_cubic_fast_retransmit(struct tcpcb *, const struct tcphdr *); 210 static void tcp_cubic_newack(struct tcpcb *, const struct tcphdr *); 465 tcp_reno_do_fast_retransmit(struct tcpcb *tp, const struct tcphdr *th [all...] |
| tcp_debug.c | 115 struct tcphdr *th; 142 th = (struct tcphdr *)((char *)&td->td_ti + 151 th = (struct tcphdr *)((char *)&td->td_ti6 + 181 len -= sizeof (struct tcphdr);
|
| tcp_var.h | 170 struct tcphdr ti_t; /* tcp header */ 806 int tcp_signature(struct mbuf *, struct tcphdr *, int, struct secasvar *, 828 struct tcphdr *, struct mbuf *, int); 840 struct tcphdr *, tcp_seq, tcp_seq, int); 844 int tcp_signature_compute(struct mbuf *, struct tcphdr *, int, int, 860 void tcp_sack_option(struct tcpcb *, const struct tcphdr *, 862 void tcp_del_sackholes(struct tcpcb *, const struct tcphdr *); 872 int tcp_input_checksum(int, struct mbuf *, const struct tcphdr *, int, int, 876 struct tcphdr *, struct mbuf *, int, struct tcp_opt_info *);
|
| tcp.h | 48 struct tcphdr { struct 77 __CTASSERT(sizeof(struct tcphdr) == 20);
|
| tcp_subr.c | 418 unsigned hlen = basehlen + sizeof(struct tcphdr); 451 struct tcphdr *n; 482 KASSERT(hlen + sizeof(struct tcphdr) <= MCLBYTES); 485 if (m && m->m_len == hlen + sizeof(struct tcphdr)) { 491 if (m && hlen + sizeof(struct tcphdr) > MHLEN) { 501 m->m_pkthdr.len = m->m_len = hlen + sizeof(struct tcphdr); 506 n = (struct tcphdr *)(mtod(m, char *) + hlen); 516 ipov->ih_len = htons(sizeof(struct tcphdr)); 540 htons(sizeof(struct tcphdr) + IPPROTO_TCP)); 550 ip6->ip6_plen = htons(sizeof(struct tcphdr)); [all...] |
| tcp_input.c | 290 tcp_setup_ack(struct tcpcb *tp, const struct tcphdr *th) 301 icmp_check(struct tcpcb *tp, const struct tcphdr *th, int acked) 324 tcp_fields_to_host(struct tcphdr *th) 337 tcp_fields_to_net(struct tcphdr *th) 347 tcp_urp_drop(struct tcphdr *th, int todrop, int *tiflags) 404 static int tcp_reass(struct tcpcb *, const struct tcphdr *, struct mbuf *, 407 static void tcp4_log_refused(const struct ip *, const struct tcphdr *); 409 static void tcp6_log_refused(const struct ip6_hdr *, const struct tcphdr *); 455 tcp_reass(struct tcpcb *tp, const struct tcphdr *th, struct mbuf *m, int tlen) 833 tcp4_log_refused(const struct ip *ip, const struct tcphdr *th [all...] |
| tcp_vtw.h | 359 struct tcphdr; 363 int vtw_lookup_v4(const struct ip *ip, const struct tcphdr *th, 369 int vtw_lookup_v6(const struct ip6_hdr *ip, const struct tcphdr *th,
|
| tcp_syncache.c | 556 struct tcphdr *th, struct socket *so, struct mbuf *m) 803 syn_cache_reset(struct sockaddr *src, struct sockaddr *dst, struct tcphdr *th) 826 struct tcphdr *th) 877 syn_cache_add(struct sockaddr *src, struct sockaddr *dst, struct tcphdr *th, 1089 struct tcphdr *th; 1112 tlen = hlen + sizeof(struct tcphdr) + MAX_TCPOPTLEN; 1144 th = (struct tcphdr *)(ip + 1); 1156 th = (struct tcphdr *)(ip6 + 1); 1244 tlen = hlen + sizeof(struct tcphdr) + optlen; 1246 th->th_off = (sizeof(struct tcphdr) + optlen) >> 2 [all...] |
| tcp_output.c | 242 hdrlen = sizeof(struct ip) + sizeof(struct tcphdr); 246 hdrlen = sizeof(struct ip6_hdr) + sizeof(struct tcphdr); 517 struct tcphdr *th; 1054 iphdrlen = sizeof(struct ip) + sizeof(struct tcphdr); 1058 iphdrlen = sizeof(struct ip6_hdr) + sizeof(struct tcphdr); 1225 panic("tcphdr too big"); 1280 th = (struct tcphdr *)(ip + 1); 1286 th = (struct tcphdr *)(ip6 + 1); 1369 th->th_off = (sizeof (struct tcphdr) + optlen) >> 2; 1427 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum) [all...] |
| /src/sys/net/ |
| rss_config.c | 114 if (m->m_len >= hlen + sizeof(struct tcphdr)) { 115 struct tcphdr *th; 117 th = (struct tcphdr *)(mtod(m, char *) + hlen); 121 /* th_sport and th_dport in tcphdr must be sequential */ 124 } else if (m->m_pkthdr.len >= hlen + sizeof(struct tcphdr)) { 128 m_copydata(__UNCONST(m), hlen + offsetof(struct tcphdr, th_sport), 212 if (m->m_len >= hlen + sizeof(struct tcphdr)) { 213 struct tcphdr *th; 215 th = (struct tcphdr *)(mtod(m, char *) + hlen); 219 /* th_sport and th_dport in tcphdr must be sequential * [all...] |
| slcompress.c | 179 struct tcphdr *oth; 180 struct tcphdr *th; 195 th = (struct tcphdr *)&((int32_t *)ip)[hlen]; 271 oth = (struct tcphdr *)&((int32_t *)&cs->cs_ip)[hlen]; 477 struct tcphdr *th; 499 if (hlen + sizeof(struct tcphdr) > buflen) 501 hlen += ((struct tcphdr *)&((char *)ip)[hlen])->th_off << 2; 546 th = (struct tcphdr *)&((u_char *)&cs->cs_ip)[hlen];
|
| /src/sys/net/npf/ |
| npf_sendpkt.c | 98 struct tcphdr *oth, *th; 115 len = sizeof(struct ip) + sizeof(struct tcphdr); 117 len = sizeof(struct ip6_hdr) + sizeof(struct tcphdr); 145 ip->ip_len = htons(sizeof(struct tcphdr)); 147 th = (struct tcphdr *)(ip + 1); 162 th = (struct tcphdr *)(ip6 + 1); 175 th->th_off = sizeof(struct tcphdr) >> 2; 192 sizeof(struct tcphdr));
|
| npf_inet.c | 252 const struct tcphdr *th = npc->npc_l4.tcp; 280 const struct tcphdr *th = npc->npc_l4.tcp; 290 cnt = (th->th_off << 2) - sizeof(struct tcphdr); 299 const int step = npc->npc_hlen + sizeof(struct tcphdr); 355 const struct tcphdr *th = npc->npc_l4.tcp; 364 cnt = (th->th_off << 2) - sizeof(struct tcphdr); 373 const int step = npc->npc_hlen + sizeof(struct tcphdr); 568 struct tcphdr *th; 570 th = nbuf_advance(nbuf, hlen, sizeof(struct tcphdr)); 731 struct tcphdr *th = npc->npc_l4.tcp [all...] |
| npf_alg_icmp.c | 90 const struct tcphdr *th = npc->npc_l4.tcp; 264 struct tcphdr th; 368 const struct tcphdr *th = enpc.npc_l4.tcp; 425 const struct tcphdr *th = enpc.npc_l4.tcp;
|
| npf_socket.c | 130 struct tcphdr *tcp = npc->npc_l4.tcp; 193 struct tcphdr *tcp = npc->npc_l4.tcp;
|
| /src/sys/dev/pci/cxgb/ |
| cxgb_lro.c | 81 lro_match(struct mbuf *m, struct ip *ih, struct tcphdr *th) 84 struct tcphdr *sth = (struct tcphdr *) (sih + 1); 93 lro_lookup(struct lro_state *l, int idx, struct ip *ih, struct tcphdr *th) 131 can_lro_tcpsegment(struct tcphdr *th) 159 struct tcphdr *th = (struct tcphdr *) (ih + 1); 250 struct tcphdr *th, *nth = (struct tcphdr *)(nih + 1); 265 th = (struct tcphdr *)(mtod(sm, uint8_t *) + IPH_OFFSET + sizeof (struct ip)) [all...] |
| /src/usr.sbin/npf/npftest/ |
| npfstream.c | 42 const struct tcphdr *th; 57 th = (const struct tcphdr *)p;
|
| /src/sys/dev/pci/ixgbe/ |
| if_fdir.c | 91 struct tcphdr *th; 118 th = (struct tcphdr *)((caddr_t)ip + ip_hlen);
|
| /src/usr.sbin/npf/npftest/libnpftest/ |
| npf_state_test.c | 120 struct tcphdr *th; 125 ip->ip_len = htons(sizeof(struct ip) + sizeof(struct tcphdr) + p->tlen);
|
| npf_mbuf_subr.c | 148 struct tcphdr *th; 154 th->th_off = sizeof(struct tcphdr) >> 2; 155 size = sizeof(struct tcphdr); 268 struct tcphdr *th;
|
| /src/sys/dist/pf/net/ |
| pf_norm.c | 130 struct tcphdr *, int); 1279 struct tcphdr *th = pd->hdr.tcp; 1349 if (th->th_off < (sizeof(struct tcphdr) >> 2)) 1391 struct tcphdr *th, struct pf_state_peer *src, 1431 if (th->th_off > (sizeof(struct tcphdr) >> 2) && src->scrub && 1435 opt = hdr + sizeof(struct tcphdr); 1436 hlen = (th->th_off << 2) - sizeof(struct tcphdr); 1486 u_short *reason, struct tcphdr *th, struct pf_state *state, 1529 if (th->th_off > (sizeof(struct tcphdr) >> 2) && 1535 opt = hdr + sizeof(struct tcphdr); [all...] |
| /src/usr.sbin/trpt/ |
| trpt.c | 387 struct tcphdr *th = NULL; 401 th = (struct tcphdr *)(ip + 1); 408 th = (struct tcphdr *)(ip6 + 1); 468 len -= sizeof(struct tcphdr);
|