patch-2.1.99 linux/net/core/sock.c

Next file: linux/net/econet/Makefile
Previous file: linux/net/core/rtnetlink.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.98/linux/net/core/sock.c linux/net/core/sock.c
@@ -290,6 +290,7 @@
 			break;
 			
 			
+#ifdef CONFIG_NETDEVICES
 		case SO_BINDTODEVICE:
 			/* Bind this socket to a particular device like "eth0",
 			 * as specified in an ifreq structure. If the device
@@ -316,6 +317,7 @@
 				}
 			}
 			return 0;
+#endif
 
 
 #ifdef CONFIG_FILTER

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