HomeSort by: relevance | last modified time | path
    Searched refs:mhlen (Results 1 - 4 of 4) sorted by relevancy

  /src/external/bsd/tcpdump/dist/
print-mobility.c 195 unsigned mhlen, hlen; local
208 mhlen = (GET_U_1(mh->ip6m_len) + 1) << 3;
214 if (type <= IP6M_MAX && mhlen < ip6m_hdrlen[type]) {
215 ND_PRINT(" (header length %u < %u)", mhlen, ip6m_hdrlen[type]);
294 return(mhlen);
298 if (mobility_opt_print(ndo, bp + hlen, mhlen - hlen))
301 return(mhlen);
  /src/sys/netinet/
ip_output.c 842 int mhlen, firstlen; local
874 mhlen = sizeof(struct ip);
895 mhlen = ip_optcopy(ip, mhip) + sizeof(struct ip);
896 mhip->ip_hl = mhlen >> 2;
898 m->m_len = mhlen;
908 mhip->ip_len = htons((u_int16_t)(len + mhlen));
916 m->m_pkthdr.len = mhlen + len;
922 mhip->ip_sum = in_cksum(m, mhlen);
929 m->m_pkthdr.csum_data |= mhlen << 16;
  /src/sys/external/bsd/ipf/netinet/
ip_fil_netbsd.c 766 if (sizeof(*tcp2) + hlen > MHLEN) {
938 avail = MHLEN;
1285 int mhlen, firstlen = len;
1293 mhlen = sizeof (struct ip);
1310 mhlen = ip_optcopy(ip, mhip) + sizeof (struct ip);
1311 IP_HL_A(mhip, mhlen >> 2);
1314 m->m_len = mhlen;
1320 mhip->ip_len = htons((u_short)(len + mhlen));
1326 m->m_pkthdr.len = mhlen + len;
1331 mhip->ip_sum = in_cksum(m, mhlen);
    [all...]
  /src/sys/sys/
mbuf.h 285 * Don't change this without understanding how MHLEN/MLEN are defined.
287 #define MBUF_DEFINE(name, mhlen, mlen) \
295 char MH_databuf[(mhlen)]; \
317 * Dummy mbuf structure to calculate the right values for MLEN/MHLEN, taking
325 #define MHLEN ((int)(MSIZE - offsetof(struct _mbuf_dummy, m_pktdat)))
327 #define MINCLSIZE (MHLEN+MLEN+1) /* smallest amount to put in cluster */
332 MBUF_DEFINE(mbuf, MHLEN, MLEN);
511 ((m)->m_flags & M_PKTHDR) ? MHLEN : MLEN)
723 extern int max_datalen; /* MHLEN - max_hdr */

Completed in 72 milliseconds