From 8ea00fb15b81e2fb9a7b5192f0ef61d16a8d378a Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Sat, 19 Nov 2022 17:50:44 +0000 Subject: [PATCH] Unbreak runtime. This has been in one of my trees for months... --- net/sshuttle/Makefile | 2 +- .../patches/patch-sshuttle_methods_pf_py | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 net/sshuttle/patches/patch-sshuttle_methods_pf_py diff --git a/net/sshuttle/Makefile b/net/sshuttle/Makefile index 8d6c6878cf3..321ccb4ed11 100644 --- a/net/sshuttle/Makefile +++ b/net/sshuttle/Makefile @@ -2,7 +2,7 @@ COMMENT= VPN over an SSH tunnel MODPY_EGG_VERSION= 1.1.1 DISTNAME= sshuttle-${MODPY_EGG_VERSION} -REVISION= 2 +REVISION= 3 FIX_EXTRACT_PERMISSIONS=Yes diff --git a/net/sshuttle/patches/patch-sshuttle_methods_pf_py b/net/sshuttle/patches/patch-sshuttle_methods_pf_py new file mode 100644 index 00000000000..413bda2f0fc --- /dev/null +++ b/net/sshuttle/patches/patch-sshuttle_methods_pf_py @@ -0,0 +1,20 @@ +#include +#include +#include + +int main (void) { + printf("%zu\n", sizeof(struct pfioc_rule)); +} + +Index: sshuttle/methods/pf.py +--- sshuttle/methods/pf.py.orig ++++ sshuttle/methods/pf.py +@@ -266,7 +266,7 @@ class OpenBsd(Generic): + ("proto_variant", c_uint8), + ("direction", c_uint8)] + +- self.pfioc_rule = c_char * 3424 ++ self.pfioc_rule = c_char * 3408 + self.pfioc_natlook = pfioc_natlook + super(OpenBsd, self).__init__() +