patch-2.3.99-pre6 linux/net/packet/af_packet.c
Next file: linux/net/rose/af_rose.c
Previous file: linux/net/netsyms.c
Back to the patch index
Back to the overall index
- Lines: 88
- Date:
Wed Apr 26 12:13:17 2000
- Orig file:
v2.3.99-pre5/linux/net/packet/af_packet.c
- Orig date:
Tue Mar 14 19:10:40 2000
diff -u --recursive --new-file v2.3.99-pre5/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.33 2000/03/13 22:11:50 davem Exp $
+ * Version: $Id: af_packet.c,v 1.34 2000/04/25 04:13:35 davem Exp $
*
* Authors: Ross Biro, <bir7@leland.Stanford.Edu>
* Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
@@ -1723,46 +1723,44 @@
#ifdef CONFIG_SOCK_PACKET
struct proto_ops packet_ops_spkt = {
- PF_PACKET,
+ family: PF_PACKET,
- packet_release,
- packet_bind_spkt,
- sock_no_connect,
- sock_no_socketpair,
- sock_no_accept,
- packet_getname_spkt,
- datagram_poll,
- packet_ioctl,
- sock_no_listen,
- sock_no_shutdown,
- sock_no_setsockopt,
- sock_no_getsockopt,
- sock_no_fcntl,
- packet_sendmsg_spkt,
- packet_recvmsg,
- sock_no_mmap
+ release: packet_release,
+ bind: packet_bind_spkt,
+ connect: sock_no_connect,
+ socketpair: sock_no_socketpair,
+ accept: sock_no_accept,
+ getname: packet_getname_spkt,
+ poll: datagram_poll,
+ ioctl: packet_ioctl,
+ listen: sock_no_listen,
+ shutdown: sock_no_shutdown,
+ setsockopt: sock_no_setsockopt,
+ getsockopt: sock_no_getsockopt,
+ sendmsg: packet_sendmsg_spkt,
+ recvmsg: packet_recvmsg,
+ mmap: sock_no_mmap,
};
#endif
struct proto_ops packet_ops = {
- PF_PACKET,
+ family: PF_PACKET,
- packet_release,
- packet_bind,
- sock_no_connect,
- sock_no_socketpair,
- sock_no_accept,
- packet_getname,
- packet_poll,
- packet_ioctl,
- sock_no_listen,
- sock_no_shutdown,
- packet_setsockopt,
- packet_getsockopt,
- sock_no_fcntl,
- packet_sendmsg,
- packet_recvmsg,
- packet_mmap,
+ release: packet_release,
+ bind: packet_bind,
+ connect: sock_no_connect,
+ socketpair: sock_no_socketpair,
+ accept: sock_no_accept,
+ getname: packet_getname,
+ poll: packet_poll,
+ ioctl: packet_ioctl,
+ listen: sock_no_listen,
+ shutdown: sock_no_shutdown,
+ setsockopt: packet_setsockopt,
+ getsockopt: packet_getsockopt,
+ sendmsg: packet_sendmsg,
+ recvmsg: packet_recvmsg,
+ mmap: packet_mmap,
};
static struct net_proto_family packet_family_ops = {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)