mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-03 09:00:21 +00:00
pf: fix set_prio after nv conversion
Reviewed by: kp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D34266
This commit is contained in:
parent
32cf376a01
commit
0143a6bb7f
@ -626,7 +626,7 @@ pf_nvrule_to_krule(const nvlist_t *nvl, struct pf_krule *rule)
|
||||
PFNV_CHK(pf_nvuint8(nvl, "flush", &rule->flush));
|
||||
PFNV_CHK(pf_nvuint8(nvl, "prio", &rule->prio));
|
||||
|
||||
PFNV_CHK(pf_nvuint8_array(nvl, "set_prio", &rule->prio, 2, NULL));
|
||||
PFNV_CHK(pf_nvuint8_array(nvl, "set_prio", rule->set_prio, 2, NULL));
|
||||
|
||||
if (nvlist_exists_nvlist(nvl, "divert")) {
|
||||
const nvlist_t *nvldivert = nvlist_get_nvlist(nvl, "divert");
|
||||
@ -809,7 +809,7 @@ pf_krule_to_nvrule(struct pf_krule *rule)
|
||||
nvlist_add_number(nvl, "flush", rule->flush);
|
||||
nvlist_add_number(nvl, "prio", rule->prio);
|
||||
|
||||
pf_uint8_array_nv(nvl, "set_prio", &rule->prio, 2);
|
||||
pf_uint8_array_nv(nvl, "set_prio", rule->set_prio, 2);
|
||||
|
||||
tmp = pf_divert_to_nvdivert(rule);
|
||||
if (tmp == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user