Changeset View
Changeset View
Standalone View
Standalone View
head/sys/net/if_ethersubr.c
Show First 20 Lines • Show All 455 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
int | int | ||||
ether_output_frame(struct ifnet *ifp, struct mbuf *m) | ether_output_frame(struct ifnet *ifp, struct mbuf *m) | ||||
{ | { | ||||
int error; | int error; | ||||
uint8_t pcp; | uint8_t pcp; | ||||
pcp = ifp->if_pcp; | pcp = ifp->if_pcp; | ||||
if (pcp != IFNET_PCP_NONE && !ether_set_pcp(&m, ifp, pcp)) | if (pcp != IFNET_PCP_NONE && ifp->if_type != IFT_L2VLAN && | ||||
!ether_set_pcp(&m, ifp, pcp)) | |||||
return (0); | return (0); | ||||
if (PFIL_HOOKED(&V_link_pfil_hook)) { | if (PFIL_HOOKED(&V_link_pfil_hook)) { | ||||
error = pfil_run_hooks(&V_link_pfil_hook, &m, ifp, | error = pfil_run_hooks(&V_link_pfil_hook, &m, ifp, | ||||
PFIL_OUT, 0, NULL); | PFIL_OUT, 0, NULL); | ||||
if (error != 0) | if (error != 0) | ||||
return (EACCES); | return (EACCES); | ||||
▲ Show 20 Lines • Show All 899 Lines • Show Last 20 Lines |