diff options
author | Cy Schubert <cy@FreeBSD.org> | 2022-09-28 03:21:01 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2022-09-28 04:02:21 +0000 |
commit | ce59a3f9d9d15e48d112a1b2a1bd61d54b51f43f (patch) | |
tree | 230c8946bd5d914d488f66c134191dedbc23cf66 /net-mgmt/net-snmp | |
parent | 1b43fb5f2eb809e8323bb9364ac2405a956614ec (diff) | |
download | ports-ce59a3f9d9d15e48d112a1b2a1bd61d54b51f43f.tar.gz ports-ce59a3f9d9d15e48d112a1b2a1bd61d54b51f43f.zip |
net-mgmt/net-snmp: Fix build under 14-CURRENT > 1400066
IPFRAGTTL was removed in 81a34d374ed6e5a7b14f24583bc8e3abfdc66306
(1400067). Define the value in the port.
Diffstat (limited to 'net-mgmt/net-snmp')
3 files changed, 56 insertions, 0 deletions
diff --git a/net-mgmt/net-snmp/files/patch-agent_mibgroup_ip-mib_data__access_scalars__sysctl.c b/net-mgmt/net-snmp/files/patch-agent_mibgroup_ip-mib_data__access_scalars__sysctl.c new file mode 100644 index 000000000000..ce13e2022ab2 --- /dev/null +++ b/net-mgmt/net-snmp/files/patch-agent_mibgroup_ip-mib_data__access_scalars__sysctl.c @@ -0,0 +1,23 @@ +--- agent/mibgroup/ip-mib/data_access/scalars_sysctl.c.orig 2021-05-25 15:19:35.000000000 -0700 ++++ agent/mibgroup/ip-mib/data_access/scalars_sysctl.c 2022-09-27 20:25:15.687146000 -0700 +@@ -9,6 +9,7 @@ + #include <net-snmp/agent/net-snmp-agent-includes.h> + #include <net-snmp/data_access/ip_scalars.h> + ++#include <sys/param.h> + #include <sys/types.h> + #include <sys/protosw.h> + #include <sys/sysctl.h> +@@ -16,6 +17,12 @@ + #include <netinet/ip.h> + #include <errno.h> + #include <stdlib.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 + + /* XXX: the values passed to netsnmp_arch_ip_scalars(..) may or may not be + * portable to the other BSDs -- it seems to be portable back to FreeBSD 4.x diff --git a/net-mgmt/net-snmp/files/patch-agent_mibgroup_mibII_ip.c b/net-mgmt/net-snmp/files/patch-agent_mibgroup_mibII_ip.c new file mode 100644 index 000000000000..abf6b0ab944a --- /dev/null +++ b/net-mgmt/net-snmp/files/patch-agent_mibgroup_mibII_ip.c @@ -0,0 +1,16 @@ +--- agent/mibgroup/mibII/ip.c.orig 2021-05-25 15:19:35.000000000 -0700 ++++ agent/mibgroup/mibII/ip.c 2022-09-27 20:25:12.959145000 -0700 +@@ -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 + + #if HAVE_SYS_HASHING_H + #include <sys/hashing.h> diff --git a/net-mgmt/net-snmp/files/patch-agent_mibgroup_mibII_tcp.c b/net-mgmt/net-snmp/files/patch-agent_mibgroup_mibII_tcp.c new file mode 100644 index 000000000000..4919b4e3c974 --- /dev/null +++ b/net-mgmt/net-snmp/files/patch-agent_mibgroup_mibII_tcp.c @@ -0,0 +1,17 @@ +--- agent/mibgroup/mibII/tcp.c.orig 2021-05-25 15:19:35.000000000 -0700 ++++ agent/mibgroup/mibII/tcp.c 2022-09-27 20:36:22.284180000 -0700 +@@ -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 ++ + #if HAVE_STDLIB_H + #include <stdlib.h> + #endif |