| /xnu-11417.101.15/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-11417.101.15/bsd/netinet/ |
| H A D | tcp_input.c | 6195 u_short mss = 0; in tcp_dooptions() local 6228 bcopy((char *) cp + 2, (char *) &mss, sizeof(mss)); in tcp_dooptions() 6229 NTOHS(mss); in tcp_dooptions() 6230 to->to_mss = mss; in tcp_dooptions() 6908 int rtt, mss; in tcp_mss() local 6992 mss = (isipv6 ? tcp_maxmtu6(rt) : tcp_maxmtu(rt)); in tcp_mss() 6994 mss = tcp_get_effective_mtu(rt, mss); in tcp_mss() 6997 mss = necp_socket_get_effective_mtu(inp, mss); in tcp_mss() 7000 mss -= min_protoh; in tcp_mss() 7004 mss = min(mss, tcp_v6mssdflt); in tcp_mss() [all …]
|
| H A D | tcp_subr.c | 2891 int mss; in tcp_mtudisc() local 2936 mss = mtu - protoHdrOverhead; in tcp_mtudisc() 2939 mss = min(mss, tp->t_maxopd); in tcp_mtudisc() 2958 if (tp->t_maxopd <= mss) { in tcp_mtudisc() 2961 tp->t_maxopd = mss; in tcp_mtudisc() 2965 mss -= TCPOLEN_TSTAMP_APPA; in tcp_mtudisc() 2969 mss -= mptcp_adj_mss(tp, TRUE); in tcp_mtudisc() 2971 if (so->so_snd.sb_hiwat < mss) { in tcp_mtudisc() 2972 mss = so->so_snd.sb_hiwat; in tcp_mtudisc() 2975 tp->t_maxseg = mss; in tcp_mtudisc()
|
| H A D | tcp_output.c | 1871 u_short mss; in tcp_output() local 1875 mss = htons((u_short) tcp_mssopt(tp)); in tcp_output() 1876 (void)memcpy(opt + 2, &mss, sizeof(mss)); in tcp_output()
|
| /xnu-11417.101.15/bsd/net/ |
| H A D | if_bridge.c | 1462 int mss = 0; in _mbuf_get_tso_mss() local 1466 mss = m->m_pkthdr.tso_segsz; in _mbuf_get_tso_mss() 1468 return mss; in _mbuf_get_tso_mss() 5156 int mss = *mss_p; 5197 if (mss == 0) { 5207 if (mss == 0) { 5220 mss = len / seg_cnt; 5223 ifp->if_xname, mss, len, seg_cnt); 5225 mss = ifp->if_mtu - hdr_len 5228 assert(mss > 0); [all …]
|
| 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 | 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()
|
| /xnu-11417.101.15/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() 3672 uint16_t mss = pkt->pkt_proto_seg_sz, payload_sz; in do_gso() local 3692 if (mss == 0 || mss > (mtu - total_hlen)) { in do_gso() 3694 mss, mtu, total_hlen); in do_gso() 3696 fsw, ifnet_t, ifp, uint16_t, mss, uint16_t, mtu, in do_gso() 3701 if ((headroom + total_hlen + mss) > bufsz) { in do_gso() [all …]
|
| /xnu-11417.101.15/bsd/kern/ |
| H A D | kpi_mbuf.c | 912 u_int32_t *mss) in mbuf_get_tso_requested() argument 915 request == NULL || mss == NULL) { in mbuf_get_tso_requested() 922 *mss = mbuf->m_pkthdr.tx_seg_size; in mbuf_get_tso_requested()
|
| /xnu-11417.101.15/bsd/sys/ |
| H A D | kpi_mbuf.h | 1229 mbuf_tso_request_flags_t *request, u_int32_t *mss)
|