Home
last modified time | relevance | path

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

12345

/NextBSD/sys/netinet/
HDtcp_var.h54 struct tcphdr *tqe_th; /* a pointer to tcp header */
87 struct tcphdr tt_t;
111 void (*tfb_tcp_do_segment)(struct mbuf *, struct tcphdr *,
625 struct tcphdr *th;
742 char *tcp_log_addrs(struct in_conninfo *, struct tcphdr *, void *,
744 char *tcp_log_vain(struct in_conninfo *, struct tcphdr *, void *,
746 int tcp_reass(struct tcpcb *, struct tcphdr *, int *, struct mbuf *);
750 void tcp_dropwithreset(struct mbuf *, struct tcphdr *,
753 struct tcphdr *, struct mbuf *, int);
755 void tcp_newreno_partial_ack(struct tcpcb *, struct tcphdr *);
[all …]
HDtoecore.h37 struct tcphdr;
124 void toe_syncache_add(struct in_conninfo *, struct tcpopt *, struct tcphdr *,
126 int toe_syncache_expand(struct in_conninfo *, struct tcpopt *, struct tcphdr *,
129 int toe_4tuple_check(struct in_conninfo *, struct tcphdr *, struct ifnet *);
HDtcp_syncache.h41 void syncache_unreach(struct in_conninfo *, struct tcphdr *);
43 struct tcphdr *, struct socket **, struct mbuf *);
45 struct tcphdr *, struct inpcb *, struct socket **, struct mbuf *,
47 void syncache_chkrst(struct in_conninfo *, struct tcphdr *);
HDtcp_lro.c113 tcp_lro_csum_th(struct tcphdr *th) in tcp_lro_csum_th()
135 tcp_lro_rx_csum_fixup(struct lro_entry *le, void *l3hdr, struct tcphdr *th, in tcp_lro_rx_csum_fixup()
220 struct tcphdr *th; in tcp_lro_flush()
232 th = (struct tcphdr *)(ip6 + 1); in tcp_lro_flush()
263 th = (struct tcphdr *)(ip4 + 1); in tcp_lro_flush()
311 struct tcphdr **th) in tcp_lro_rx_ipv6()
321 *th = (struct tcphdr *)(ip6 + 1); in tcp_lro_rx_ipv6()
330 struct tcphdr **th) in tcp_lro_rx_ipv4()
362 *th = (struct tcphdr *)(ip4 + 1); in tcp_lro_rx_ipv4()
379 struct tcphdr *th; in tcp_lro_rx()
HDtcp_subr.c242 static char * tcp_log_addr(struct in_conninfo *inc, struct tcphdr *th,
693 #define TCP_MINPROTOHDR (sizeof(struct ip6_hdr) + sizeof(struct tcphdr)) in tcp_init()
762 struct tcphdr *th = (struct tcphdr *)tcp_ptr; in tcpip_fillheaders()
776 ip6->ip6_plen = htons(sizeof(struct tcphdr)); in tcpip_fillheaders()
846 tcp_respond(struct tcpcb *tp, void *ipgen, struct tcphdr *th, struct mbuf *m, in tcp_respond()
852 struct tcphdr *nth; in tcp_respond()
893 nth = (struct tcphdr *)(ip6 + 1); in tcp_respond()
899 nth = (struct tcphdr *)(ip + 1); in tcp_respond()
901 bcopy((caddr_t)th, (caddr_t)nth, sizeof(struct tcphdr)); in tcp_respond()
917 nth = (struct tcphdr *)(ip6 + 1); in tcp_respond()
[all …]
HDtcp_timewait.c363 tcp_twcheck(struct inpcb *inp, struct tcpopt *to __unused, struct tcphdr *th, in tcp_twcheck()
518 struct tcphdr *th = NULL; in tcp_twrespond()
546 hdrlen = sizeof(struct ip6_hdr) + sizeof(struct tcphdr); in tcp_twrespond()
548 th = (struct tcphdr *)(ip6 + 1); in tcp_twrespond()
559 th = (struct tcphdr *)(ip + 1); in tcp_twrespond()
583 th->th_off = (sizeof(struct tcphdr) + optlen) >> 2; in tcp_twrespond()
587 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); in tcp_twrespond()
592 sizeof(struct tcphdr) + optlen, IPPROTO_TCP, 0); in tcp_twrespond()
605 htons(sizeof(struct tcphdr) + optlen + IPPROTO_TCP)); in tcp_twrespond()
HDtcp.h44 #define tcp6hdr tcphdr /* for KAME src sync over BSD*'s */
50 struct tcphdr { struct
151 #define TCP_MAXOLEN (TCP_MAXHLEN - sizeof(struct tcphdr))
HDin_rss.c174 const struct tcphdr *th; in rss_mbuf_software_hash_v4()
282 if (m->m_len < iphlen + sizeof(struct tcphdr)) { in rss_mbuf_software_hash_v4()
286 th = (const struct tcphdr *)((c_caddr_t)ip + iphlen); in rss_mbuf_software_hash_v4()
/NextBSD/usr.sbin/ppp/
HDtcpmss.c73 #define MAXMSS(mtu) ((mtu) - sizeof(struct ip) - sizeof(struct tcphdr) - 12)
99 MSSFixup(struct tcphdr *tc, size_t pktlen, u_int16_t maxmss) in MSSFixup()
109 if (hlen <= sizeof(struct tcphdr) || hlen > pktlen) in MSSFixup()
116 for (olen = hlen - sizeof(struct tcphdr), opt = (u_char *)(tc + 1); in MSSFixup()
163 plen >= sizeof(struct tcphdr) + hlen) in tcpmss_Check()
164 MSSFixup((struct tcphdr *)(MBUF_CTOP(bp) + hlen), plen - hlen, in tcpmss_Check()
HDslcompress.c165 register struct tcphdr *oth; in sl_compress_tcp()
166 register struct tcphdr *th; in sl_compress_tcp()
183 th = (struct tcphdr *) & ((int *) ip)[hlen]; in sl_compress_tcp()
265 oth = (struct tcphdr *) & ((int *) &cs->cs_ip)[hlen]; in sl_compress_tcp()
435 register struct tcphdr *th; in sl_uncompress_tcp()
455 if ((int)(hlen + sizeof(struct tcphdr)) > len) in sl_uncompress_tcp()
457 th = (struct tcphdr *) & ((char *) ip)[hlen]; in sl_uncompress_tcp()
502 th = (struct tcphdr *) & ((u_char *) & cs->cs_ip)[hlen]; in sl_uncompress_tcp()
/NextBSD/sys/netgraph/
HDng_tcpmss.c79 static int correct_mss(struct tcphdr *, int, uint16_t, int);
271 struct tcphdr *tcp; in ng_tcpmss_rcvdata()
318 M_CHECK(iphlen - sizeof(struct ip) + sizeof(struct tcphdr)); in ng_tcpmss_rcvdata()
320 tcp = (struct tcphdr *)((caddr_t )ip + iphlen); in ng_tcpmss_rcvdata()
324 if (tcphlen < sizeof(struct tcphdr) || tcphlen > pktlen - iphlen) in ng_tcpmss_rcvdata()
328 if (!(tcp->th_flags & TH_SYN) || tcphlen == sizeof(struct tcphdr)) in ng_tcpmss_rcvdata()
334 M_CHECK(tcphlen - sizeof(struct tcphdr)); in ng_tcpmss_rcvdata()
336 tcp = (struct tcphdr *)((caddr_t )ip + iphlen); in ng_tcpmss_rcvdata()
410 correct_mss(struct tcphdr *tc, int hlen, uint16_t maxmss, int flags) in correct_mss()
418 for (olen = hlen - sizeof(struct tcphdr), opt = (u_char *)(tc + 1); in correct_mss()
/NextBSD/sys/netinet/libalias/
HDalias_skinny.c211 struct tcphdr *tc, struct alias_link *lnk, in alias_skinny_reg_msg()
230 struct ip *pip, struct tcphdr *tc, in alias_skinny_startmedia()
254 struct tcphdr *tc, struct alias_link *lnk, in alias_skinny_port_msg()
272 struct ip *pip, struct tcphdr *tc, in alias_skinny_opnrcvch_ack()
306 struct tcphdr *tc; in AliasHandleSkinny()
313 tc = (struct tcphdr *)ip_next(pip); in AliasHandleSkinny()
HDalias_smedia.c241 struct tcphdr *tc; in alias_rtsp_out()
253 tc = (struct tcphdr *)ip_next(pip); in alias_rtsp_out()
407 tc = (struct tcphdr *)ip_next(pip); in alias_rtsp_out()
440 struct tcphdr *tc; in alias_pna_out()
462 tc = (struct tcphdr *)ip_next(pip); in alias_pna_out()
485 struct tcphdr *tc; in AliasHandleRtspOut()
494 tc = (struct tcphdr *)ip_next(pip); in AliasHandleRtspOut()
HDalias_pptp.c308 struct tcphdr *tc; in AliasHandlePptpOut()
348 tc = (struct tcphdr *)ip_next(pip); in AliasHandlePptpOut()
380 struct tcphdr *tc; in AliasHandlePptpIn()
420 tc = (struct tcphdr *)ip_next(pip); in AliasHandlePptpIn()
442 struct tcphdr *tc; in AliasVerifyPptp()
445 tc = (struct tcphdr *)ip_next(pip); in AliasVerifyPptp()
HDalias_ftp.c231 struct tcphdr *tc; in AliasHandleFtpOut()
235 tc = (struct tcphdr *)ip_next(pip); in AliasHandleFtpOut()
296 struct tcphdr *tc; in AliasHandleFtpIn()
299 tc = (struct tcphdr *)ip_next(pip); in AliasHandleFtpIn()
667 struct tcphdr *tc; in NewFtpMessage()
675 tc = (struct tcphdr *)ip_next(pip); in NewFtpMessage()
745 tc = (struct tcphdr *)ip_next(pip); in NewFtpMessage()
HDalias.c349 struct tcphdr *tc; in IcmpAliasIn2()
356 tc = (struct tcphdr *)ip_next(ip); in IcmpAliasIn2()
530 struct tcphdr *tc; in IcmpAliasOut2()
538 tc = (struct tcphdr *)ip_next(ip); in IcmpAliasOut2()
918 struct tcphdr *tc; in TcpAliasIn()
922 tc = (struct tcphdr *)ip_next(pip); in TcpAliasIn()
1004 tc = (struct tcphdr *)ip_next(pip); in TcpAliasIn()
1029 tc = (struct tcphdr *)ip_next(pip); in TcpAliasIn()
1045 struct tcphdr *tc; in TcpAliasOut()
1049 tc = (struct tcphdr *)ip_next(pip); in TcpAliasOut()
[all …]
HDalias_local.h389 tcp_next(struct tcphdr *tcphdr) in tcp_next() argument
391 char *p = (char *)tcphdr; in tcp_next()
392 return (&p[tcphdr->th_off * 4]); in tcp_next()
/NextBSD/sys/net/
HDslcompress.c163 register struct tcphdr *oth;
164 register struct tcphdr *th;
179 th = (struct tcphdr *)&((int32_t *)ip)[hlen];
258 oth = (struct tcphdr *)&((int32_t *)&cs->cs_ip)[hlen];
473 register struct tcphdr *th;
493 if (hlen + sizeof(struct tcphdr) > buflen)
495 hlen += ((struct tcphdr *)&((char *)ip)[hlen])->th_off << 2;
534 th = (struct tcphdr *)&((u_char *)&cs->cs_ip)[hlen];
/NextBSD/sys/dev/mlx5/mlx5_en/
HDtcp_tlro.h35 struct tcphdr;
46 struct tcphdr *tcp;
/NextBSD/sys/dev/sfxge/
HDsfxge_rx.c383 struct tcphdr *c_th; in sfxge_lro_deliver()
396 c_th = (struct tcphdr *)(iph + 1); in sfxge_lro_deliver()
402 c_th = (struct tcphdr *)(iph + 1); in sfxge_lro_deliver()
471 struct mbuf *mbuf, struct tcphdr *th) in sfxge_lro_merge()
473 struct tcphdr *c_th; in sfxge_lro_merge()
487 c_th = (struct tcphdr *)(iph + 1); in sfxge_lro_merge()
491 c_th = (struct tcphdr *)(iph + 1); in sfxge_lro_merge()
506 struct mbuf *mbuf, void *nh, struct tcphdr *th) in sfxge_lro_start()
537 struct tcphdr *th; in sfxge_lro_try_merge()
542 th = (struct tcphdr *)(iph + 1); in sfxge_lro_try_merge()
[all …]
/NextBSD/cddl/lib/libdtrace/
HDtcp.d148 struct tcphdr *tcp_hdr; /* raw TCP header */
167 struct tcphdr *tcp_hdr; /* raw TCP header */
220 translator tcpinfo_t < struct tcphdr *p > {
230 tcp_hdr = (struct tcphdr *)p;
239 translator tcpinfoh_t < struct tcphdr *p > {
249 tcp_hdr = (struct tcphdr *)p;
/NextBSD/sys/netinet6/
HDin6_rss.c176 const struct tcphdr *th; in rss_mbuf_software_hash_v6()
304 if (m->m_len < off + sizeof(struct tcphdr)) { in rss_mbuf_software_hash_v6()
308 th = (const struct tcphdr *)((c_caddr_t)ip6 + off); in rss_mbuf_software_hash_v6()
/NextBSD/sys/dev/ixl/
HDixl_txrx.c284 struct tcphdr *th = NULL; in ixl_tx_setup_offload()
322 th = (struct tcphdr *)((caddr_t)ip + ip_hlen); in ixl_tx_setup_offload()
335 th = (struct tcphdr *)((caddr_t)ip6 + ip_hlen); in ixl_tx_setup_offload()
403 struct tcphdr *th; in ixl_tso_setup()
427 th = (struct tcphdr *)((caddr_t)ip6 + ip_hlen); in ixl_tso_setup()
439 th = (struct tcphdr *)((caddr_t)ip + ip_hlen); in ixl_tso_setup()
452 if (mp->m_len < elen + ip_hlen + sizeof(struct tcphdr)) in ixl_tso_setup()
/NextBSD/sys/netpfil/pf/
HDpf_norm.c132 struct tcphdr *, int, sa_family_t);
1134 struct tcphdr *th = pd->hdr.tcp; in pf_normalize_tcp()
1206 if (th->th_off < (sizeof(struct tcphdr) >> 2)) in pf_normalize_tcp()
1250 struct tcphdr *th, struct pf_state_peer *src, struct pf_state_peer *dst) in pf_normalize_tcp_init()
1289 if (th->th_off > (sizeof(struct tcphdr) >> 2) && src->scrub && in pf_normalize_tcp_init()
1293 opt = hdr + sizeof(struct tcphdr); in pf_normalize_tcp_init()
1294 hlen = (th->th_off << 2) - sizeof(struct tcphdr); in pf_normalize_tcp_init()
1344 u_short *reason, struct tcphdr *th, struct pf_state *state, in pf_normalize_tcp_stateful()
1388 if (th->th_off > (sizeof(struct tcphdr) >> 2) && in pf_normalize_tcp_stateful()
1394 opt = hdr + sizeof(struct tcphdr); in pf_normalize_tcp_stateful()
[all …]
/NextBSD/sys/netpfil/ipfw/
HDip_fw_dynamic.c327 struct tcphdr *tcp) in lookup_dyn_rule_locked()
467 struct tcphdr *tcp) in ipfw_lookup_dyn_rule()
835 struct tcphdr *th = NULL; in ipfw_send_pkt()
853 len = sizeof(struct ip) + sizeof(struct tcphdr); in ipfw_send_pkt()
857 len = sizeof(struct ip6_hdr) + sizeof(struct tcphdr); in ipfw_send_pkt()
879 h->ip_len = htons(sizeof(struct tcphdr)); in ipfw_send_pkt()
888 th = (struct tcphdr *)(h + 1); in ipfw_send_pkt()
896 h6->ip6_plen = htons(sizeof(struct tcphdr)); in ipfw_send_pkt()
905 th = (struct tcphdr *)(h6 + 1); in ipfw_send_pkt()
917 th->th_off = sizeof(struct tcphdr) >> 2; in ipfw_send_pkt()
[all …]

12345