summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2007-12-15 02:53:23 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2007-12-15 02:53:23 +0000
commit2cc074d4b374fcff704a5d4af8546afd0015465f (patch)
tree3002cc192239b93a42c5adf1e531c8de60e90021
parent5c3d29bc18d4b7a8a0d9f03837378a8f4f075d79 (diff)
add support for ipReasmTimeout
ok (and thanks to) reyk@
-rw-r--r--usr.sbin/snmpd/mib.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/snmpd/mib.c b/usr.sbin/snmpd/mib.c
index 2744a113e97..87ef8b408d9 100644
--- a/usr.sbin/snmpd/mib.c
+++ b/usr.sbin/snmpd/mib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mib.c,v 1.8 2007/12/15 02:37:58 reyk Exp $ */
+/* $OpenBSD: mib.c,v 1.9 2007/12/15 02:53:22 gilles Exp $ */
/*
* Copyright (c) 2007 Reyk Floeter <reyk@vantronix.net>
@@ -30,6 +30,8 @@
#include <net/if.h>
#include <net/if_types.h>
#include <netinet/in.h>
+#include <netinet/in_systm.h>
+#include <netinet/ip.h>
#include <netinet/ip_var.h>
#include <arpa/inet.h>
@@ -1289,6 +1291,7 @@ mib_ipoutnoroutes(struct oid *oid, struct ber_oid *o, struct ber_element **elm)
int
mib_ipreasmtimeout(struct oid *oid, struct ber_oid *o, struct ber_element **elm)
{
+ *elm = ber_add_integer(*elm, IPFRAGTTL);
return (0);
}