llc
m_adj(m, sizeof(struct llc));
sizeof(struct llc);
struct llc *llc;
m_adj(m, sizeof(eh) - sizeof(*llc));
llc = (struct llc *)(mtod(m, char *) + sizeof(wh));
llc->llc_dsap = llc->llc_ssap = LLC_SNAP_LSAP;
llc->llc_control = LLC_UI;
llc->llc_snap.org_code[0] = 0;
llc->llc_snap.org_code[1] = 0;
llc->llc_snap.org_code[2] = 0;
llc->llc_snap.ether_type = eh.ether_type;
len += sizeof(struct llc) -
i = (ETHER_ADDR_LEN * 2) + sizeof(struct llc);
rxdesc->pkglen -= sizeof(struct llc);
if (pktlen < sizeof(*frame) + sizeof(struct llc)) {
struct llc llc1;
struct llc *llc2 = (struct llc *)(eh1 + 1);
m_copydata(*mp, 0, sizeof(struct llc), (void *) &llc1);
m_adj(*mp, sizeof(struct llc));
M_PREPEND(*mp, sizeof(struct llc), M_DONTWAIT);
bcopy(&llc1, mtod(*mp, void *), sizeof(struct llc));
struct llc llc;
M_PREPEND(m, sizeof(struct llc), M_DONTWAIT);
llc.llc_dsap = llc.llc_ssap = LLC_SNAP_LSAP;
llc.llc_control = LLC_UI;
memcpy(llc.llc_snap_org_code, at_org_code,
sizeof(llc.llc_snap_org_code));
llc.llc_snap_ether_type = htons(ETHERTYPE_ATALK);
memcpy(mtod(m, void *), &llc, sizeof(struct llc));
struct llc *llc = (struct llc *)(eh + 1);
llc->llc_dsap != LLC_SNAP_LSAP ||
llc->llc_ssap != LLC_SNAP_LSAP ||
llc->llc_control != LLC_UI) {
ether_type = htons(llc->llc_un.type_snap.ether_type);
struct llc *l;
if (m->m_len < sizeof(*eh) + sizeof(struct llc))
l = (struct llc *)(eh+1);
+ sizeof(struct llc));
+ sizeof(struct llc));
__CTASSERT(sizeof(struct llc) == 8);
if (llc != NULL) {
struct llc *llc;
if (m->m_len < hdrlen + sizeof(*llc) &&
(m = m_pullup(m, hdrlen + sizeof(*llc))) == NULL) {
llc = (struct llc *)(mtod(m, char *) + hdrlen);
if (llc->llc_dsap == LLC_SNAP_LSAP &&
llc->llc_ssap == LLC_SNAP_LSAP &&
llc->llc_control == LLC_UI &&
llc->llc_snap.org_code[0] == 0 &&
llc->llc_snap.org_code[1] == 0 &&
llc->llc_snap.org_code[2] == 0) {
m_adj(m, hdrlen + sizeof(struct llc) - sizeof(*eh));
llc = NULL;
#define TO_BE_RECLAIMED (sizeof(struct ether_header) - sizeof(struct llc))
struct llc *llc;
m_adj(m, sizeof(struct ether_header) - sizeof(struct llc));
llc = mtod(m, struct llc *);
llc->llc_dsap = llc->llc_ssap = LLC_SNAP_LSAP;
llc->llc_control = LLC_UI;
llc->llc_snap.org_code[0] = 0;
llc->llc_snap.org_code[1] = 0;
llc->llc_snap.org_code[2] = 0;
llc->llc_snap.ether_type = eh.ether_type;
struct llc *llc;
M_PREPEND(m, sizeof(struct llc), M_DONTWAIT);
llc = mtod(m, struct llc *);
llc->llc_dsap = llc->llc_ssap = LLC_SNAP_LSAP;
llc->llc_control = LLC_UI;
memcpy(llc->llc_org_code, aarp_org_code, sizeof(aarp_org_code));
llc->llc_ether_type = htons(ETHERTYPE_AARP);
struct llc *llc;
M_PREPEND(m, sizeof(struct llc), M_DONTWAIT);
llc = mtod(m, struct llc *);
llc->llc_dsap = llc->llc_ssap = LLC_SNAP_LSAP;
llc->llc_control = LLC_UI;
memcpy(llc->llc_org_code, aarp_org_code, sizeof(aarp_org_code));
llc->llc_ether_type = htons(ETHERTYPE_AARP);
struct llc *llc;
M_PREPEND(m, sizeof(struct llc), M_DONTWAIT);
llc = mtod(m, struct llc *);
llc->llc_dsap = llc->llc_ssap = LLC_SNAP_LSAP;
llc->llc_control = LLC_UI;
memcpy(llc->llc_org_code, aarp_org_code, sizeof(aarp_org_code));
llc->llc_ether_type = htons(ETHERTYPE_AARP);