Changeset View
Changeset View
Standalone View
Standalone View
sys/netpfil/ipfw/ip_dummynet.c
Show First 20 Lines • Show All 2,751 Lines • ▼ Show 20 Lines | |||||
#define DN_MODEV_ORD (SI_ORDER_ANY - 128) /* after ipfw */ | #define DN_MODEV_ORD (SI_ORDER_ANY - 128) /* after ipfw */ | ||||
DECLARE_MODULE(dummynet, dummynet_mod, DN_SI_SUB, DN_MODEV_ORD); | DECLARE_MODULE(dummynet, dummynet_mod, DN_SI_SUB, DN_MODEV_ORD); | ||||
MODULE_VERSION(dummynet, 3); | MODULE_VERSION(dummynet, 3); | ||||
/* | /* | ||||
* Starting up. Done in order after dummynet_modevent() has been called. | * Starting up. Done in order after dummynet_modevent() has been called. | ||||
* VNET_SYSINIT is also called for each existing vnet and each new vnet. | * VNET_SYSINIT is also called for each existing vnet and each new vnet. | ||||
*/ | */ | ||||
VNET_SYSINIT(vnet_dn_init, DN_SI_SUB, DN_MODEV_ORD+2, ip_dn_vnet_init, NULL); | VNET_SYSINIT(vnet_dn_init, DN_SI_SUB, DN_MODEV_ORD+2, ip_dn_vnet_init); | ||||
/* | /* | ||||
* Shutdown handlers up shop. These are done in REVERSE ORDER, but still | * Shutdown handlers up shop. These are done in REVERSE ORDER, but still | ||||
* after dummynet_modevent() has been called. Not called on reboot. | * after dummynet_modevent() has been called. Not called on reboot. | ||||
* VNET_SYSUNINIT is also called for each exiting vnet as it exits. | * VNET_SYSUNINIT is also called for each exiting vnet as it exits. | ||||
* or when the module is unloaded. | * or when the module is unloaded. | ||||
*/ | */ | ||||
VNET_SYSUNINIT(vnet_dn_uninit, DN_SI_SUB, DN_MODEV_ORD+2, ip_dn_vnet_destroy, NULL); | VNET_SYSUNINIT(vnet_dn_uninit, DN_SI_SUB, DN_MODEV_ORD+2, ip_dn_vnet_destroy); | ||||
#ifdef NEW_AQM | #ifdef NEW_AQM | ||||
/* modevent helpers for the AQM modules */ | /* modevent helpers for the AQM modules */ | ||||
static int | static int | ||||
load_dn_aqm(struct dn_aqm *d) | load_dn_aqm(struct dn_aqm *d) | ||||
{ | { | ||||
struct dn_aqm *aqm=NULL; | struct dn_aqm *aqm=NULL; | ||||
▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines |