Home
last modified time | relevance | path

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

12

/xnu-8792.61.2/bsd/netinet/
H A Dtcp_newreno.c80 void tcp_newreno_congestion_avd(struct tcpcb *tp, struct tcphdr *th);
81 void tcp_newreno_ack_rcvd(struct tcpcb *tp, struct tcphdr *th);
83 void tcp_newreno_post_fr(struct tcpcb *tp, struct tcphdr *th);
86 int tcp_newreno_delay_ack(struct tcpcb *tp, struct tcphdr *th);
140 tcp_newreno_congestion_avd(struct tcpcb *tp, struct tcphdr *th) in tcp_newreno_congestion_avd()
159 tcp_newreno_ack_rcvd(struct tcpcb *tp, struct tcphdr *th) in tcp_newreno_ack_rcvd()
219 tcp_newreno_post_fr(struct tcpcb *tp, struct tcphdr *th) in tcp_newreno_post_fr()
312 tcp_newreno_delay_ack(struct tcpcb *tp, struct tcphdr *th) in tcp_newreno_delay_ack()
H A Dtcp_cc.h197 void (*congestion_avd) (struct tcpcb *tp, struct tcphdr *th);
200 void (*ack_rcvd) (struct tcpcb *tp, struct tcphdr *th);
206 void (*post_fr) (struct tcpcb *tp, struct tcphdr *th);
215 int (*delay_ack)(struct tcpcb *tp, struct tcphdr *th);
251 void (*data_rcvd) (struct tcpcb *tp, struct tcphdr *th,
269 extern int tcp_cc_delay_ack(struct tcpcb *tp, struct tcphdr *th);
H A Dtcp_cubic.c44 static void tcp_cubic_congestion_avd(struct tcpcb *tp, struct tcphdr *th);
45 static void tcp_cubic_ack_rcvd(struct tcpcb *tp, struct tcphdr *th);
47 static void tcp_cubic_post_fr(struct tcpcb *tp, struct tcphdr *th);
49 static int tcp_cubic_delay_ack(struct tcpcb *tp, struct tcphdr *th);
236 tcp_cubic_tcpwin(struct tcpcb *tp, struct tcphdr *th) in tcp_cubic_tcpwin()
283 tcp_cubic_congestion_avd(struct tcpcb *tp, struct tcphdr *th) in tcp_cubic_congestion_avd()
357 tcp_cubic_ack_rcvd(struct tcpcb *tp, struct tcphdr *th) in tcp_cubic_ack_rcvd()
480 tcp_cubic_post_fr(struct tcpcb *tp, struct tcphdr *th) in tcp_cubic_post_fr()
580 tcp_cubic_delay_ack(struct tcpcb *tp, struct tcphdr *th) in tcp_cubic_delay_ack()
H A Dtcp_ledbat.c56 void tcp_ledbat_congestion_avd(struct tcpcb *tp, struct tcphdr *th);
57 void tcp_ledbat_ack_rcvd(struct tcpcb *tp, struct tcphdr *th);
60 void tcp_ledbat_post_fr(struct tcpcb *tp, struct tcphdr *th);
63 static int tcp_ledbat_delay_ack(struct tcpcb *tp, struct tcphdr *th);
194 tcp_ledbat_congestion_avd(struct tcpcb *tp, struct tcphdr *th) in tcp_ledbat_congestion_avd()
377 tcp_ledbat_ack_rcvd(struct tcpcb *tp, struct tcphdr *th) in tcp_ledbat_ack_rcvd()
459 tcp_ledbat_post_fr(struct tcpcb *tp, struct tcphdr *th) in tcp_ledbat_post_fr()
538 tcp_ledbat_delay_ack(struct tcpcb *tp, struct tcphdr *th) in tcp_ledbat_delay_ack()
H A Dtcpip.h74 struct tcphdr ti_t; /* tcp header */
82 struct tcphdr ti_t; /* tcp header */
H A Dtcp.h87 #define tcp6hdr tcphdr /* for KAME src sync over BSD*'s */
93 struct tcphdr { struct
214 #define TCP_MAXOLEN (TCP_MAXHLEN - sizeof(struct tcphdr))
H A Dtcp_subr.c593 #define TCP_MINPROTOHDR (sizeof(struct ip6_hdr) + sizeof(struct tcphdr)) in tcp_init()
659 struct tcphdr *tcp_hdr = (struct tcphdr *)tcp_ptr; in tcp_fillheaders()
669 ip6->ip6_plen = htons(sizeof(struct tcphdr)); in tcp_fillheaders()
681 htonl(sizeof(struct tcphdr) + IPPROTO_TCP)); in tcp_fillheaders()
697 htons(sizeof(struct tcphdr) + IPPROTO_TCP)); in tcp_fillheaders()
748 tcp_respond(struct tcpcb *tp, void *ipgen, struct tcphdr *th, struct mbuf *m, in tcp_respond()
756 struct tcphdr *nth; in tcp_respond()
807 nth = (struct tcphdr *)(void *)(ip6 + 1); in tcp_respond()
813 nth = (struct tcphdr *)(void *)(ip + 1); in tcp_respond()
815 bcopy((caddr_t)th, (caddr_t)nth, sizeof(struct tcphdr)); in tcp_respond()
[all …]
H A Dtcp_log.h89 extern void tcp_log_th_flags(void *hdr, struct tcphdr *th, struct tcpcb *tp, bool outgoing, struct …
92 extern void tcp_log_drop_pcb(void *hdr, struct tcphdr *th, struct tcpcb *tp, bool outgoing, const c…
93 extern void tcp_log_drop_pkt(void *hdr, struct tcphdr *th, struct ifnet *ifp, const char *reason);
H A Dtcp_var.h167 struct tcphdr *tqe_th; /* a pointer to tcp header */
208 struct tcphdr tt_t;
1670 void tcp_respond(struct tcpcb *, void *, struct tcphdr *, struct mbuf *,
1684 void tcp_trace(int, int, struct tcpcb *, void *, struct tcphdr *, int);
1687 void tcp_sack_doack(struct tcpcb *, struct tcpopt *, struct tcphdr *,
1690 struct tcphdr *);
1691 int tcp_detect_bad_rexmt(struct tcpcb *, struct tcphdr *, struct tcpopt *,
1697 void tcp_sack_partialack(struct tcpcb *, struct tcphdr *);
1703 uint8_t tcp_get_ace(struct tcphdr *th);
1745 extern int tcp_input_checksum(int, struct mbuf *, struct tcphdr *, int, int);
[all …]
H A Dtcp_ccdbg.c82 tcp_ccdbg_trace(struct tcpcb *tp, struct tcphdr *th, int32_t event) in tcp_ccdbg_trace()
146 struct tcpcb *, tp, struct tcphdr *, th, int32_t, event); in tcp_ccdbg_trace()
H A Dtcp_utils.h51 extern void tcp_ccdbg_trace(struct tcpcb *tp, struct tcphdr *th, int32_t event);
H A Dip_icmp.c264 struct tcphdr *th = NULL; in icmp_error()
272 if (oiphlen + sizeof(struct tcphdr) > n->m_len && in icmp_error()
281 if (n->m_len < (oiphlen + sizeof(struct tcphdr)) && in icmp_error()
282 (n = m_pullup(n, (oiphlen + sizeof(struct tcphdr)))) == NULL) { in icmp_error()
291 th = (struct tcphdr *)(void *)((caddr_t)oip + oiphlen); in icmp_error()
293 if (th != ((struct tcphdr *)P2ROUNDDOWN(th, in icmp_error()
301 if (tcphlen < sizeof(struct tcphdr)) { in icmp_error()
320 th = (struct tcphdr *)(void *)((caddr_t)oip + oiphlen); in icmp_error()
H A Dtcp_debug.h86 struct tcphdr th;
H A Dtcp_input.c128 struct tcphdr tcp_savetcp;
279 static void tcp_dooptions(struct tcpcb *, u_char *, int, struct tcphdr *,
283 struct tcphdr *, struct mbuf *, int);
304 static void tcp_bad_rexmt_restore_state(struct tcpcb *tp, struct tcphdr *th);
306 struct tcphdr *th);
308 struct tcphdr *th);
309 static void tcp_early_rexmt_check(struct tcpcb *tp, struct tcphdr *th);
310 static void tcp_bad_rexmt_check(struct tcpcb *tp, struct tcphdr *th,
337 static void tcp_newreno_partial_ack(struct tcpcb *tp, struct tcphdr *th);
561 tcp_reass(struct tcpcb *tp, struct tcphdr *th, int *tlenp, struct mbuf *m, in tcp_reass()
[all …]
H A Dmptcp_opt.h37 extern void tcp_do_mptcp_options(struct tcpcb *, u_char *, struct tcphdr *,
H A Dtcp_debug.c112 struct tcphdr *th;
205 len -= sizeof(struct tcphdr);
/xnu-8792.61.2/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_classifier.c94 volatile struct tcphdr *_tcph; in flow_pkt_classify()
139 (offsetof(struct tcphdr, th_dport) - in flow_pkt_classify()
140 offsetof(struct tcphdr, th_sport))); in flow_pkt_classify()
143 (offsetof(struct tcphdr, th_seq) - in flow_pkt_classify()
144 offsetof(struct tcphdr, th_sport))); in flow_pkt_classify()
147 (offsetof(struct tcphdr, th_ack) - in flow_pkt_classify()
148 offsetof(struct tcphdr, th_sport))); in flow_pkt_classify()
151 (offsetof(struct tcphdr, th_flags) - in flow_pkt_classify()
152 offsetof(struct tcphdr, th_sport))); in flow_pkt_classify()
155 (offsetof(struct tcphdr, th_win) - in flow_pkt_classify()
[all …]
H A Dflow_agg.c110 struct tcphdr tcp_m;
160 struct tcphdr tcp_m;
331 struct tcphdr *tcp = in mbuf_csum()
332 (struct tcphdr *)(void *)(mtod(m, uint8_t *) + in mbuf_csum()
963 (sizeof(struct tcphdr) + TCPOLEN_TSTAMP_APPA))) { in can_agg_fastpath()
1117 struct tcphdr *stcp = (struct tcphdr *)(void *)(sl3_hdr + sl3hlen); in can_agg_slowpath()
1118 struct tcphdr *tcp = (struct tcphdr *)pkt->pkt_flow_tcp_hdr; in can_agg_slowpath()
1144 uint8_t tcp_opts_len = pkt->pkt_flow_tcp_hlen - sizeof(struct tcphdr); in can_agg_slowpath()
1280 struct tcphdr *stcp, *tcp; in flow_agg_merge_hdr()
1356 stcp = (struct tcphdr *)(void *)(l3hdr + l3hlen); in flow_agg_merge_hdr()
[all …]
H A Dflow_track.c64 ASSERT(hlen >= (int)sizeof(struct tcphdr)); in flow_track_tcp_get_wscale()
66 opt = hdr + sizeof(struct tcphdr); in flow_track_tcp_get_wscale()
67 hlen -= sizeof(struct tcphdr); in flow_track_tcp_get_wscale()
743 struct tcphdr *th; in flow_track_abort_tcp()
754 tlen = sizeof(struct tcphdr); in flow_track_abort_tcp()
788 th = (struct tcphdr *)(void *)((char *)ip + sizeof(*ip)); in flow_track_abort_tcp()
803 th = (struct tcphdr *)(void *)((char *)ip6 + sizeof(*ip6)); in flow_track_abort_tcp()
/xnu-8792.61.2/tests/
H A Dicmp_fragmented_payload.c105 struct tcphdr *inner_tcp_hdr;
232 icmp4_pcb_set_payload(icmp4_pcb_t pcb, struct icmp *icmp_in, struct ip *ip_in, struct tcphdr *tcp_i… in icmp4_pcb_set_payload()
237 pcb->inner_tcp_hdr_len = sizeof(struct tcphdr); in icmp4_pcb_set_payload()
239 pcb->inner_tcp_hdr = (struct tcphdr*)(ptr + pcb->icmp_hdr_len + pcb->inner_ip_hdr_len); in icmp4_pcb_set_payload()
340 .ip_len = sizeof(struct ip) + sizeof(struct tcphdr),
345 struct tcphdr tcp_payload = {
/xnu-8792.61.2/bsd/net/
H A Dpacket_mangler.c692 struct tcphdr tcp; in pktmnglr_ipfilter_output()
763 struct tcphdr tcp; in pktmnglr_ipfilter_input()
905 if (off < sizeof(struct tcphdr) || off > ip_pld_len) { in pktmnglr_ipfilter_input()
910 tcp_optlen = off - sizeof(struct tcphdr); in pktmnglr_ipfilter_input()
916 …error = mbuf_copydata(*data, (size_t)offset + sizeof(struct tcphdr), orig_tcp_optlen, tcp_opt_buf); in pktmnglr_ipfilter_input()
997 (size_t)offset + sizeof(struct tcphdr), in pktmnglr_ipfilter_input()
1042 struct tcphdr *tcp; in chksm_update()
1058 tcp = (struct tcphdr *)(void *)(ptr + (ip->ip_hl << 2)); in chksm_update()
H A Dpf_osfp.c88 const struct tcphdr *tcp) in pf_osfp_fingerprint()
112 return pf_osfp_fingerprint_hdr(ip, ip6, (struct tcphdr *)(void *)hdr); in pf_osfp_fingerprint()
117 const struct tcphdr *tcp) in pf_osfp_fingerprint_hdr()
461 #define MTUOFF (sizeof (struct ip) + sizeof (struct tcphdr)) in pf_osfp_find()
H A Dif_ports_used.c1371 struct tcphdr th = {}; in if_ports_used_match_mbuf()
1372 error = mbuf_copydata(m, iphdr.ip_hl << 2, sizeof(struct tcphdr), &th); in if_ports_used_match_mbuf()
1381 if (pkt_data_len < sizeof(struct tcphdr) || in if_ports_used_match_mbuf()
1508 struct tcphdr th = {}; in if_ports_used_match_mbuf()
1510 error = mbuf_copydata(m, l3_len, sizeof(struct tcphdr), &th); in if_ports_used_match_mbuf()
1520 if (pkt_data_len < sizeof(struct tcphdr) || in if_ports_used_match_mbuf()
1776 struct tcphdr *tcp = (struct tcphdr *)pkt->pkt_flow_tcp_hdr; in if_ports_used_match_pkt()
/xnu-8792.61.2/bsd/skywalk/nexus/netif/
H A Dnx_netif_gso.c115 struct tcphdr *tcp;
415 state->tcp = (struct tcphdr *)(void *)((caddr_t)(state->hdr.ip) + in netif_gso_ipv4_tcp_update()
462 state->tcp = (struct tcphdr *)(void *)((caddr_t)(state->hdr.ip6) + in netif_gso_ipv6_tcp_update()
505 state->tcp = (struct tcphdr *)(void *)((caddr_t) in netif_gso_ip_tcp_init_state()
520 state->tcp = (struct tcphdr *)(void *)((caddr_t) in netif_gso_ip_tcp_init_state()
590 hlen = mac_hlen + ip_hlen + sizeof(struct tcphdr); in netif_gso_ipv4_tcp()
664 hlen = mac_hlen + ip_hlen + sizeof(struct tcphdr); in netif_gso_ipv6_tcp()
/xnu-8792.61.2/bsd/dev/dtrace/scripts/
H A Dtcp.d126 struct tcphdr *tcp_hdr; /* raw TCP header */
130 translator tcpinfo_t < struct tcphdr *T > {

12