Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netpfil/ipfw/ip_dummynet.c
Show First 20 Lines • Show All 2,505 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
static void | static void | ||||
ip_dn_init(void) | ip_dn_init(void) | ||||
{ | { | ||||
if (dn_cfg.init_done) | if (dn_cfg.init_done) | ||||
return; | return; | ||||
printf("DUMMYNET %p with IPv6 initialized (100409)\n", curvnet); | |||||
dn_cfg.init_done = 1; | dn_cfg.init_done = 1; | ||||
/* Set defaults here. MSVC does not accept initializers, | /* Set defaults here. MSVC does not accept initializers, | ||||
* and this is also useful for vimages | * and this is also useful for vimages | ||||
*/ | */ | ||||
/* queue limits */ | /* queue limits */ | ||||
dn_cfg.slot_limit = 100; /* Foot shooting limit for queues. */ | dn_cfg.slot_limit = 100; /* Foot shooting limit for queues. */ | ||||
dn_cfg.byte_limit = 1024 * 1024; | dn_cfg.byte_limit = 1024 * 1024; | ||||
dn_cfg.expire = 1; | dn_cfg.expire = 1; | ||||
▲ Show 20 Lines • Show All 276 Lines • Show Last 20 Lines |