summaryrefslogtreecommitdiff
path: root/security/fragrouter/files/patch-fragrouter.c
diff options
context:
space:
mode:
authorRobert Clausecker <fuz@fuz.su>2022-11-11 21:32:38 +0100
committerJuraj Lutter <otis@FreeBSD.org>2022-11-11 21:32:38 +0100
commit37cf0da23dbd0c1d91602d25e831a7dc0dde1224 (patch)
tree161c1a81a5ce822a823841f0c531d1ad3ec9c1c5 /security/fragrouter/files/patch-fragrouter.c
parentx11/py-autotiling: Add new port (diff)
security/fragrouter: fix build on BPF-less jails
Such jails don't have /dev/bpf0, making a crucial configure test fail. Fix the configure test to make the build succeed (e.g. on armv7). And while here, also assume MAINTAINER. PR: 267646
Diffstat (limited to 'security/fragrouter/files/patch-fragrouter.c')
-rw-r--r--security/fragrouter/files/patch-fragrouter.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/security/fragrouter/files/patch-fragrouter.c b/security/fragrouter/files/patch-fragrouter.c
new file mode 100644
index 000000000000..173cac0f2c04
--- /dev/null
+++ b/security/fragrouter/files/patch-fragrouter.c
@@ -0,0 +1,13 @@
+--- fragrouter.c.orig 2022-11-08 17:15:14 UTC
++++ fragrouter.c
+@@ -104,8 +104,8 @@ usage(void)
+ int
+ main(int argc, char *argv[])
+ {
+- char c, ebuf[BUFSIZ], hops[BUFSIZ], *dev = NULL;
+- int num = 0, type = -1, hopptr = 4;
++ char ebuf[BUFSIZ], hops[BUFSIZ], *dev = NULL;
++ int c, num = 0, type = -1, hopptr = 4;
+ attack_handler attack;
+
+ hops[0] = '\0';