patch-2.4.8 linux/net/packet/af_packet.c
Next file: linux/net/sched/cls_route.c
Previous file: linux/net/netsyms.c
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Tue Aug 7 08:30:50 2001
- Orig file:
v2.4.7/linux/net/packet/af_packet.c
- Orig date:
Tue Jul 3 17:08:22 2001
diff -u --recursive --new-file v2.4.7/linux/net/packet/af_packet.c linux/net/packet/af_packet.c
@@ -5,7 +5,7 @@
*
* PACKET - implements raw packet sockets.
*
- * Version: $Id: af_packet.c,v 1.55 2001/06/28 01:34:29 davem Exp $
+ * Version: $Id: af_packet.c,v 1.56 2001/08/06 13:21:16 davem Exp $
*
* Authors: Ross Biro, <bir7@leland.Stanford.Edu>
* Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
@@ -1488,14 +1488,15 @@
return br_ioctl_hook(arg);
#endif
#endif
+ return -ENOPKG;
case SIOCGIFDIVERT:
case SIOCSIFDIVERT:
#ifdef CONFIG_NET_DIVERT
- return(divert_ioctl(cmd, (struct divert_cf *) arg));
-#endif /* CONFIG_NET_DIVERT */
-
+ return divert_ioctl(cmd, (struct divert_cf *) arg);
+#else
return -ENOPKG;
+#endif /* CONFIG_NET_DIVERT */
#ifdef CONFIG_INET
case SIOCADDRT:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)