Changeset View
Changeset View
Standalone View
Standalone View
lib/libpfctl/libpfctl.c
Show First 20 Lines • Show All 636 Lines • ▼ Show 20 Lines | _pfctl_clear_states(int dev, const struct pfctl_kill *kill, | ||||
nvl = nvlist_create(0); | nvl = nvlist_create(0); | ||||
pfctl_nv_add_state_cmp(nvl, "cmp", &kill->cmp); | pfctl_nv_add_state_cmp(nvl, "cmp", &kill->cmp); | ||||
nvlist_add_number(nvl, "af", kill->af); | nvlist_add_number(nvl, "af", kill->af); | ||||
nvlist_add_number(nvl, "proto", kill->proto); | nvlist_add_number(nvl, "proto", kill->proto); | ||||
pfctl_nv_add_rule_addr(nvl, "src", &kill->src); | pfctl_nv_add_rule_addr(nvl, "src", &kill->src); | ||||
pfctl_nv_add_rule_addr(nvl, "dst", &kill->dst); | pfctl_nv_add_rule_addr(nvl, "dst", &kill->dst); | ||||
pfctl_nv_add_rule_addr(nvl, "rt_addr", &kill->rt_addr); | |||||
nvlist_add_string(nvl, "ifname", kill->ifname); | nvlist_add_string(nvl, "ifname", kill->ifname); | ||||
nvlist_add_string(nvl, "label", kill->label); | nvlist_add_string(nvl, "label", kill->label); | ||||
nv.data = nvlist_pack(nvl, &nv.len); | nv.data = nvlist_pack(nvl, &nv.len); | ||||
nv.size = nv.len; | nv.size = nv.len; | ||||
nvlist_destroy(nvl); | nvlist_destroy(nvl); | ||||
nvl = NULL; | nvl = NULL; | ||||
Show All 33 Lines |