| /trueos/usr.sbin/ppp/ |
| HD | tcpmss.c | 73 #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()
|
| HD | slcompress.c | 165 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()
|
| /trueos/sys/netgraph/ |
| HD | ng_tcpmss.c | 79 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()
|
| /trueos/sys/netinet/ |
| HD | tcp_var.h | 53 struct tcphdr *tqe_th; /* a pointer to tcp header */ 81 struct tcphdr tt_t; 559 struct tcphdr *th; 677 char *tcp_log_addrs(struct in_conninfo *, struct tcphdr *, void *, 679 char *tcp_log_vain(struct in_conninfo *, struct tcphdr *, void *, 681 int tcp_reass(struct tcpcb *, struct tcphdr *, int *, struct mbuf *); 703 struct tcphdr *, struct mbuf *, tcp_seq, tcp_seq, int); 709 int tcp_twcheck(struct inpcb *, struct tcpopt *, struct tcphdr *, 715 struct tcphdr *, u_int); 724 void tcp_trace(short, short, struct tcpcb *, void *, struct tcphdr *, int); [all …]
|
| HD | toecore.h | 37 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 *);
|
| HD | tcp_syncache.h | 41 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 *);
|
| HD | tcp_subr.c | 231 static char * tcp_log_addr(struct in_conninfo *inc, struct tcphdr *th, 414 #define TCP_MINPROTOHDR (sizeof(struct ip6_hdr) + sizeof(struct tcphdr)) in tcp_init() 460 struct tcphdr *th = (struct tcphdr *)tcp_ptr; in tcpip_fillheaders() 474 ip6->ip6_plen = htons(sizeof(struct tcphdr)); in tcpip_fillheaders() 544 tcp_respond(struct tcpcb *tp, void *ipgen, struct tcphdr *th, struct mbuf *m, in tcp_respond() 550 struct tcphdr *nth; in tcp_respond() 591 nth = (struct tcphdr *)(ip6 + 1); in tcp_respond() 597 nth = (struct tcphdr *)(ip + 1); in tcp_respond() 599 bcopy((caddr_t)th, (caddr_t)nth, sizeof(struct tcphdr)); in tcp_respond() 615 nth = (struct tcphdr *)(ip6 + 1); in tcp_respond() [all …]
|
| HD | tcp_lro.c | 113 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()
|
| HD | tcp_timewait.c | 395 tcp_twcheck(struct inpcb *inp, struct tcpopt *to __unused, struct tcphdr *th, in tcp_twcheck() 550 struct tcphdr *th = NULL; in tcp_twrespond() 578 hdrlen = sizeof(struct ip6_hdr) + sizeof(struct tcphdr); in tcp_twrespond() 580 th = (struct tcphdr *)(ip6 + 1); in tcp_twrespond() 591 th = (struct tcphdr *)(ip + 1); in tcp_twrespond() 615 th->th_off = (sizeof(struct tcphdr) + optlen) >> 2; in tcp_twrespond() 619 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); in tcp_twrespond() 624 sizeof(struct tcphdr) + optlen, IPPROTO_TCP, 0); in tcp_twrespond() 637 htons(sizeof(struct tcphdr) + optlen + IPPROTO_TCP)); in tcp_twrespond()
|
| HD | tcp.h | 44 #define tcp6hdr tcphdr /* for KAME src sync over BSD*'s */ 50 struct tcphdr { struct 147 #define TCP_MAXOLEN (TCP_MAXHLEN - sizeof(struct tcphdr))
|
| HD | tcp_input.c | 223 static void tcp_do_segment(struct mbuf *, struct tcphdr *, 226 static void tcp_dropwithreset(struct mbuf *, struct tcphdr *, 229 struct tcphdr *, struct mbuf *, int); 231 static void tcp_newreno_partial_ack(struct tcpcb *, struct tcphdr *); 232 static void inline cc_ack_received(struct tcpcb *tp, struct tcphdr *th, 235 static void inline cc_post_recovery(struct tcpcb *tp, struct tcphdr *th); 237 struct tcphdr *th, struct tcpopt *to); 265 hhook_run_tcp_est_in(struct tcpcb *tp, struct tcphdr *th, struct tcpopt *to) in hhook_run_tcp_est_in() 283 cc_ack_received(struct tcpcb *tp, struct tcphdr *th, uint16_t type) in cc_ack_received() 386 cc_cong_signal(struct tcpcb *tp, struct tcphdr *th, uint32_t type) in cc_cong_signal() [all …]
|
| HD | tcp_syncache.c | 137 struct syncache *, struct tcphdr *, struct tcpopt *, 142 struct syncache *sc, struct tcphdr *th, struct tcpopt *to, 542 syncache_chkrst(struct in_conninfo *inc, struct tcphdr *th) in syncache_chkrst() 631 syncache_unreach(struct in_conninfo *inc, struct tcphdr *th) in syncache_unreach() 940 syncache_expand(struct in_conninfo *inc, struct tcpopt *to, struct tcphdr *th, in syncache_expand() 1105 syncache_add(struct in_conninfo *inc, struct tcpopt *to, struct tcphdr *th, in syncache_add() 1402 struct tcphdr *th = NULL; in syncache_respond() 1415 tlen = hlen + sizeof(struct tcphdr); in syncache_respond() 1450 th = (struct tcphdr *)(ip6 + 1); in syncache_respond() 1481 th = (struct tcphdr *)(ip + 1); in syncache_respond() [all …]
|
| HD | tcp_output.c | 128 struct tcphdr *th, struct tcpopt *to, 136 hhook_run_tcp_est_out(struct tcpcb *tp, struct tcphdr *th, in hhook_run_tcp_est_out() 177 struct tcphdr *th; in tcp_output() 696 hdrlen = sizeof (struct ip6_hdr) + sizeof (struct tcphdr); in tcp_output() 1020 th = (struct tcphdr *)(ip6 + 1); in tcp_output() 1027 th = (struct tcphdr *)(ip + 1); in tcp_output() 1109 th->th_off = (sizeof (struct tcphdr) + optlen) >> 2; in tcp_output() 1174 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); in tcp_output() 1182 th->th_sum = in6_cksum_pseudo(ip6, sizeof(struct tcphdr) + in tcp_output() 1193 htons(sizeof(struct tcphdr) + IPPROTO_TCP + len + optlen)); in tcp_output()
|
| /trueos/sys/netinet/libalias/ |
| HD | alias_skinny.c | 211 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()
|
| HD | alias_smedia.c | 241 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()
|
| HD | alias_pptp.c | 308 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()
|
| HD | alias_ftp.c | 231 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()
|
| HD | alias.c | 349 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 …]
|
| HD | alias_local.h | 389 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()
|
| HD | alias_util.c | 110 struct tcphdr *tc; in TcpChecksum() 117 tc = (struct tcphdr *)ip_next(pip); in TcpChecksum()
|
| /trueos/cddl/lib/libdtrace/ |
| HD | tcp.d | 142 struct tcphdr *tcp_hdr; /* raw TCP header */ 161 struct tcphdr *tcp_hdr; /* raw TCP header */ 208 translator tcpinfo_t < struct tcphdr *p > { 218 tcp_hdr = (struct tcphdr *)p; 227 translator tcpinfoh_t < struct tcphdr *p > { 237 tcp_hdr = (struct tcphdr *)p;
|
| /trueos/sys/net/ |
| HD | slcompress.c | 163 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];
|
| /trueos/sys/dev/sfxge/ |
| HD | sfxge_rx.c | 357 struct tcphdr *c_th; in sfxge_lro_deliver() 370 c_th = (struct tcphdr *)(iph + 1); in sfxge_lro_deliver() 376 c_th = (struct tcphdr *)(iph + 1); in sfxge_lro_deliver() 443 struct mbuf *mbuf, struct tcphdr *th) in sfxge_lro_merge() 445 struct tcphdr *c_th; in sfxge_lro_merge() 459 c_th = (struct tcphdr *)(iph + 1); in sfxge_lro_merge() 463 c_th = (struct tcphdr *)(iph + 1); in sfxge_lro_merge() 478 struct mbuf *mbuf, void *nh, struct tcphdr *th) in sfxge_lro_start() 509 struct tcphdr *th; in sfxge_lro_try_merge() 514 th = (struct tcphdr *)(iph + 1); in sfxge_lro_try_merge() [all …]
|
| /trueos/contrib/tcpdump/ |
| HD | print-tcp.c | 63 static int tcp_verify_signature(const struct ip *ip, const struct tcphdr *tp, 129 register const struct tcphdr *tp, in tcp_cksum() 140 register const struct tcphdr *tp; in tcp_print() 153 tp = (struct tcphdr *)bp; in tcp_print() 733 tcp_verify_signature(const struct ip *ip, const struct tcphdr *tp, in tcp_verify_signature() 736 struct tcphdr tp1; in tcp_verify_signature() 800 MD5_Update(&ctx, (char *)&tp1, sizeof(struct tcphdr)); in tcp_verify_signature()
|
| /trueos/sys/netpfil/ipfw/ |
| HD | ip_fw_dynamic.c | 309 struct tcphdr *tcp) in lookup_dyn_rule_locked() 449 struct tcphdr *tcp) in ipfw_lookup_dyn_rule() 812 struct tcphdr *th = NULL; in ipfw_send_pkt() 830 len = sizeof(struct ip) + sizeof(struct tcphdr); in ipfw_send_pkt() 834 len = sizeof(struct ip6_hdr) + sizeof(struct tcphdr); in ipfw_send_pkt() 856 h->ip_len = htons(sizeof(struct tcphdr)); in ipfw_send_pkt() 865 th = (struct tcphdr *)(h + 1); in ipfw_send_pkt() 873 h6->ip6_plen = htons(sizeof(struct tcphdr)); in ipfw_send_pkt() 882 th = (struct tcphdr *)(h6 + 1); in ipfw_send_pkt() 894 th->th_off = sizeof(struct tcphdr) >> 2; in ipfw_send_pkt() [all …]
|