| /xnu-8792.61.2/bsd/netinet/ |
| H A D | tcp_newreno.c | 80 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 D | tcp_cc.h | 197 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 D | tcp_cubic.c | 44 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 D | tcp_ledbat.c | 56 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 D | tcpip.h | 74 struct tcphdr ti_t; /* tcp header */ 82 struct tcphdr ti_t; /* tcp header */
|
| H A D | tcp.h | 87 #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 D | tcp_subr.c | 593 #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 D | tcp_log.h | 89 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 D | tcp_var.h | 167 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 D | tcp_ccdbg.c | 82 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 D | tcp_utils.h | 51 extern void tcp_ccdbg_trace(struct tcpcb *tp, struct tcphdr *th, int32_t event);
|
| H A D | ip_icmp.c | 264 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 D | tcp_debug.h | 86 struct tcphdr th;
|
| H A D | tcp_input.c | 128 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 D | mptcp_opt.h | 37 extern void tcp_do_mptcp_options(struct tcpcb *, u_char *, struct tcphdr *,
|
| H A D | tcp_debug.c | 112 struct tcphdr *th; 205 len -= sizeof(struct tcphdr);
|
| /xnu-8792.61.2/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_classifier.c | 94 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 D | flow_agg.c | 110 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 D | flow_track.c | 64 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 D | icmp_fragmented_payload.c | 105 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 D | packet_mangler.c | 692 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 D | pf_osfp.c | 88 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 D | if_ports_used.c | 1371 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 D | nx_netif_gso.c | 115 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 D | tcp.d | 126 struct tcphdr *tcp_hdr; /* raw TCP header */ 130 translator tcpinfo_t < struct tcphdr *T > {
|