Home
last modified time | relevance | path

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

/xnu-8019.80.24/bsd/skywalk/nexus/netif/
H A Dnx_netif_gso.c120 uint16_t mss; member
254 uint16_t mss = state->mss; in netif_gso_tcp_segment_mbuf() local
259 VERIFY((tx_headroom + state->hlen + mss) <= pp->pp_buflet_size); in netif_gso_tcp_segment_mbuf()
264 n_pkts = (uint32_t)(SK_ROUNDUP((total_len - state->hlen), mss) / mss); in netif_gso_tcp_segment_mbuf()
288 for (n = 1, off = state->hlen; off < total_len; off += mss, n++) { in netif_gso_tcp_segment_mbuf()
312 if (off + mss > total_len) { in netif_gso_tcp_segment_mbuf()
314 mss = (uint16_t)(total_len - off); in netif_gso_tcp_segment_mbuf()
316 partial = m_copydata_sum(m, off, mss, baddr, 0, NULL); in netif_gso_tcp_segment_mbuf()
356 state->internal(state, partial, mss); in netif_gso_tcp_segment_mbuf()
357 METADATA_ADJUST_LEN(pkt, state->hlen + mss, tx_headroom); in netif_gso_tcp_segment_mbuf()
[all …]
/xnu-8019.80.24/bsd/netinet/
H A Dtcp_input.c5510 u_short mss = 0; in tcp_dooptions() local
5540 bcopy((char *) cp + 2, (char *) &mss, sizeof(mss)); in tcp_dooptions()
5541 NTOHS(mss); in tcp_dooptions()
5542 to->to_mss = mss; in tcp_dooptions()
6188 int rtt, mss; in tcp_mss() local
6275 mss = (isipv6 ? tcp_maxmtu6(rt) : tcp_maxmtu(rt)); in tcp_mss()
6279 mss = necp_socket_get_effective_mtu(inp, mss); in tcp_mss()
6282 mss -= min_protoh; in tcp_mss()
6287 mss = min(mss, tcp_v6mssdflt); in tcp_mss()
6290 mss = min(mss, tcp_mssdflt); in tcp_mss()
[all …]
H A Dtcp_subr.c2811 int mss; in tcp_mtudisc() local
2854 mss = mtu - protoHdrOverhead; in tcp_mtudisc()
2857 mss = min(mss, tp->t_maxopd); in tcp_mtudisc()
2876 if (tp->t_maxopd <= mss) { in tcp_mtudisc()
2879 tp->t_maxopd = mss; in tcp_mtudisc()
2883 mss -= TCPOLEN_TSTAMP_APPA; in tcp_mtudisc()
2887 mss -= mptcp_adj_mss(tp, TRUE); in tcp_mtudisc()
2889 if (so->so_snd.sb_hiwat < mss) { in tcp_mtudisc()
2890 mss = so->so_snd.sb_hiwat; in tcp_mtudisc()
2893 tp->t_maxseg = mss; in tcp_mtudisc()
H A Dtcp_output.c1618 u_short mss; in tcp_output() local
1622 mss = htons((u_short) tcp_mssopt(tp)); in tcp_output()
1623 (void)memcpy(opt + 2, &mss, sizeof(mss)); in tcp_output()
/xnu-8019.80.24/bsd/net/
H A Dpfvar.h939 u_int16_t mss; /* Maximum segment size option */ member
1102 u_int16_t mss; /* Maximum segment size option */ member
1157 (d)->mss = (s)->mss; \
1174 (d)->mss = ntohs((s)->mss); \
H A Dif_bridge.c4830 u_int mss;
4857 mss = ifp->if_mtu - info.ip_hlen - info.ip_opt_len
4863 (*mp)->m_pkthdr.tso_segsz = mss;
8985 m_seg(struct mbuf *m0, int hdr_len, int mss, int *nsegs,
8995 if (total_len <= hdr_len + mss) {
9004 off = hdr_len + mss;
9005 firstlen = mss; /* first segment stored in the original mbuf */
9009 for (n = 1; off < total_len; off += mss, n++) {
9039 if (off + mss >= total_len) { /* last segment */
9040 mss = total_len - off;
[all …]
H A Dpf.c2572 u_int8_t flags, u_int16_t win, u_int16_t mss, u_int8_t ttl, int tag, in pf_send_tcp() argument
2588 if (mss) { in pf_send_tcp()
2687 if (mss) { in pf_send_tcp()
2692 HTONS(mss); in pf_send_tcp()
2694 bcopy((caddr_t)&mss, (caddr_t)(opt + 2), 2); in pf_send_tcp()
4189 u_int16_t mss = tcp_mssdflt; in pf_get_mss() local
4208 bcopy((caddr_t)(opt + 2), (caddr_t)&mss, 2); in pf_get_mss()
4210 NTOHS(mss); in pf_get_mss()
4223 return mss; in pf_get_mss()
4237 u_int16_t mss = tcp_mssdflt; in pf_calc_mss() local
[all …]
H A Dpf_norm.c3259 u_int16_t *mss; in pf_normalize_tcpopt() local
3292 mss = (u_int16_t *)(void *)(optp + 2); in pf_normalize_tcpopt()
3293 if ((ntohs(*mss)) > r->max_mss) { in pf_normalize_tcpopt()
3302 *mss, htons(r->max_mss), 0); in pf_normalize_tcpopt()
3304 *mss = htons(r->max_mss); in pf_normalize_tcpopt()