patch-1.3.54 linux/net/core/net_alias.c

Next file: linux/net/ipv4/ip_forward.c
Previous file: linux/net/appletalk/aarp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.53/linux/net/core/net_alias.c linux/net/core/net_alias.c
@@ -1218,7 +1218,7 @@
     
   dev = nat->dev_select(nat, main_dev, (struct sockaddr *)&sin_src);
 
-  if (dev == NULL) return main_dev;
+  if (dev == NULL || dev->family != family) return main_dev;
   
   /*
    * dev ok only if it is alias of main_dev

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this