| /xnu-11215.61.5/bsd/skywalk/nexus/netif/ ! |
| H A D | nx_netif_gso.c | 120 uint16_t mss; member 282 uint16_t mss = state->mss; in netif_gso_tcp_segment_mbuf() local 287 VERIFY((tx_headroom + state->hlen + mss) <= PP_BUF_SIZE_DEF(pp)); in netif_gso_tcp_segment_mbuf() 292 n_pkts = (uint32_t)(SK_ROUNDUP((total_len - state->hlen), mss) / mss); in netif_gso_tcp_segment_mbuf() 323 for (n = 1, off = state->hlen; off < total_len; off += mss, n++) { in netif_gso_tcp_segment_mbuf() 347 if (off + mss > total_len) { in netif_gso_tcp_segment_mbuf() 349 mss = (uint16_t)(total_len - off); in netif_gso_tcp_segment_mbuf() 352 partial = m_copydata_sum(m, off, mss, baddr, 0, NULL); in netif_gso_tcp_segment_mbuf() 354 m_copydata(m, off, mss, baddr); in netif_gso_tcp_segment_mbuf() 397 state->internal(state, partial, mss, &pkt->pkt_csum_flags); in netif_gso_tcp_segment_mbuf() [all …]
|
| /xnu-11215.61.5/bsd/netinet/ ! |
| H A D | tcp_input.c | 6134 u_short mss = 0; in tcp_dooptions() local 6164 bcopy((char *) cp + 2, (char *) &mss, sizeof(mss)); in tcp_dooptions() 6165 NTOHS(mss); in tcp_dooptions() 6166 to->to_mss = mss; in tcp_dooptions() 6841 int rtt, mss; in tcp_mss() local 6925 mss = (isipv6 ? tcp_maxmtu6(rt) : tcp_maxmtu(rt)); in tcp_mss() 6927 mss = tcp_get_effective_mtu(rt, mss); in tcp_mss() 6930 mss = necp_socket_get_effective_mtu(inp, mss); in tcp_mss() 6933 mss -= min_protoh; in tcp_mss() 6937 mss = min(mss, tcp_v6mssdflt); in tcp_mss() [all …]
|
| H A D | tcp_subr.c | 2883 int mss; in tcp_mtudisc() local 2928 mss = mtu - protoHdrOverhead; in tcp_mtudisc() 2931 mss = min(mss, tp->t_maxopd); in tcp_mtudisc() 2950 if (tp->t_maxopd <= mss) { in tcp_mtudisc() 2953 tp->t_maxopd = mss; in tcp_mtudisc() 2957 mss -= TCPOLEN_TSTAMP_APPA; in tcp_mtudisc() 2961 mss -= mptcp_adj_mss(tp, TRUE); in tcp_mtudisc() 2963 if (so->so_snd.sb_hiwat < mss) { in tcp_mtudisc() 2964 mss = so->so_snd.sb_hiwat; in tcp_mtudisc() 2967 tp->t_maxseg = mss; in tcp_mtudisc()
|
| H A D | tcp_output.c | 1829 u_short mss; in tcp_output() local 1833 mss = htons((u_short) tcp_mssopt(tp)); in tcp_output() 1834 (void)memcpy(opt + 2, &mss, sizeof(mss)); in tcp_output()
|
| /xnu-11215.61.5/bsd/skywalk/nexus/flowswitch/ ! |
| H A D | fsw_dp.c | 1118 uint16_t mss; in estimate_gso_pkts() local 1122 mss = pkt->pkt_proto_seg_sz; in estimate_gso_pkts() 1129 if (total_hlen != 0 && mss != 0) { in estimate_gso_pkts() 1132 (SK_ROUNDUP((total_len - total_hlen), mss) / mss); in estimate_gso_pkts() 1135 uint32_t, total_hlen, uint32_t, total_len, uint16_t, mss, in estimate_gso_pkts() 3656 uint16_t mss = pkt->pkt_proto_seg_sz, payload_sz; in do_gso() local 3676 if (mss == 0 || mss > (mtu - total_hlen)) { in do_gso() 3678 mss, mtu, total_hlen); in do_gso() 3680 fsw, ifnet_t, ifp, uint16_t, mss, uint16_t, mtu, in do_gso() 3685 if ((headroom + total_hlen + mss) > bufsz) { in do_gso() [all …]
|
| /xnu-11215.61.5/bsd/net/ ! |
| H A D | pfvar.h | 950 u_int16_t mss; /* Maximum segment size option */ member 1113 u_int16_t mss; /* Maximum segment size option */ member 1168 (d)->mss = (s)->mss; \ 1185 (d)->mss = ntohs((s)->mss); \
|
| H A D | pf.c | 2667 u_int8_t flags, u_int16_t win, u_int16_t mss, u_int8_t ttl, int tag, in pf_send_tcp() argument 2683 if (mss) { in pf_send_tcp() 2782 if (mss) { in pf_send_tcp() 2787 HTONS(mss); in pf_send_tcp() 2789 bcopy((caddr_t)&mss, (caddr_t)(opt + 2), 2); in pf_send_tcp() 4284 u_int16_t mss = tcp_mssdflt; in pf_get_mss() local 4303 bcopy((caddr_t)(opt + 2), (caddr_t)&mss, 2); in pf_get_mss() 4305 NTOHS(mss); in pf_get_mss() 4318 return mss; in pf_get_mss() 4332 u_int16_t mss = tcp_mssdflt; in pf_calc_mss() local [all …]
|
| H A D | if_bridge.c | 5180 int mss; 5216 mss = ifp->if_mtu - info.ip_hlen - info.ip_opt_len 5218 assert(mss > 0); 5223 (*mp)->m_pkthdr.tso_segsz = mss; 10679 m_seg(struct mbuf *m0, int hdr_len, int mss, char * hdr2_buf, int hdr2_len) 10692 if (total_len <= hdr_len + mss) { 10702 off = hdr_len + mss; 10703 firstlen = mss; /* first segment stored in the original mbuf */ 10705 for (n = 1; off < total_len; off += mss, n++) { 10735 if (off + mss >= total_len) { /* last segment */ [all …]
|
| H A D | pf_norm.c | 3257 u_int16_t *mss; in pf_normalize_tcpopt() local 3290 mss = (u_int16_t *)(void *)(optp + 2); in pf_normalize_tcpopt() 3291 if ((ntohs(*mss)) > r->max_mss) { in pf_normalize_tcpopt() 3300 *mss, htons(r->max_mss), 0); in pf_normalize_tcpopt() 3302 *mss = htons(r->max_mss); in pf_normalize_tcpopt()
|