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 /sbin | |
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 'sbin')
-rw-r--r-- | sbin/pfctl/parse.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index 2c5a49772ff..de1506cda8a 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.712 2022/09/23 21:33:17 bluhm Exp $ */ +/* $OpenBSD: parse.y,v 1.713 2023/02/07 17:58:43 sashan Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -134,8 +134,8 @@ struct node_gid { }; struct node_icmp { - u_int8_t code; - u_int8_t type; + u_int16_t code; /* aux. value 256 is legit */ + u_int16_t type; /* aux. value 256 is legit */ u_int8_t proto; struct node_icmp *next; struct node_icmp *tail; |