patch-2.1.88 linux/net/ipv4/ip_gre.c

Next file: linux/net/ipv4/ip_masq_ftp.c
Previous file: linux/net/ipv4/ip_fw.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.87/linux/net/ipv4/ip_gre.c linux/net/ipv4/ip_gre.c
@@ -628,7 +628,7 @@
 				goto tx_error;
 
 			addr6 = (struct in6_addr*)&neigh->primary_key;
-			addr_type = neigh->type;
+			addr_type = ipv6_addr_type(addr6);
 
 			if (addr_type == IPV6_ADDR_ANY) {
 				addr6 = &skb->nh.ipv6h->daddr;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov