302: mcopy = m_copy(m, 0, (int)M_COPYALL);
303: etype = htons(ETHERTYPE_IP);
304: break;
319:
320: ah->ar_hrd = htons(ARPHRD_ETHER);
321:
324: case ARPOP_REVREPLY:
325: etype = htons(ETHERTYPE_REVARP);
326: break;
330: default:
331: etype = htons(ETHERTYPE_ARP);
332: }
341: }
342: etype = htons(ETHERTYPE_IPV6);
343: break;
374: sizeof(llc.llc_snap_org_code));
375: llc.llc_snap_ether_type = htons(ETHERTYPE_ATALK);
376: memcpy(mtod(m, void *), &llc, sizeof(struct llc));
377: } else {
378: etype = htons(ETHERTYPE_ATALK);
379: }
383: case AF_IPX:
384: etype = htons(ETHERTYPE_IPX);
385: memcpy(edst,
468: if (etype == 0)
469: etype = htons(m->m_pkthdr.len);
470: /*
550:
551: ether_type = htons(eh->ether_type);
552:
565:
566: ether_type = htons(llc->llc_un.type_snap.ether_type);
567: }