Searched refs:MHLEN (Results 1 - 25 of 57) sorted by relevance

123

/freebsd-current/sys/netipsec/
H A Dipsec_mbuf.c60 IPSEC_ASSERT(hlen < MHLEN, ("hlen too big: %u", hlen));
98 if (todo > MHLEN) {
104 len = MHLEN;
/freebsd-current/sys/kern/
H A Duipc_mbuf.c139 MPASS(max_hdr <= MHLEN);
186 CTASSERT(MSIZE - offsetof(struct mbuf, m_pktdat) == MHLEN);
747 nsize = MHLEN;
950 if (len > MHLEN)
994 if (len > (MHLEN - dstoff))
1078 if (remain > MHLEN) {
1193 if (off < 0 || off > MHLEN)
1203 len = MHLEN;
1206 if (m && totlen + off + max_linkhdr <= MHLEN) {
1583 if (m0->m_pkthdr.len > MHLEN)
[all...]
/freebsd-current/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_rx.c566 if ((MHLEN - MLX5E_NET_IP_ALIGN) >= byte_cnt &&
569 mb->m_len = MHLEN - MLX5E_NET_IP_ALIGN;
621 #if (MHLEN < 15)
622 #error "MHLEN is too small"
/freebsd-current/sys/netgraph/
H A Dng_checksum.c294 (pullup_len > MHLEN)) { \
553 (pullup_len > MHLEN)) { \
H A Dng_bpf.c443 if (m->m_next != NULL && totlen > MHLEN) {
H A Dng_tty.c56 * buffered up until either the hotchar is seen or the mbuf is full (MHLEN
494 if (sc->hotchar == -1 || c == sc->hotchar || m->m_len >= MHLEN) {
H A Dng_vjc.c484 if (hlen > MHLEN) { /* unlikely, but can happen */
H A Dng_patch.c564 (pullup_len > MHLEN)) { \
H A Dng_lmi.c568 if ((packetlen > MHLEN) && !(m->m_flags & M_EXT)) {
/freebsd-current/sys/rpc/rpcsec_gss/
H A Drpcsec_gss_prot.c259 KASSERT(cklen <= MHLEN, ("unexpected large GSS-API checksum"));
/freebsd-current/sys/netpfil/pf/
H A Dif_pflog.c80 #define PFLOGMTU (32768 + MHLEN + MLEN)
/freebsd-current/sys/netinet/
H A Dtcp_output.c1003 if (max_linkhdr + hdrlen > MHLEN)
1058 if (MHLEN < hdrlen + max_linkhdr)
1079 if (len <= MHLEN - hdrlen - max_linkhdr && !hw_tls) {
1139 if (isipv6 && (MHLEN < hdrlen + max_linkhdr) &&
1140 MHLEN >= hdrlen) {
/freebsd-current/sys/netpfil/ipfilter/netinet/
H A Dip_fil_freebsd.c523 avail = MHLEN;
1216 #ifdef MHLEN
1217 if (len > MHLEN)
/freebsd-current/sys/sys/
H A Dmbuf.h86 * MHLEN is data length in an mbuf with pktheader.
96 #define MHLEN ((int)(MSIZE - MPKTHSIZE)) macro
97 #define MINCLSIZE (MHLEN + 1)
358 * to MHLEN (space left after a packet header) and MLEN (space left
1193 ((m)->m_flags & M_PKTHDR) ? MHLEN : \
/freebsd-current/sys/arm/allwinner/
H A Dif_emac.c412 if (m->m_len <= (MHLEN - ETHER_HDR_LEN)) {
416 m->m_len > (MHLEN - ETHER_HDR_LEN)) {
/freebsd-current/sys/netinet6/
H A Dicmp6.c572 CTASSERT(sizeof(*nip6) + sizeof(*nicmp6) <= MHLEN);
702 CTASSERT(sizeof(*nip6) + sizeof(*nicmp6) + 4 <= MHLEN);
1437 if (replylen > MHLEN)
1978 m->m_len <= MHLEN) {
2046 if (sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr) > MHLEN)
2423 * (MHLEN < IPV6_MMTU is almost always true)
H A Dnd6_nbr.c434 if (max_linkhdr + maxlen > MHLEN)
1000 if (max_linkhdr + maxlen > MHLEN)
/freebsd-current/sys/dev/le/
H A Dlance.c393 len = MHLEN;
/freebsd-current/sys/dev/xen/netback/
H A Dnetback_unit_tests.c1483 size_t size1 = MHLEN - 5;
1484 size_t size2 = MHLEN - 15;
1954 size_t size1 = MHLEN - 5;
1955 size_t size2 = MHLEN - 15;
/freebsd-current/sys/rpc/
H A Dclnt_bck.c248 KASSERT(ct->ct_mpos + sizeof(uint32_t) <= MHLEN,
/freebsd-current/sys/dev/ti/
H A Dif_ti.c1239 BUS_SPACE_MAXADDR, BUS_SPACE_MAXADDR, NULL, NULL, MHLEN, 1,
1240 MHLEN, 0, NULL, NULL, &sc->ti_cdata.ti_rx_mini_tag);
1454 m->m_len = m->m_pkthdr.len = MHLEN;
1649 m_new->m_len = MHLEN - ETHER_ALIGN;
2259 rcb->ti_max_len = MHLEN - ETHER_ALIGN;
2699 r->ti_len = MHLEN - ETHER_ALIGN;
/freebsd-current/sys/dev/et/
H A Dif_et.c946 BUS_SPACE_MAXADDR, BUS_SPACE_MAXADDR, NULL, NULL, MHLEN, 1,
947 MHLEN, 0, NULL, NULL, &sc->sc_rx_mini_tag);
2388 m->m_len = m->m_pkthdr.len = MHLEN;
/freebsd-current/sys/dev/usb/net/
H A Dif_urndis.c898 } else if (msg.rm_datalen > (uint32_t)(MHLEN - ETHER_ALIGN)) {
H A Dif_axge.c1049 if (len > MHLEN - ETHER_ALIGN)
/freebsd-current/sys/netgraph/netflow/
H A Dng_netflow.c686 ((pullup_len) > MHLEN)) { \

Completed in 219 milliseconds

123