Home
last modified time | relevance | path

Searched refs:M_TRAILINGSPACE (Results 1 – 23 of 23) sorted by relevance

/f-stack/freebsd/netipsec/
H A Dipsec_mbuf.c91 } else if (hlen > M_TRAILINGSPACE(m)) { in m_makespace()
123 if (hlen <= M_TRAILINGSPACE(m) + remain) { in m_makespace()
218 if (pad > M_TRAILINGSPACE(m0)) { in m_pad()
H A Dkey.c2526 if (sizeof(struct sadb_msg) > m->m_len + M_TRAILINGSPACE(m)) { in key_spdflush()
7533 sizeof(struct sadb_msg) > m->m_len + M_TRAILINGSPACE(m)) { in key_flush()
/f-stack/freebsd/kern/
H A Dsubr_mchain.c76 mbp->mb_mleft = M_TRAILINGSPACE(m); in mb_initm()
124 mbp->mb_mleft = M_TRAILINGSPACE(m); in mb_reserve()
214 mleft = M_TRAILINGSPACE(m); in mb_put_mem()
265 mbp->mb_mleft = M_TRAILINGSPACE(m); in mb_put_mbuf()
H A Duipc_mbuf.c756 M_TRAILINGSPACE(m) < n->m_len) { in m_cat()
1149 M_TRAILINGSPACE(m)); in m_copyback()
1189 space = M_TRAILINGSPACE(m); in m_append()
1499 n->m_len < M_TRAILINGSPACE(m)) { in m_collapse()
1793 length = min(M_TRAILINGSPACE(mb), total - progress); in m_uiotombuf()
1941 m->m_len <= M_TRAILINGSPACE(mprev)) { in m_unshare()
1970 m->m_len <= M_TRAILINGSPACE(mprev)) { in m_unshare()
H A Duipc_sockbuf.c168 n->m_len <= M_TRAILINGSPACE(m) && in sbready_compress()
1331 m->m_len <= M_TRAILINGSPACE(n) && in sbcompress()
1402 m->m_len <= M_TRAILINGSPACE(n)) { in sbcompress_ktls_rx()
1749 KASSERT(CMSG_SPACE((u_int)size) <= M_TRAILINGSPACE(m), in sbcreatecontrol_how()
H A Duipc_mbuf2.c211 if ((off == 0 || offp) && M_TRAILINGSPACE(n) >= tlen in m_pulldown()
/f-stack/freebsd/netgraph/
H A Dng_nat.c830 M_TRAILINGSPACE(m)); in ng_nat_rcvdata()
841 M_TRAILINGSPACE(m)); in ng_nat_rcvdata()
H A Dng_tty.c430 length = min(M_TRAILINGSPACE(mb), len - total); in ngt_rint_bypass()
/f-stack/freebsd/netpfil/ipfw/
H A Dip_fw_nat.c364 mcl->m_len + M_TRAILINGSPACE(mcl), 0); in ipfw_nat()
379 mcl->m_len + M_TRAILINGSPACE(mcl)); in ipfw_nat()
382 mcl->m_len + M_TRAILINGSPACE(mcl)); in ipfw_nat()
/f-stack/freebsd/netinet/
H A Dip_fastfwd.c135 mcopy->m_len = min(ntohs(ip->ip_len), M_TRAILINGSPACE(mcopy)); in ip_redir_alloc()
H A Dip_icmp.c330 icmplen = min(icmplen, M_TRAILINGSPACE(m) - in icmp_error()
H A Dtcp_subr.c1542 KASSERT(M_TRAILINGSPACE(m) >= tlen, in tcp_respond()
1544 m, tlen, (long)M_TRAILINGSPACE(m))); in tcp_respond()
1550 if (M_TRAILINGSPACE(m) < TCP_MAXOLEN) { in tcp_respond()
H A Dip_input.c1014 mcopy->m_len = min(ntohs(ip->ip_len), M_TRAILINGSPACE(mcopy)); in ip_forward()
H A Dsctp_output.c1963 if (M_TRAILINGSPACE(m) >= plen) { in sctp_add_addr_to_mbuf()
5148 if (M_TRAILINGSPACE(op_err_last) < (int)sizeof(struct sctp_paramhdr)) { in sctp_arethere_unrecognized_parameters()
6474 len = (int)M_TRAILINGSPACE(*endofchain); in sctp_copy_mbufchain()
6477 len = (int)M_TRAILINGSPACE(*endofchain); in sctp_copy_mbufchain()
6793 cancpy = (int)M_TRAILINGSPACE(ret); in sctp_copy_out_all()
6814 cancpy = (int)M_TRAILINGSPACE(at); in sctp_copy_out_all()
10314 cnt_of_space = (unsigned int)M_TRAILINGSPACE(chk->data); in send_forward_tsn()
10595 space = (unsigned int)M_TRAILINGSPACE(a_chk->data); in sctp_send_sack()
H A Dsctputil.c3107 if (padlen <= M_TRAILINGSPACE(m)) { in sctp_add_pad_tombuf()
3940 if (len > M_TRAILINGSPACE(m_notify)) { in sctp_notify_stream_reset()
/f-stack/freebsd/netinet6/
H A Dicmp6.c707 maxhlen = M_TRAILINGSPACE(n) - in icmp6_input()
1468 lenlim = M_TRAILINGSPACE(n); in ni6_input()
1527 ep = mtod(m, char *) + M_TRAILINGSPACE(m); in ni6_nametodns()
2475 maxlen = M_TRAILINGSPACE(m); in icmp6_redirect_output()
2632 if (8 - extra <= M_TRAILINGSPACE(m0)) { in icmp6_redirect_output()
H A Dip6_output.c1352 if (M_TRAILINGSPACE(mopt) < JUMBOOPTLEN) { in ip6_insert_jumboopt()
1433 M_TRAILINGSPACE(mlast) >= sizeof(struct ip6_frag)) { in ip6_insertfraghdr()
/f-stack/freebsd/net80211/
H A Dieee80211_superg.c430 if (M_TRAILINGSPACE(m) < pad) { /* prepend to second */ in ieee80211_ff_encap()
563 if (M_TRAILINGSPACE(m) < pad) { /* prepend to second */ in ieee80211_amsdu_encap()
/f-stack/lib/
H A Dff_veth.c279 length = min(M_TRAILINGSPACE(mb), len - progress); in ff_zc_mbuf_write()
/f-stack/tools/compat/include/sys/
H A Dmbuf.h946 #define M_TRAILINGSPACE(m) \ macro
/f-stack/freebsd/sys/
H A Dmbuf.h1178 #define M_TRAILINGSPACE(m) \ macro
/f-stack/freebsd/mips/atheros/ar531x/
H A Dif_are.c734 if (m->m_next != NULL || M_TRAILINGSPACE(m) < padlen) { in are_encap()
/f-stack/freebsd/net/
H A Drtsock.c2029 if (data_len > M_TRAILINGSPACE(m)) { in rt_ieee80211msg()