summaryrefslogtreecommitdiff
path: root/package/iptables/patches/07-ifname_warning.patch
blob: d6ffe138475fac54680be8a9c1b2994367493a5c (plain)
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
26
27
28
diff -ur iptables.old/ip6tables.c iptables.dev/ip6tables.c
--- iptables.old/ip6tables.c	2006-01-30 09:43:12.000000000 +0100
+++ iptables.dev/ip6tables.c	2007-01-02 00:29:50.000000000 +0100
@@ -857,8 +857,9 @@
 		for (i = 0; vianame[i]; i++) {
 			if (!isalnum(vianame[i]) 
 			    && vianame[i] != '_' 
+			    && vianame[i] != '-' 
 			    && vianame[i] != '.') {
-				printf("Warning: wierd character in interface"
+				printf("Warning: weird character in interface"
 				       " `%s' (No aliases, :, ! or *).\n",
 				       vianame);
 				break;
diff -ur iptables.old/iptables.c iptables.dev/iptables.c
--- iptables.old/iptables.c	2006-01-30 09:43:09.000000000 +0100
+++ iptables.dev/iptables.c	2007-01-02 00:29:38.000000000 +0100
@@ -805,8 +805,9 @@
 		for (i = 0; vianame[i]; i++) {
 			if (!isalnum(vianame[i]) 
 			    && vianame[i] != '_' 
+			    && vianame[i] != '-' 
 			    && vianame[i] != '.') {
-				printf("Warning: wierd character in interface"
+				printf("Warning: weird character in interface"
 				       " `%s' (No aliases, :, ! or *).\n",
 				       vianame);
 				break;