diff options
author | Martijn van Duren <martijn@cvs.openbsd.org> | 2023-11-21 08:47:05 +0000 |
---|---|---|
committer | Martijn van Duren <martijn@cvs.openbsd.org> | 2023-11-21 08:47:05 +0000 |
commit | fae627dca6bab70cfcbb36889eeaff701da590e2 (patch) | |
tree | 1535275b69504d650882c1096d07e0c4f8d4d380 /usr.sbin | |
parent | d007041e43e86b6f681fa0b82905bbec1d96c984 (diff) |
Make RTFILTER/filter-routes a simple boolean assignment, since the
specific value isn't used anymore, and is just used to generate an
argument for snmpd_metrics.
OK tb@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/snmpd/parse.y | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/usr.sbin/snmpd/parse.y b/usr.sbin/snmpd/parse.y index da51d238bc4..8492775573c 100644 --- a/usr.sbin/snmpd/parse.y +++ b/usr.sbin/snmpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.82 2023/11/12 20:04:35 martijn Exp $ */ +/* $OpenBSD: parse.y,v 1.83 2023/11/21 08:47:04 martijn Exp $ */ /* * Copyright (c) 2007, 2008, 2012 Reyk Floeter <reyk@openbsd.org> @@ -331,13 +331,7 @@ main : LISTEN ON listen_udptcp free($2); } | RTFILTER yesno { - if ($2 == 1) - conf->sc_rtfilter = ROUTE_FILTER(RTM_NEWADDR) | - ROUTE_FILTER(RTM_DELADDR) | - ROUTE_FILTER(RTM_IFINFO) | - ROUTE_FILTER(RTM_IFANNOUNCE); - else - conf->sc_rtfilter = 0; + conf->sc_rtfilter = $2; } | seclevel { conf->sc_min_seclevel = $1; |