Unbreak runtime.

This has been in one of my trees for months...
This commit is contained in:
ajacoutot 2022-11-19 17:50:44 +00:00
parent 4d9209df96
commit 8ea00fb15b
2 changed files with 21 additions and 1 deletions

View File

@ -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

View File

@ -0,0 +1,20 @@
#include <stdio.h>
#include <net/if.h>
#include <net/pfvar.h>
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__()