Searched refs:mss (Results 1 – 8 of 8) sorted by relevance
| /xnu-8796.141.3/bsd/skywalk/nexus/netif/ |
| H A D | nx_netif_gso.c | 120 uint16_t mss; member 279 uint16_t mss = state->mss; in netif_gso_tcp_segment_mbuf() local 284 VERIFY((tx_headroom + state->hlen + mss) <= PP_BUF_SIZE_DEF(pp)); in netif_gso_tcp_segment_mbuf() 289 n_pkts = (uint32_t)(SK_ROUNDUP((total_len - state->hlen), mss) / mss); in netif_gso_tcp_segment_mbuf() 313 for (n = 1, off = state->hlen; off < total_len; off += mss, n++) { in netif_gso_tcp_segment_mbuf() 337 if (off + mss > total_len) { in netif_gso_tcp_segment_mbuf() 339 mss = (uint16_t)(total_len - off); in netif_gso_tcp_segment_mbuf() 341 partial = m_copydata_sum(m, off, mss, baddr, 0, NULL); in netif_gso_tcp_segment_mbuf() 381 state->internal(state, partial, mss); in netif_gso_tcp_segment_mbuf() 382 METADATA_ADJUST_LEN(pkt, state->hlen + mss, tx_headroom); in netif_gso_tcp_segment_mbuf() [all …]
|
| /xnu-8796.141.3/bsd/netinet/ |
| H A D | tcp_input.c | 5787 u_short mss = 0; in tcp_dooptions() local 5817 bcopy((char *) cp + 2, (char *) &mss, sizeof(mss)); in tcp_dooptions() 5818 NTOHS(mss); in tcp_dooptions() 5819 to->to_mss = mss; in tcp_dooptions() 6479 int rtt, mss; in tcp_mss() local 6566 mss = (isipv6 ? tcp_maxmtu6(rt) : tcp_maxmtu(rt)); in tcp_mss() 6570 mss = necp_socket_get_effective_mtu(inp, mss); in tcp_mss() 6573 mss -= min_protoh; in tcp_mss() 6578 mss = min(mss, tcp_v6mssdflt); in tcp_mss() 6581 mss = min(mss, tcp_mssdflt); in tcp_mss() [all …]
|
| H A D | tcp_subr.c | 2823 int mss; in tcp_mtudisc() local 2866 mss = mtu - protoHdrOverhead; in tcp_mtudisc() 2869 mss = min(mss, tp->t_maxopd); in tcp_mtudisc() 2888 if (tp->t_maxopd <= mss) { in tcp_mtudisc() 2891 tp->t_maxopd = mss; in tcp_mtudisc() 2895 mss -= TCPOLEN_TSTAMP_APPA; in tcp_mtudisc() 2899 mss -= mptcp_adj_mss(tp, TRUE); in tcp_mtudisc() 2901 if (so->so_snd.sb_hiwat < mss) { in tcp_mtudisc() 2902 mss = so->so_snd.sb_hiwat; in tcp_mtudisc() 2905 tp->t_maxseg = mss; in tcp_mtudisc()
|
| H A D | tcp_output.c | 1712 u_short mss; in tcp_output() local 1716 mss = htons((u_short) tcp_mssopt(tp)); in tcp_output() 1717 (void)memcpy(opt + 2, &mss, sizeof(mss)); in tcp_output()
|
| /xnu-8796.141.3/bsd/net/ |
| H A D | pfvar.h | 939 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 D | if_bridge.c | 4973 int mss; 5000 mss = ifp->if_mtu - info.ip_hlen - info.ip_opt_len 5002 assert(mss > 0); 5007 (*mp)->m_pkthdr.tso_segsz = mss; 9306 m_seg(struct mbuf *m0, int hdr_len, int mss, int *nsegs, 9316 if (total_len <= hdr_len + mss) { 9325 off = hdr_len + mss; 9326 firstlen = mss; /* first segment stored in the original mbuf */ 9330 for (n = 1; off < total_len; off += mss, n++) { 9360 if (off + mss >= total_len) { /* last segment */ [all …]
|
| H A D | pf.c | 2629 u_int8_t flags, u_int16_t win, u_int16_t mss, u_int8_t ttl, int tag, in pf_send_tcp() argument 2645 if (mss) { in pf_send_tcp() 2744 if (mss) { in pf_send_tcp() 2749 HTONS(mss); in pf_send_tcp() 2751 bcopy((caddr_t)&mss, (caddr_t)(opt + 2), 2); in pf_send_tcp() 4246 u_int16_t mss = tcp_mssdflt; in pf_get_mss() local 4265 bcopy((caddr_t)(opt + 2), (caddr_t)&mss, 2); in pf_get_mss() 4267 NTOHS(mss); in pf_get_mss() 4280 return mss; in pf_get_mss() 4294 u_int16_t mss = tcp_mssdflt; in pf_calc_mss() local [all …]
|
| H A D | pf_norm.c | 3259 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()
|