Searched refs:tcphdr (Results 1 - 25 of 32) sorted by relevance

12

/xnu-2782.1.97/bsd/netinet/
H A Dtcp_cc.h104 void (*congestion_avd) (struct tcpcb *tp, struct tcphdr *th);
107 void (*ack_rcvd) (struct tcpcb *tp, struct tcphdr *th);
113 void (*post_fr) (struct tcpcb *tp, struct tcphdr *th);
122 int (*delay_ack)(struct tcpcb *tp, struct tcphdr *th);
140 extern int tcp_cc_delay_ack(struct tcpcb *tp, struct tcphdr *th);
141 extern void tcp_ccdbg_trace(struct tcpcb *tp, struct tcphdr *th,
H A Dtcpip.h73 struct tcphdr ti_t; /* tcp header */
81 struct tcphdr ti_t; /* tcp header */
H A Dlro_ext.h53 int tcp_start_coalescing(struct ip *, struct tcphdr *, int tlen);
H A Dtcp_debug.h86 struct tcphdr th;
H A Dmptcp_opt.h44 extern int tcp_do_mptcp_options(struct tcpcb *, u_char *, struct tcphdr *,
H A Dtcp_lro.h40 struct tcphdr *lr_tcphdr; /* ptr to TCP hdr in frame */
H A Dtcp_newreno.c89 void tcp_newreno_congestion_avd(struct tcpcb *tp, struct tcphdr *th);
90 void tcp_newreno_ack_rcvd(struct tcpcb *tp, struct tcphdr *th);
92 void tcp_newreno_post_fr(struct tcpcb *tp, struct tcphdr *th);
95 int tcp_newreno_delay_ack(struct tcpcb *tp, struct tcphdr *th);
147 tcp_newreno_congestion_avd(struct tcpcb *tp, struct tcphdr *th) {
165 tcp_newreno_ack_rcvd(struct tcpcb *tp, struct tcphdr *th) {
239 tcp_newreno_post_fr(struct tcpcb *tp, struct tcphdr *th) {
324 tcp_newreno_delay_ack(struct tcpcb *tp, struct tcphdr *th) {
H A Dtcp_ledbat.c61 void tcp_ledbat_congestion_avd(struct tcpcb *tp, struct tcphdr *th);
62 void tcp_ledbat_ack_rcvd(struct tcpcb *tp, struct tcphdr *th);
64 void tcp_ledbat_post_fr(struct tcpcb *tp, struct tcphdr *th);
67 int tcp_ledbat_delay_ack(struct tcpcb *tp, struct tcphdr *th);
223 tcp_ledbat_congestion_avd(struct tcpcb *tp, struct tcphdr *th) {
241 tcp_ledbat_ack_rcvd(struct tcpcb *tp, struct tcphdr *th) {
304 tcp_ledbat_post_fr(struct tcpcb *tp, struct tcphdr *th) {
404 tcp_ledbat_delay_ack(struct tcpcb *tp, struct tcphdr *th) {
H A Dtcp_cubic.c59 static void tcp_cubic_congestion_avd(struct tcpcb *tp, struct tcphdr *th);
60 static void tcp_cubic_ack_rcvd(struct tcpcb *tp, struct tcphdr *th);
62 static void tcp_cubic_post_fr(struct tcpcb *tp, struct tcphdr *th);
64 static int tcp_cubic_delay_ack(struct tcpcb *tp, struct tcphdr *th);
67 static uint32_t tcp_cubic_tcpwin(struct tcpcb *tp, struct tcphdr *th);
248 tcp_cubic_tcpwin(struct tcpcb *tp, struct tcphdr *th)
270 tcp_cubic_congestion_avd(struct tcpcb *tp, struct tcphdr *th)
319 tcp_cubic_ack_rcvd(struct tcpcb *tp, struct tcphdr *th)
422 tcp_cubic_post_fr(struct tcpcb *tp, struct tcphdr *th)
464 tcp_cubic_delay_ack(struct tcpcb *tp, struct tcphdr *t
[all...]
H A Dtcp_lro.c97 struct tcphdr*);
98 static struct mbuf *tcp_lro_process_pkt(struct mbuf*, struct ip*, struct tcphdr*,
128 tcp_lro_matching_tuple(struct ip* ip_hdr, struct tcphdr *tcp_hdr, int *hash,
203 tcp_lro_init_flow(int flow_id, struct ip* ip_hdr, struct tcphdr *tcp_hdr,
223 tcp_lro_coalesce(int flow_id, struct mbuf *lro_mb, struct tcphdr *tcphdr, argument
291 flow->lr_tcphdr->th_win = tcphdr->th_win;
296 flow->lr_tcphdr = tcphdr;
308 flow->lr_seq = ntohl(tcphdr->th_seq) + payload_len;
342 struct tcphdr *tcp_hd
[all...]
H A Dtcp.h75 #define tcp6hdr tcphdr /* for KAME src sync over BSD*'s */
81 struct tcphdr { struct
190 #define TCP_MAXOLEN (TCP_MAXHLEN - sizeof(struct tcphdr))
H A Dtcp_subr.c456 #define TCP_MINPROTOHDR (sizeof(struct ip6_hdr) + sizeof(struct tcphdr))
519 struct tcphdr *tcp_hdr = (struct tcphdr *)tcp_ptr;
531 ip6->ip6_plen = sizeof(struct tcphdr);
535 htonl(sizeof (struct tcphdr) + IPPROTO_TCP));
552 htons(sizeof(struct tcphdr) + IPPROTO_TCP));
603 tcp_respond(struct tcpcb *tp, void *ipgen, struct tcphdr *th, struct mbuf *m,
611 struct tcphdr *nth;
663 nth = (struct tcphdr *)(void *)(ip6 + 1);
671 nth = (struct tcphdr *)(voi
[all...]
H A Dtcp_cc.c195 tcp_ccdbg_trace(struct tcpcb *tp, struct tcphdr *th, int32_t event)
255 struct tcpcb *, tp, struct tcphdr *, th, int32_t, event);
335 tcp_cc_delay_ack(struct tcpcb *tp, struct tcphdr *th)
H A Dtcp_input.c124 struct tcphdr tcp_savetcp;
281 static void tcp_dooptions(struct tcpcb *, u_char *, int, struct tcphdr *,
284 struct tcphdr *, struct mbuf *, int);
285 static int tcp_reass(struct tcpcb *, struct tcphdr *, int *, struct mbuf *,
311 static void tcp_bad_rexmt_restore_state(struct tcpcb *tp, struct tcphdr *th);
313 struct tcphdr *th);
314 static void tcp_early_rexmt_check(struct tcpcb *tp, struct tcphdr *th);
315 static void tcp_bad_rexmt_check(struct tcpcb *tp, struct tcphdr *th,
359 static void tcp_newreno_partial_ack(struct tcpcb *tp, struct tcphdr *th);
556 tcp_reass(struct tcpcb *tp, struct tcphdr *t
[all...]
H A Dtcp_debug.c114 struct tcphdr *th;
219 len -= sizeof (struct tcphdr);
H A Dtcp_var.h158 struct tcphdr *tqe_th; /* a pointer to tcp header */
183 struct tcphdr tt_t;
1252 void tcp_respond(struct tcpcb *, void *, struct tcphdr *, struct mbuf *,
1264 void tcp_trace(int, int, struct tcpcb *, void *, struct tcphdr *, int);
1266 void tcp_sack_doack(struct tcpcb *, struct tcpopt *, struct tcphdr *,
1268 int tcp_detect_bad_rexmt(struct tcpcb *, struct tcphdr *, struct tcpopt *,
1274 void tcp_sack_partialack(struct tcpcb *, struct tcphdr *);
1319 extern int tcp_input_checksum(int, struct mbuf *, struct tcphdr *, int, int);
H A Dip_fw2.c994 struct tcphdr *tcp = L3HDR(struct tcphdr,ip);
996 int x = (tcp->th_off << 2) - sizeof(struct tcphdr);
1236 struct tcphdr *const tcp = (struct tcphdr *)icmp;
1451 struct tcphdr *tcp)
1819 struct tcphdr *tcp;
1825 m->m_pkthdr.len = m->m_len = sizeof(struct ip) + sizeof(struct tcphdr);
1830 tcp = (struct tcphdr *)(ip + 1); /* no IP options */
1878 ip->ip_len = htons(sizeof(struct tcphdr));
[all...]
H A Dtcp_output.c245 static struct mbuf* tcp_send_lroacks(struct tcpcb *tp, struct mbuf *m, struct tcphdr *th);
287 struct tcphdr *th;
1149 hdrlen = sizeof (struct ip6_hdr) + sizeof (struct tcphdr);
1479 panic("tcphdr too big");
1679 th = (struct tcphdr *)(void *)(ip6 + 1);
1695 th = (struct tcphdr *)(void *)(ip + 1);
1749 th->th_off = (sizeof (struct tcphdr) + optlen) >> 2;
1822 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
1831 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
2099 struct ip6 *, ip6, struct tcpcb *, tp, struct tcphdr *,
[all...]
H A Dmptcp_opt.c1048 mptcp_do_mpcapable_opt(struct tcpcb *tp, u_char *cp, struct tcphdr *th,
1211 mptcp_do_mpjoin_opt(struct tcpcb *tp, u_char *cp, struct tcphdr *th, int optlen)
1712 mptcp_do_dss_opt(struct tcpcb *tp, u_char *cp, struct tcphdr *th, int optlen)
1742 mptcp_do_fastclose_opt(struct tcpcb *tp, u_char *cp, struct tcphdr *th)
1796 mptcp_do_mpfail_opt(struct tcpcb *tp, u_char *cp, struct tcphdr *th)
1836 tcp_do_mptcp_options(struct tcpcb *tp, u_char *cp, struct tcphdr *th,
1941 mptcp_do_mpprio_opt(struct tcpcb *tp, u_char *cp, struct tcphdr *th,
/xnu-2782.1.97/bsd/dev/dtrace/scripts/
H A Dtcp.d126 struct tcphdr *tcp_hdr; /* raw TCP header */
130 translator tcpinfo_t < struct tcphdr *T > {
/xnu-2782.1.97/bsd/netinet6/
H A Dip6_fw.c191 static int tcp6flg_match __P((struct tcphdr *tcp6, struct ip6_fw *f));
231 tcp6flg_match(struct tcphdr *tcp6, struct ip6_fw *f)
421 struct tcphdr *const tcp6 = (struct tcphdr *) ((caddr_t) ip6+ off);
675 struct tcphdr *tcp6;
694 tcp6 = (struct tcphdr *) ((caddr_t)ip6 + off);
838 struct tcphdr *const tcp =
839 (struct tcphdr *) ((caddr_t)ip6 + off);
842 struct tcphdr th;
879 tcp_respond(NULL, ip6, (struct tcphdr *)(ip
[all...]
/xnu-2782.1.97/bsd/net/
H A Dpacket_mangler.c760 struct tcphdr *tcp;
819 struct tcphdr tcp;
929 tcp_optlen = (tcp.th_off << 2)-sizeof(struct tcphdr);
934 error = mbuf_copydata(*data, offset+sizeof(struct tcphdr), orig_tcp_optlen, tcp_opt_buf);
968 offset+sizeof(struct tcphdr),
1004 struct tcphdr *tcp;
1018 tcp = (struct tcphdr *)(void *)(ptr + (ip->ip_hl << 2));
H A Dpf_osfp.c90 const struct tcphdr *tcp)
112 return (pf_osfp_fingerprint_hdr(ip, ip6, (struct tcphdr *)(void *)hdr));
117 const struct tcphdr *tcp)
452 #define MTUOFF (sizeof (struct ip) + sizeof (struct tcphdr))
H A Dpf_norm.c172 struct pf_pdesc *, struct mbuf *, struct tcphdr *, int, int *);
2100 struct tcphdr *th = pd->hdr.tcp;
2186 if (th->th_off < (sizeof (struct tcphdr) >> 2))
2244 struct tcphdr *th, struct pf_state_peer *src, struct pf_state_peer *dst)
2284 if (th->th_off > (sizeof (struct tcphdr) >> 2) && src->scrub &&
2288 opt = hdr + sizeof (struct tcphdr);
2289 hlen = (th->th_off << 2) - sizeof (struct tcphdr);
2339 u_short *reason, struct tcphdr *th, struct pf_state *state,
2382 if (th->th_off > (sizeof (struct tcphdr) >> 2) &&
2388 opt = hdr + sizeof (struct tcphdr);
[all...]
H A Dpktap.c854 struct tcphdr th;
857 sizeof(struct tcphdr), &th);
913 struct tcphdr th;
916 sizeof(struct tcphdr), &th);

Completed in 91 milliseconds

12