Changeset View
Changeset View
Standalone View
Standalone View
head/sys/net/if_iso88025subr.c
Show First 20 Lines • Show All 481 Lines • ▼ Show 20 Lines | #endif | ||||
/* Check for source routing info */ | /* Check for source routing info */ | ||||
if (th->iso88025_shost[0] & TR_RII) | if (th->iso88025_shost[0] & TR_RII) | ||||
mac_hdr_len += TR_RCF_RIFLEN(th->rcf); | mac_hdr_len += TR_RCF_RIFLEN(th->rcf); | ||||
/* Strip off ISO88025 header. */ | /* Strip off ISO88025 header. */ | ||||
m_adj(m, mac_hdr_len); | m_adj(m, mac_hdr_len); | ||||
m = m_pullup(m, LLC_SNAPFRAMELEN); | m = m_pullup(m, LLC_SNAPFRAMELEN); | ||||
if (m == 0) { | if (m == NULL) { | ||||
if_inc_counter(ifp, IFCOUNTER_IERRORS, 1); | if_inc_counter(ifp, IFCOUNTER_IERRORS, 1); | ||||
goto dropanyway; | goto dropanyway; | ||||
} | } | ||||
l = mtod(m, struct llc *); | l = mtod(m, struct llc *); | ||||
switch (l->llc_dsap) { | switch (l->llc_dsap) { | ||||
case LLC_SNAP_LSAP: { | case LLC_SNAP_LSAP: { | ||||
u_int16_t type; | u_int16_t type; | ||||
▲ Show 20 Lines • Show All 199 Lines • Show Last 20 Lines |