Home
last modified time | relevance | path

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

12

/xnu-10063.141.1/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.c586 #define TCP_MINPROTOHDR (sizeof(struct ip6_hdr) + sizeof(struct tcphdr)) in tcp_init()
650 struct tcphdr *tcp_hdr = (struct tcphdr *)tcp_ptr; in tcp_fillheaders()
660 ip6->ip6_plen = htons(sizeof(struct tcphdr)); in tcp_fillheaders()
672 htonl(sizeof(struct tcphdr) + IPPROTO_TCP)); in tcp_fillheaders()
688 htons(sizeof(struct tcphdr) + IPPROTO_TCP)); in tcp_fillheaders()
739 tcp_respond(struct tcpcb *tp, void *ipgen, struct tcphdr *th, struct mbuf *m, in tcp_respond()
747 struct tcphdr *nth; in tcp_respond()
798 nth = (struct tcphdr *)(void *)(ip6 + 1); in tcp_respond()
804 nth = (struct tcphdr *)(void *)(ip + 1); in tcp_respond()
806 bcopy((caddr_t)th, (caddr_t)nth, sizeof(struct tcphdr)); in tcp_respond()
[all …]
H A Dtcp_log.h88 extern void tcp_log_th_flags(void *hdr, struct tcphdr *th, struct tcpcb *tp, bool outgoing, struct …
91 extern void tcp_log_drop_pcb(void *hdr, struct tcphdr *th, struct tcpcb *tp, bool outgoing, const c…
92 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;
1690 void tcp_respond(struct tcpcb *, void *, struct tcphdr *, struct mbuf *,
1704 void tcp_trace(int, int, struct tcpcb *, void *, struct tcphdr *, int);
1707 void tcp_sack_doack(struct tcpcb *, struct tcpopt *, struct tcphdr *,
1710 struct tcphdr *);
1711 int tcp_detect_bad_rexmt(struct tcpcb *, struct tcphdr *, struct tcpopt *,
1717 void tcp_sack_partialack(struct tcpcb *, struct tcphdr *);
1723 uint8_t tcp_get_ace(struct tcphdr *th);
1766 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.c265 struct tcphdr *th = NULL; in icmp_error()
273 if (oiphlen + sizeof(struct tcphdr) > n->m_len && in icmp_error()
282 if (n->m_len < (oiphlen + sizeof(struct tcphdr)) && in icmp_error()
283 (n = m_pullup(n, (oiphlen + sizeof(struct tcphdr)))) == NULL) { in icmp_error()
292 th = (struct tcphdr *)(void *)((caddr_t)oip + oiphlen); in icmp_error()
294 if (th != ((struct tcphdr *)P2ROUNDDOWN(th, in icmp_error()
302 if (tcphlen < sizeof(struct tcphdr)) { in icmp_error()
321 th = (struct tcphdr *)(void *)((caddr_t)oip + oiphlen); in icmp_error()
H A Dtcp_debug.h86 struct tcphdr th;
H A Dtcp_input.c125 struct tcphdr tcp_savetcp;
282 static void tcp_dooptions(struct tcpcb *, u_char *, int, struct tcphdr *,
286 struct tcphdr *, struct mbuf *, int);
307 static void tcp_bad_rexmt_restore_state(struct tcpcb *tp, struct tcphdr *th);
309 struct tcphdr *th);
311 struct tcphdr *th);
312 static void tcp_early_rexmt_check(struct tcpcb *tp, struct tcphdr *th);
313 static void tcp_bad_rexmt_check(struct tcpcb *tp, struct tcphdr *th,
340 static void tcp_newreno_partial_ack(struct tcpcb *tp, struct tcphdr *th);
564 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-10063.141.1/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()
960 (sizeof(struct tcphdr) + TCPOLEN_TSTAMP_APPA))) { in can_agg_fastpath()
1114 struct tcphdr *stcp = (struct tcphdr *)(void *)(sl3_hdr + sl3hlen); in can_agg_slowpath()
1115 struct tcphdr *tcp = (struct tcphdr *)pkt->pkt_flow_tcp_hdr; in can_agg_slowpath()
1141 uint8_t tcp_opts_len = pkt->pkt_flow_tcp_hlen - sizeof(struct tcphdr); in can_agg_slowpath()
1277 struct tcphdr *stcp, *tcp; in flow_agg_merge_hdr()
1353 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()
757 struct tcphdr *th; in flow_track_abort_tcp()
768 tlen = sizeof(struct tcphdr); in flow_track_abort_tcp()
802 th = (struct tcphdr *)(void *)((char *)ip + sizeof(*ip)); in flow_track_abort_tcp()
817 th = (struct tcphdr *)(void *)((char *)ip6 + sizeof(*ip6)); in flow_track_abort_tcp()
/xnu-10063.141.1/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 = {
H A Dnet_test_lib.h105 struct tcphdr tcp;
/xnu-10063.141.1/bsd/net/
H A Dpacket_mangler.c693 struct tcphdr tcp; in pktmnglr_ipfilter_output()
764 struct tcphdr tcp; in pktmnglr_ipfilter_input()
906 if (off < sizeof(struct tcphdr) || off > ip_pld_len) { in pktmnglr_ipfilter_input()
911 tcp_optlen = off - sizeof(struct tcphdr); in pktmnglr_ipfilter_input()
917 …error = mbuf_copydata(*data, (size_t)offset + sizeof(struct tcphdr), orig_tcp_optlen, tcp_opt_buf); in pktmnglr_ipfilter_input()
998 (size_t)offset + sizeof(struct tcphdr), in pktmnglr_ipfilter_input()
1043 struct tcphdr *tcp; in chksm_update()
1059 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()
/xnu-10063.141.1/bsd/skywalk/nexus/netif/
H A Dnx_netif_gso.c115 struct tcphdr *tcp;
423 state->tcp = (struct tcphdr *)(void *)((caddr_t)(state->hdr.ip) + in netif_gso_ipv4_tcp_update()
490 state->tcp = (struct tcphdr *)(void *)((caddr_t)(state->hdr.ip6) + in netif_gso_ipv6_tcp_update()
555 state->tcp = (struct tcphdr *)(void *)((caddr_t) in netif_gso_ip_tcp_init_state()
576 state->tcp = (struct tcphdr *)(void *)((caddr_t) in netif_gso_ip_tcp_init_state()
653 hlen = mac_hlen + ip_hlen + sizeof(struct tcphdr); in netif_gso_ipv4_tcp()
727 hlen = mac_hlen + ip_hlen + sizeof(struct tcphdr); in netif_gso_ipv6_tcp()
/xnu-10063.141.1/bsd/dev/dtrace/scripts/
H A Dtcp.d126 struct tcphdr *tcp_hdr; /* raw TCP header */
130 translator tcpinfo_t < struct tcphdr *T > {

12