ports/security/fragrouter/files/patch-fragrouter.c
Robert Clausecker 37cf0da23d 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
2022-11-11 21:32:38 +01:00

13 lines
362 B
C

--- 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';