Changeset View
Changeset View
Standalone View
Standalone View
sys/netpfil/pf/pf_ioctl.c
Show First 20 Lines • Show All 677 Lines • ▼ Show 20 Lines | |||||
void | void | ||||
pf_altq_ifnet_event(struct ifnet *ifp, int remove) | pf_altq_ifnet_event(struct ifnet *ifp, int remove) | ||||
{ | { | ||||
struct ifnet *ifp1; | struct ifnet *ifp1; | ||||
struct pf_altq *a1, *a2, *a3; | struct pf_altq *a1, *a2, *a3; | ||||
u_int32_t ticket; | u_int32_t ticket; | ||||
int error = 0; | int error = 0; | ||||
/* | |||||
* No need to re-evaluate the configuration for events on interfaces | |||||
* that do not support ALTQ, as it's not possible for such | |||||
* interfaces to be part of the configuration. | |||||
*/ | |||||
if (!ALTQ_IS_READY(&ifp->if_snd)) | |||||
return; | |||||
/* Interrupt userland queue modifications */ | /* Interrupt userland queue modifications */ | ||||
if (V_altqs_inactive_open) | if (V_altqs_inactive_open) | ||||
pf_rollback_altq(V_ticket_altqs_inactive); | pf_rollback_altq(V_ticket_altqs_inactive); | ||||
/* Start new altq ruleset */ | /* Start new altq ruleset */ | ||||
if (pf_begin_altq(&ticket)) | if (pf_begin_altq(&ticket)) | ||||
return; | return; | ||||
▲ Show 20 Lines • Show All 3,610 Lines • Show Last 20 Lines |