Home
last modified time | relevance | path

Searched refs:mss (Results 1 – 12 of 12) sorted by relevance

/xnu-12377.81.4/bsd/skywalk/nexus/netif/
H A Dnx_netif_gso.c120 uint16_t mss; member
275 uint16_t mss = state->mss; in netif_gso_tcp_segment_mbuf() local
280 VERIFY((tx_headroom + state->hlen + mss) <= PP_BUF_SIZE_DEF(pp)); in netif_gso_tcp_segment_mbuf()
285 n_pkts = (uint32_t)(SK_ROUNDUP((total_len - state->hlen), mss) / mss); in netif_gso_tcp_segment_mbuf()
316 for (n = 1, off = state->hlen; off < total_len; off += mss, n++) { in netif_gso_tcp_segment_mbuf()
340 if (off + mss > total_len) { in netif_gso_tcp_segment_mbuf()
342 mss = (uint16_t)(total_len - off); in netif_gso_tcp_segment_mbuf()
345 partial = m_copydata_sum(m, off, mss, baddr, 0, NULL); in netif_gso_tcp_segment_mbuf()
347 m_copydata(m, off, mss, baddr); in netif_gso_tcp_segment_mbuf()
390 state->internal(state, partial, mss, &pkt->pkt_csum_flags); in netif_gso_tcp_segment_mbuf()
[all …]
/xnu-12377.81.4/bsd/netinet/
H A Dtcp_syncookie.c324 uint16_t mss = 0; in syncookie_respond() local
341 mss = (uint16_t)IN6_LINKMTU(tpi->ifp); in syncookie_respond()
343 mss = (uint16_t)tpi->ifp->if_mtu; in syncookie_respond()
345 mss -= min_protoh; in syncookie_respond()
369 tpi->th->th_seq + 1, seq, win, flags, tpi->to, mss, rcv_scale, tpi->ts_offset, &tra, true); in syncookie_respond()
H A Dtcp_input.c6390 u_short mss = 0; in tcp_dooptions() local
6423 bcopy((char *) cp + 2, (char *) &mss, sizeof(mss)); in tcp_dooptions()
6424 NTOHS(mss); in tcp_dooptions()
6425 to->to_mss = mss; in tcp_dooptions()
7106 int mss; in tcp_mss() local
7190 mss = (isipv6 ? tcp_maxmtu6(rt) : tcp_maxmtu(rt)); in tcp_mss()
7192 mss = tcp_get_effective_mtu(rt, mss); in tcp_mss()
7195 mss = necp_socket_get_effective_mtu(inp, mss); in tcp_mss()
7198 mss -= min_protoh; in tcp_mss()
7202 mss = min(mss, tcp_v6mssdflt); in tcp_mss()
[all …]
H A Dtcp_subr.c863 tcp_filloptions(struct tcpopt *peer_to, uint16_t thflags, uint16_t mss, uint8_t rcv_scale, in tcp_filloptions() argument
872 to.to_mss = mss; in tcp_filloptions()
933 struct tcpopt *peer_to, uint16_t mss, uint8_t rcv_scale, uint32_t ts_offset, in tcp_respond() argument
1050 optlen = tcp_filloptions(peer_to, flags, mss, rcv_scale, ts_offset, optp); in tcp_respond()
3130 int mss; in tcp_mtudisc() local
3175 mss = mtu - protoHdrOverhead; in tcp_mtudisc()
3178 mss = min(mss, tp->t_maxopd); in tcp_mtudisc()
3197 if (tp->t_maxopd <= mss) { in tcp_mtudisc()
3200 tp->t_maxopd = mss; in tcp_mtudisc()
3204 mss -= TCPOLEN_TSTAMP_APPA; in tcp_mtudisc()
[all …]
H A Dtcp_output.c2133 u_short mss; in tcp_output() local
2137 mss = htons((u_short) tcp_mssopt(tp)); in tcp_output()
2138 (void)memcpy(opt + 2, &mss, sizeof(mss)); in tcp_output()
/xnu-12377.81.4/bsd/net/
H A Dif_bridge.c1474 int mss = 0; in _mbuf_get_tso_mss() local
1477 mss = m->m_pkthdr.tso_segsz; in _mbuf_get_tso_mss()
1479 return mss; in _mbuf_get_tso_mss()
5261 int mss = *mss_p;
5302 if (mss == 0) {
5310 if (mss == 0) {
5323 mss = len / seg_cnt;
5326 ifp->if_xname, mss, len, seg_cnt);
5327 if (mss <= 0) {
5329 mss = 0;
[all …]
H A Dpfvar.h950 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 Dpf.c2670 u_int8_t flags, u_int16_t win, u_int16_t mss, u_int8_t ttl, int tag, in pf_send_tcp() argument
2686 if (mss) { in pf_send_tcp()
2785 if (mss) { in pf_send_tcp()
2790 HTONS(mss); in pf_send_tcp()
2792 bcopy((caddr_t)&mss, (caddr_t)(opt + 2), 2); in pf_send_tcp()
4287 u_int16_t mss = tcp_mssdflt; in pf_get_mss() local
4306 bcopy((caddr_t)(opt + 2), (caddr_t)&mss, 2); in pf_get_mss()
4308 NTOHS(mss); in pf_get_mss()
4321 return mss; in pf_get_mss()
4335 u_int16_t mss = tcp_mssdflt; in pf_calc_mss() local
[all …]
H A Dpf_norm.c3260 u_int16_t *mss; in pf_normalize_tcpopt() local
3293 mss = (u_int16_t *)(void *)(optp + 2); in pf_normalize_tcpopt()
3294 if ((ntohs(*mss)) > r->max_mss) { in pf_normalize_tcpopt()
3303 *mss, htons(r->max_mss), 0); in pf_normalize_tcpopt()
3305 *mss = htons(r->max_mss); in pf_normalize_tcpopt()
/xnu-12377.81.4/bsd/skywalk/nexus/flowswitch/
H A Dfsw_dp.c1137 uint16_t mss; in estimate_gso_pkts() local
1141 mss = pkt->pkt_proto_seg_sz; in estimate_gso_pkts()
1148 if (total_hlen != 0 && mss != 0) { in estimate_gso_pkts()
1151 (SK_ROUNDUP((total_len - total_hlen), mss) / mss); in estimate_gso_pkts()
1154 uint32_t, total_hlen, uint32_t, total_len, uint16_t, mss, in estimate_gso_pkts()
3767 uint16_t mss = pkt->pkt_proto_seg_sz, payload_sz; in do_gso() local
3787 if (mss == 0 || mss > (mtu - total_hlen)) { in do_gso()
3789 mss, mtu, total_hlen); in do_gso()
3791 fsw, ifnet_t, ifp, uint16_t, mss, uint16_t, mtu, in do_gso()
3796 if ((headroom + total_hlen + mss) > bufsz) { in do_gso()
[all …]
/xnu-12377.81.4/bsd/kern/
H A Dkpi_mbuf.c923 u_int32_t *mss) in mbuf_get_tso_requested() argument
926 request == NULL || mss == NULL) { in mbuf_get_tso_requested()
933 *mss = mbuf->m_pkthdr.tx_seg_size; in mbuf_get_tso_requested()
/xnu-12377.81.4/bsd/sys/
H A Dkpi_mbuf.h1327 mbuf_tso_request_flags_t *request, u_int32_t *mss)