diff options
author | Alexandr Nedvedicky <sashan@cvs.openbsd.org> | 2023-02-07 17:58:44 +0000 |
---|---|---|
committer | Alexandr Nedvedicky <sashan@cvs.openbsd.org> | 2023-02-07 17:58:44 +0000 |
commit | ec30e705cf3346827584413cb49e41d1f28ff0b9 (patch) | |
tree | 9529583c645856a0d15b9cb26f5296d1eca08e50 /sys/net/pfvar.h | |
parent | dbf6c51980ebc5ad9f80b8ae07ddd9eb16576cf2 (diff) |
internal representation of icmp type/code in pfctl(8)/pf(4) does not
fit into u_int8_t. Issue has been noticed and kindly reported by
amalinin _at_ bh0.amt.ru via bugs@.
OK bluhm@
Diffstat (limited to 'sys/net/pfvar.h')
-rw-r--r-- | sys/net/pfvar.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h index 1453bc35c04..3a7ff6b295c 100644 --- a/sys/net/pfvar.h +++ b/sys/net/pfvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pfvar.h,v 1.528 2023/01/06 17:44:34 sashan Exp $ */ +/* $OpenBSD: pfvar.h,v 1.529 2023/02/07 17:58:43 sashan Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -572,8 +572,8 @@ struct pf_rule { u_int8_t keep_state; sa_family_t af; u_int8_t proto; - u_int8_t type; - u_int8_t code; + u_int16_t type; /* aux. value 256 is legit */ + u_int16_t code; /* aux. value 256 is legit */ u_int8_t flags; u_int8_t flagset; u_int8_t min_ttl; @@ -592,7 +592,6 @@ struct pf_rule { u_int8_t set_prio[2]; sa_family_t naf; u_int8_t rcvifnot; - u_int8_t pad[2]; struct { struct pf_addr addr; |