ports/net-mgmt/net-snmp/files/patch-agent_mibgroup_mibII_ip.c
Ryan Steinmetz 647eff0a34
net-mgmt/net-snmp: Update to 5.9.4
PR:		277436
Submitted by:	Ivan Rozhuk <rozhuk.im@gmail.com>
2024-03-04 11:10:35 -05:00

16 lines
493 B
C

--- agent/mibgroup/mibII/ip.c.orig 2023-08-15 20:32:01 UTC
+++ agent/mibgroup/mibII/ip.c
@@ -5,6 +5,13 @@
#include <net-snmp/net-snmp-config.h>
#include "mibII_common.h"
+#include <sys/param.h>
+
+#if defined(__FreeBSD_version) && __FreeBSD_version > 1400066
+#define IPFRAGTTL 60 /* time to live for frags, slowhz */
+#define PR_SLOWHZ 2 /* 2 slow timeouts per second */
+#define PR_FASTHZ 5 /* 5 fast timeouts per second */
+#endif
#ifdef HAVE_SYS_HASHING_H
#include <sys/hashing.h>