Lines Matching refs:hdrlen
343 int hdrlen;
367 hdrlen = sizeof (struct ether_header);
376 hdrlen += VTAG_SIZE;
382 if (DB_REF(nmp) == 1 && MBLKHEAD(nmp) >= hdrlen) {
385 } else if (DB_REF(mp) == 1 && MBLKSIZE(mp) >= hdrlen) {
392 if ((nmp = allocb(hdrlen, BPRI_MED)) == NULL)
403 if (hdrlen > sizeof (struct ether_header)) {
484 int hdrlen;
508 hdrlen = sizeof (struct ether_header);
517 hdrlen += VTAG_SIZE;
521 if ((nmp = allocb(hdrlen, BPRI_MED)) == NULL)
535 if (hdrlen > sizeof (struct ether_header)) {
894 int hdrlen;
908 hdrlen = sizeof (ipoib_ptxhdr_t);
912 if (DB_REF(nmp) == 1 && MBLKHEAD(nmp) >= hdrlen) {
915 } else if (DB_REF(mp) == 1 && MBLKSIZE(mp) >= hdrlen) {
922 if ((nmp = allocb(hdrlen, BPRI_MED)) == NULL)
949 int hdrlen;
960 hdrlen = sizeof (ipoib_ptxhdr_t);
962 if ((nmp = allocb(hdrlen, BPRI_MED)) == NULL)
1148 int hdrlen;
1163 hdrlen = sizeof (struct fddi_mac_frm);
1170 hdrlen += sizeof (struct llc_snap_hdr);
1174 if (DB_REF(nmp) == 1 && MBLKHEAD(nmp) >= hdrlen) {
1177 } else if (DB_REF(mp) == 1 && MBLKSIZE(mp) >= hdrlen) {
1184 if ((nmp = allocb(hdrlen, BPRI_MED)) == NULL)
1227 int hdrlen;
1238 hdrlen = sizeof (struct fddi_mac_frm);
1245 hdrlen += sizeof (struct llc_snap_hdr);
1247 if ((nmp = allocb(hdrlen, BPRI_MED)) == NULL)
1554 int hdrlen;
1570 hdrlen = sizeof (struct tr_mac_frm);
1577 hdrlen += sizeof (struct llc_snap_hdr);
1604 if (DB_REF(nmp) == 1 && MBLKHEAD(nmp) >= hdrlen) {
1607 } else if (DB_REF(mp) == 1 && MBLKSIZE(mp) >= hdrlen) {
1614 if ((nmp = allocb(hdrlen, BPRI_MED)) == NULL) {
1694 int hdrlen;
1712 hdrlen = sizeof (struct tr_mac_frm_nori);
1715 hdrlen += ri_ste_def.len;
1722 hdrlen += sizeof (struct llc_snap_hdr);
1724 if ((nmp = allocb(hdrlen, BPRI_MED)) == NULL)