Package: freebsd-utils / 10.1~svn273304-1

014_route.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Index: freebsd-utils-jessie/src/sbin/route/route.c
===================================================================
--- freebsd-utils-jessie.orig/src/sbin/route/route.c
+++ freebsd-utils-jessie/src/sbin/route/route.c
@@ -162,7 +162,7 @@ main(int argc, char **argv)
 	if (argc < 2)
 		usage(NULL);
 
-	while ((ch = getopt(argc, argv, "46nqdtv")) != -1)
+	while ((ch = getopt(argc, argv, "+46nqdtv")) != -1)
 		switch(ch) {
 		case '4':
 #ifdef INET
@@ -254,6 +254,11 @@ set_sofib(int fib)
 
 	if (fib < 0)
 		return (0);
+
+#ifndef SO_SETFIB
+#define SO_SETFIB 0x1014
+#endif
+
 	return (setsockopt(s, SOL_SOCKET, SO_SETFIB, (void *)&fib,
 	    sizeof(fib)));
 }