diff options
author | 2015-02-10 06:45:55 +0000 | |
---|---|---|
committer | 2015-02-10 06:45:55 +0000 | |
commit | 66309ba0d75ef0b7f81aba8b8924c656d8612e4b (patch) | |
tree | aca6ec95eb4d13ca803e4d84bdafdc8ab8d12992 /sys/net/pf_ioctl.c | |
parent | Add support for "constraints": when configured, ntpd(8) will query the (diff) | |
download | wireguard-openbsd-66309ba0d75ef0b7f81aba8b8924c656d8612e4b.tar.xz wireguard-openbsd-66309ba0d75ef0b7f81aba8b8924c656d8612e4b.zip |
since we inherit prio (as in, the queuing priority) from outside sources,
i. e. on vlan interfaces, it is useful to be able to match on it -
effectively matching on classification done elsewhere.
i thought i had long implemented that, but chrisz@ asking for it made
me notice that wasn't the case.
tests by chrisz, ok phessler pelikan
Diffstat (limited to 'sys/net/pf_ioctl.c')
-rw-r--r-- | sys/net/pf_ioctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/pf_ioctl.c b/sys/net/pf_ioctl.c index 5ec608c7681..27237b74f45 100644 --- a/sys/net/pf_ioctl.c +++ b/sys/net/pf_ioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_ioctl.c,v 1.281 2015/01/24 00:29:06 deraadt Exp $ */ +/* $OpenBSD: pf_ioctl.c,v 1.282 2015/02/10 06:45:55 henning Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -2459,6 +2459,7 @@ pf_rule_copyin(struct pf_rule *from, struct pf_rule *to, to->divert.port = from->divert.port; to->divert_packet.addr = from->divert_packet.addr; to->divert_packet.port = from->divert_packet.port; + to->prio = from->prio; to->set_prio[0] = from->set_prio[0]; to->set_prio[1] = from->set_prio[1]; |