HomeSort by: relevance | last modified time | path
    Searched defs:mss (Results 1 - 18 of 18) sorted by relevancy

  /src/sys/netinet6/
in6_offload.c 48 * size MSS, and return mbuf chain consists of them.
53 int mss; local in function:tcp6_segment
98 mss = m->m_pkthdr.segsz;
99 KASSERT(mss != 0);
109 KASSERT(len % mss == 0);
112 iph->ip6_plen = htons(thlen + mss);
113 phsum = in6_cksum_phdr(&iph->ip6_src, &iph->ip6_dst, htonl(thlen + mss),
116 for (nsegs = len / mss; nsegs > 0; nsegs--) {
126 t = m_split(m, mss, M_NOWAIT);
144 n->m_pkthdr.len = hlen + mss;
    [all...]
  /src/sys/net/npf/
npf_ext_normalize.c 79 /* Minimum IP TTL and maximum TCP MSS. */
81 np->n_maxmss = dnvlist_get_number(params, "max-mss", 0);
148 uint16_t cksum, mss, maxmss = np->n_maxmss; local in function:npf_normalize
166 * TCP Maximum Segment Size (MSS) "clamping". Only if SYN packet.
167 * Fetch MSS and check whether rewrite to lower is needed.
174 mss = 0;
175 if (!npf_fetch_tcpopts(npc, &mss, &wscale)) {
178 if (ntohs(mss) <= maxmss) {
185 * Store new MSS, calculate TCP checksum and update it. The MSS ma
    [all...]
  /src/sys/netinet/
in_offload.c 46 * size MSS, and return mbuf chain consists of them.
51 int mss; local in function:tcp4_segment
96 mss = m->m_pkthdr.segsz;
97 KASSERT(mss != 0);
107 KASSERT(len % mss == 0);
110 ip->ip_len = htons(iphlen + thlen + mss);
112 htons((uint16_t)(thlen + mss) + IPPROTO_TCP));
114 for (nsegs = len / mss; nsegs > 0; nsegs--) {
124 t = m_split(m, mss, M_NOWAIT);
142 n->m_pkthdr.len = hlen + mss;
    [all...]
tcp_input.c 3089 u_int16_t mss; local in function:tcp_dooptions
3122 memcpy(&mss, cp + 2, sizeof(mss));
3123 oi->maxseg = ntohs(mss);
tcp_subr.c 1654 * Compute the MSS to advertise to the peer. Called only during
1662 * header size from MSS advertisement. MSS option must hold the maximum
1670 u_long mss = 0; local in function:tcp_mss_to_advertise
1675 * we advertise the max MTU of all attached networks as our MSS,
1685 * MSS, as the loopback MTU is never included in in_maxmtu.
1694 mss = ifp->if_mtu;
1704 mss = uimax(in_maxmtu, mss);
1722 if (mss > hdrsiz
1747 int mss; local in function:tcp_mss_from_peer
    [all...]
  /src/sys/kern/
uipc_mbufdebug.c 891 uint16_t mss; local in function:m_examine_tcp
893 bcopy(op + 2, &mss, sizeof(mss));
894 (*pr)("TCP: OPTION: MSS = %d\n",
895 ntohs(mss));
  /src/dist/pf/sbin/pfctl/
pfctl_osfp.c 97 int window, w_mod, ttl, df, psize, p_mod, mss, mss_mod, wscale, local in function:pfctl_file_fingerprints
146 #define T_MSS 0x02 /* Allow MSS multiple */
168 &optcnt, &mss, &mss_mod, &wscale, &wscale_mod, &ts0))
224 fp.fp_mss = mss;
895 pf_tcpopts_t *packed, int *optcnt, int *mss, int *mss_mod, int *wscale,
904 *mss = 0;
926 this = mss;
  /src/sys/dev/
smbiosvar.h 61 uint16_t mss; /* Maximum Structure Size */ member in struct:smbhdr
  /src/sys/stand/efiboot/
smbios.h 56 uint16_t mss; /* Maximum Structure Size */ member in struct:smbhdr
  /src/sys/dist/pf/net/
pf_norm.c 1881 u_int16_t *mss; local in function:pf_normalize_tcpopt
1906 mss = (u_int16_t *)(optp + 2);
1907 if ((ntohs(*mss)) > r->max_mss) {
1909 *mss, htons(r->max_mss), 0);
1910 *mss = htons(r->max_mss);
pf.c 1653 u_int8_t flags, u_int16_t win, u_int16_t mss, u_int8_t ttl, int tag,
1672 if (mss)
1781 if (mss) {
1785 HTONS(mss);
1786 bcopy((void *)&mss, (void *)(opt + 2), 2);
2910 u_int16_t mss = tcp_mssdflt; local in function:pf_get_mss
2927 bcopy((void *)(opt + 2), (void *)&mss, 2);
2928 NTOHS(mss);
2939 return (mss);
2954 u_int16_t mss = tcp_mssdflt local in function:pf_calc_mss
3089 u_int16_t mss = tcp_mssdflt; local in function:pf_test_rule
    [all...]
pfvar.h 460 u_int16_t fp_mss; /* TCP MSS */
464 #define PF_OSFP_WSIZE_MSS 0x0004 /* Window multiple of MSS */
471 #define PF_OSFP_MSS 0x0200 /* TCP MSS */
472 #define PF_OSFP_MSS_MOD 0x0400 /* TCP MSS modulus */
473 #define PF_OSFP_MSS_DC 0x0800 /* TCP MSS dont-care */
500 u_int16_t fp_mss; /* TCP MSS */
699 u_int16_t mss; /* Maximum segment size option */ member in struct:pf_state_peer
801 u_int16_t mss; /* Maximum segment size option */ member in struct:pfsync_state_peer
845 (d)->mss = (s)->mss; \
    [all...]
  /src/sys/dev/pci/cxgb/
cxgb_adapter.h 173 uint16_t mss; member in struct:t3_lro_session
cxgb_t3_cpl.h 204 __be16 mss; member in struct:tcp_options
  /src/sys/external/bsd/ena-com/
ena_com.h 130 u16 mss; member in struct:ena_com_tx_meta
  /src/sys/dev/pci/
if_ena.c 2673 u32 mss; local in function:ena_tx_csum
2685 u32 mss = mbuf->m_pkthdr.tso_segsz;
2687 if (mss != 0)
2690 mss = mbuf->m_pkthdr.len; /* XXX don't have tso_segsz */
2758 ena_meta->mss = mss;
if_bge.c 5235 unsigned mss; local in function:bge_encap
5333 mss = m_head->m_pkthdr.segsz;
5362 maxsegsize = mss | tcp_seg_flags;
5363 ip->ip_len = htons(mss + ip_tcp_hlen);
  /src/sys/external/bsd/ipf/netinet/
ip_nat.c 5717 /* that is not strictly 'address' translation, such as clamping the MSS in */
5744 * Do a MSS CLAMPING on a SYN packet,
6392 /* maxmss(I) - value to clamp the TCP MSS to */
6396 /* Check for MSS option and clamp it if necessary. If found and changed, */
6398 /* the MSS. */
6405 u_32_t mss, sumd; local in function:ipf_nat_mssclamp
6431 mss = cp[2] * 256 + cp[3];
6432 if (mss > maxmss) {
6435 CALC_SUMD(mss, maxmss, sumd);

Completed in 81 milliseconds