summaryrefslogtreecommitdiffstats
path: root/usr.sbin/snmpd/snmpd.h
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2012-10-01 11:36:55 +0000
committerreyk <reyk@openbsd.org>2012-10-01 11:36:55 +0000
commite7849bce495c831a8f5e9d7671ffb682716f6814 (patch)
tree0057abe1945975cff4f800f3baf1d1b47d9445a3 /usr.sbin/snmpd/snmpd.h
parentupdate currency exchange rates; (diff)
downloadwireguard-openbsd-e7849bce495c831a8f5e9d7671ffb682716f6814.tar.xz
wireguard-openbsd-e7849bce495c831a8f5e9d7671ffb682716f6814.zip
Support the 0.0.0.0 and 255.255.255.255 IPv4 addresses in the ipAddrTable.
This fixes an issue which aborted the address traversal / SNMP walk when an "any"/0.0.0.0 address was configured on an interface. The problem was found with a pppoe(4) device that is typically configured with 0.0.0.0 on startup. Found and fix tested by Gerhard Roth
Diffstat (limited to 'usr.sbin/snmpd/snmpd.h')
-rw-r--r--usr.sbin/snmpd/snmpd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/snmpd/snmpd.h b/usr.sbin/snmpd/snmpd.h
index 8f112433353..50c3c6efeae 100644
--- a/usr.sbin/snmpd/snmpd.h
+++ b/usr.sbin/snmpd/snmpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: snmpd.h,v 1.38 2012/09/18 08:29:09 reyk Exp $ */
+/* $OpenBSD: snmpd.h,v 1.39 2012/10/01 11:36:55 reyk Exp $ */
/*
* Copyright (c) 2007, 2008, 2012 Reyk Floeter <reyk@openbsd.org>
@@ -495,7 +495,7 @@ int mps_setint(struct oid *, struct ber_oid *,
int mps_getts(struct oid *, struct ber_oid *,
struct ber_element **);
void mps_encodeinaddr(struct ber_oid *, struct in_addr *, int);
-void mps_decodeinaddr(struct ber_oid *, struct in_addr *, int);
+int mps_decodeinaddr(struct ber_oid *, struct in_addr *, int);
struct ber_oid *mps_table(struct oid *, struct ber_oid *, struct ber_oid *);
/* pf.c */