summaryrefslogtreecommitdiff
path: root/net-mgmt/net-snmp/files/patch-agent_mibgroup_mibII_tcp.c
blob: af46e3d86d4344ed39e9ee069cd614fc0467faf8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- agent/mibgroup/mibII/tcp.c.orig	2023-08-15 20:32:01 UTC
+++ agent/mibgroup/mibII/tcp.c
@@ -8,6 +8,14 @@
 #include <net-snmp/net-snmp-features.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_STDLIB_H
 #include <stdlib.h>
 #endif