/dragonfly/usr.sbin/ppp/ |
H A D | tcpmss.c | 104 u_int16_t *mss; in MSSFixup() local 130 mss = (u_int16_t *)(opt + 2); in MSSFixup() 131 if (ntohs(*mss) > maxmss) { in MSSFixup() 133 ntohs(*mss), maxmss); in MSSFixup() 134 accumulate = *mss; in MSSFixup() 135 *mss = htons(maxmss); in MSSFixup() 136 accumulate -= *mss; in MSSFixup()
|
/dragonfly/sys/netgraph7/tcpmss/ |
H A D | ng_tcpmss.c | 415 uint16_t *mss; in correct_mss() local 432 mss = (uint16_t *)(opt + 2); in correct_mss() 433 if (ntohs(*mss) > maxmss) { in correct_mss() 434 accumulate = *mss; in correct_mss() 435 *mss = htons(maxmss); in correct_mss() 436 accumulate -= *mss; in correct_mss()
|
/dragonfly/sys/netinet/ |
H A D | tcp_input.c | 2958 int mss; in tcp_rmx_mss() local 3025 mss = ifp->if_mtu; in tcp_rmx_mss() 3027 mss -= min_protoh; in tcp_rmx_mss() 3028 mss = min(mss, offer); in tcp_rmx_mss() 3037 tp->t_maxopd = mss; in tcp_rmx_mss() 3044 if (mss > MCLBYTES) in tcp_rmx_mss() 3047 if (mss > MCLBYTES) in tcp_rmx_mss() 3048 mss = rounddown(mss, MCLBYTES); in tcp_rmx_mss() 3060 if (bufsize < mss) in tcp_rmx_mss() 3061 mss = bufsize; in tcp_rmx_mss() [all …]
|
H A D | tcp_subr.c | 1789 int maxopd, mss; in tcp_mtudisc() local 1854 mss = maxopd; in tcp_mtudisc() 1857 mss -= TCPOLEN_TSTAMP_APPA; in tcp_mtudisc() 1861 if (mss > MCLBYTES) in tcp_mtudisc() 1862 mss &= ~(MCLBYTES - 1); in tcp_mtudisc() 1864 if (mss > MCLBYTES) in tcp_mtudisc() 1865 mss = rounddown(mss, MCLBYTES); in tcp_mtudisc() 1868 if (so->so_snd.ssb_hiwat < mss) in tcp_mtudisc() 1869 mss = so->so_snd.ssb_hiwat; in tcp_mtudisc() 1871 tp->t_maxseg = mss; in tcp_mtudisc()
|
H A D | tcp_output.c | 722 u_short mss; in tcp_output() local 726 mss = htons((u_short) tcp_mssopt(tp)); in tcp_output() 727 memcpy(opt + 2, &mss, sizeof mss); in tcp_output()
|
/dragonfly/usr.sbin/pfctl/ |
H A D | pfctl_osfp.c | 96 int window, w_mod, ttl, df, psize, p_mod, mss, mss_mod, wscale, in pfctl_file_fingerprints() local 167 &optcnt, &mss, &mss_mod, &wscale, &wscale_mod, &ts0)) in pfctl_file_fingerprints() 223 fp.fp_mss = mss; in pfctl_file_fingerprints() 894 pf_tcpopts_t *packed, int *optcnt, int *mss, int *mss_mod, int *wscale, in get_tcpopts() argument 903 *mss = 0; in get_tcpopts() 925 this = mss; in get_tcpopts()
|
/dragonfly/sys/net/pf/ |
H A D | pf.c | 2146 if (mss) in pf_send_tcp() 2231 if (mss) { in pf_send_tcp() 2235 mss = htons(mss); in pf_send_tcp() 3574 return (mss); in pf_get_mss() 3621 mss = max(tcp_mssdflt, mss); in pf_calc_mss() 3624 mss = min(mss, offer); in pf_calc_mss() 3625 mss = max(mss, 64); /* sanity - at least max opt space */ in pf_calc_mss() 3626 return (mss); in pf_calc_mss() 4290 mss = pf_calc_mss(pd->src, pd->af, mss); in pf_create_state() 4291 mss = pf_calc_mss(pd->dst, pd->af, mss); in pf_create_state() [all …]
|
H A D | pfvar.h | 764 u_int16_t mss; /* Maximum segment size option */ member 885 u_int16_t mss; /* Maximum segment size option */ member 942 (d)->mss = htons((s)->mss); \ 959 (d)->mss = ntohs((s)->mss); \
|
H A D | pf_norm.c | 1911 u_int16_t *mss; in pf_normalize_tcpopt() local 1940 mss = (u_int16_t *)(optp + 2); in pf_normalize_tcpopt() 1941 if ((ntohs(*mss)) > r->max_mss) { in pf_normalize_tcpopt() 1943 *mss, htons(r->max_mss), 0); in pf_normalize_tcpopt() 1944 *mss = htons(r->max_mss); in pf_normalize_tcpopt()
|
/dragonfly/sys/dev/virtual/amazon/ena/ena-com/ |
H A D | ena_eth_com.c | 302 meta_desc->word2 |= (ena_meta->mss << in ena_com_create_and_store_tx_meta_desc() 306 meta_desc->len_ctrl |= ((ena_meta->mss >> 10) << in ena_com_create_and_store_tx_meta_desc()
|
H A D | ena_com.h | 130 u16 mss; member
|
/dragonfly/sys/dev/netif/ig_hal/ |
H A D | e1000_82575.h | 119 u32 mss:16; member
|
H A D | e1000_hw.h | 525 __le16 mss; /* Maximum segment size */ member
|
/dragonfly/sys/dev/netif/bge/ |
H A D | if_bge.c | 3512 uint16_t csum_flags = 0, mss = 0; in bge_encap() local 3519 error = bge_setup_tso(sc, m_head0, &mss, &csum_flags); in bge_encap() 3598 d->bge_mss = mss; in bge_encap() 5102 uint16_t flags, mss; in bge_setup_tso() local 5126 mss = m->m_pkthdr.tso_segsz; in bge_setup_tso() 5129 ip->ip_len = htons(mss + iphlen + thoff); in bge_setup_tso() 5133 mss |= (hlen << 11); in bge_setup_tso() 5135 *mss0 = mss; in bge_setup_tso()
|
/dragonfly/sys/dev/virtual/amazon/ena/ |
H A D | ena.c | 2645 u32 mss; in ena_tx_csum() local 2655 mss = mbuf->m_pkthdr.tso_segsz; in ena_tx_csum() 2657 if (mss != 0) in ena_tx_csum() 2725 ena_meta->mss = mss; in ena_tx_csum()
|
/dragonfly/sys/dev/netif/bnx/ |
H A D | if_bnx.c | 3384 uint16_t csum_flags = 0, vlan_tag = 0, mss = 0; in bnx_encap() local 3395 error = bnx_setup_tso(txr, m_head0, &mss, &csum_flags); in bnx_encap() 3490 d->bge_mss = mss; in bnx_encap() 5136 uint16_t flags, mss; in bnx_setup_tso() local 5160 mss = m->m_pkthdr.tso_segsz; in bnx_setup_tso() 5163 ip->ip_len = htons(mss + iphlen + thoff); in bnx_setup_tso() 5167 mss |= ((hlen & 0x3) << 14); in bnx_setup_tso() 5170 *mss0 = mss; in bnx_setup_tso()
|
/dragonfly/sys/dev/netif/em/ |
H A D | if_em.c | 4594 int mss, pktlen, curr_txd; in em_tso_setup() local 4599 mss = mp->m_pkthdr.tso_segsz; in em_tso_setup() 4606 adapter->csum_mss == mss && in em_tso_setup() 4651 TXD->tcp_seg_setup.fields.mss = htole16(mss); in em_tso_setup() 4665 adapter->csum_mss = mss; in em_tso_setup()
|
/dragonfly/sys/dev/netif/emx/ |
H A D | if_emx.c | 4386 int mss, pktlen, curr_txd; in emx_tso_setup() local 4395 mss = mp->m_pkthdr.tso_segsz; in emx_tso_setup() 4403 tdata->csum_mss == mss && in emx_tso_setup() 4451 TXD->tcp_seg_setup.fields.mss = htole16(mss); in emx_tso_setup() 4465 tdata->csum_mss = mss; in emx_tso_setup()
|
/dragonfly/sys/dev/netif/mxge/ |
H A D | if_mxge.c | 1678 uint16_t pseudo_hdr_offset, cksum_offset, mss; in mxge_encap_tso() local 1683 mss = m->m_pkthdr.tso_segsz; in mxge_encap_tso() 1702 pseudo_hdr_offset = htobe16(mss); in mxge_encap_tso() 1744 chop = (cum_len_next > mss); in mxge_encap_tso() 1745 cum_len_next = cum_len_next % mss; in mxge_encap_tso() 1757 small = (mss <= MXGEFW_SEND_SMALL_SIZE); in mxge_encap_tso()
|
/dragonfly/sys/dev/netif/jme/ |
H A D | if_jme.c | 1667 uint32_t cflags, flag64, mss; in jme_encap() local 1705 mss = 0; in jme_encap() 1709 mss = (uint32_t)m->m_pkthdr.tso_segsz << JME_TD_MSS_SHIFT; in jme_encap() 1737 desc->buflen = htole32(mss); in jme_encap() 1753 desc->buflen = htole32(mss | txsegs[0].ds_len); in jme_encap()
|
/dragonfly/sys/dev/netif/bce/ |
H A D | if_bce.c | 4841 uint16_t vlan_tag = 0, flags = 0, mss = 0; in bce_encap() local 4848 error = bce_tso_setup(txr, m_head, &flags, &mss); in bce_encap() 4905 txbd->tx_bd_mss_nbytes = htole32(mss << 16) | in bce_encap()
|
/dragonfly/contrib/dialog/ |
H A D | CHANGES | 2377 + add ru.po, from Michael Sobolev <mss@transas.com>
|