Changeset View
Changeset View
Standalone View
Standalone View
sbin/pfctl/pfctl.c
Show First 20 Lines • Show All 1,739 Lines • ▼ Show 20 Lines | if (!(pf->opts & PF_OPT_MERGE) || pf->ifname_set) | ||||
if (pfctl_load_logif(pf, pf->ifname)) | if (pfctl_load_logif(pf, pf->ifname)) | ||||
error = 1; | error = 1; | ||||
/* load hostid */ | /* load hostid */ | ||||
if (!(pf->opts & PF_OPT_MERGE) || pf->hostid_set) | if (!(pf->opts & PF_OPT_MERGE) || pf->hostid_set) | ||||
if (pfctl_load_hostid(pf, pf->hostid)) | if (pfctl_load_hostid(pf, pf->hostid)) | ||||
error = 1; | error = 1; | ||||
/* load keepcounters */ | |||||
if (pfctl_set_keepcounters(pf->dev, pf->keep_counters)) | |||||
error = 1; | |||||
return (error); | return (error); | ||||
} | } | ||||
int | int | ||||
pfctl_set_limit(struct pfctl *pf, const char *opt, unsigned int limit) | pfctl_set_limit(struct pfctl *pf, const char *opt, unsigned int limit) | ||||
{ | { | ||||
int i; | int i; | ||||
▲ Show 20 Lines • Show All 758 Lines • Show Last 20 Lines |