patch-2.1.101 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

diff -u --recursive --new-file v2.1.100/linux/net/packet/af_packet.c linux/net/packet/af_packet.c
@@ -704,7 +704,7 @@
 	MOD_INC_USE_COUNT;
 
 	err = -ENOBUFS;
-	sk = sk_alloc(AF_PACKET, GFP_KERNEL, 1);
+	sk = sk_alloc(PF_PACKET, GFP_KERNEL, 1);
 	if (sk == NULL)
 		goto out;
 
@@ -721,7 +721,7 @@
 		goto out_free;
 	memset(sk->protinfo.af_packet, 0, sizeof(struct packet_opt));
 	sk->zapped=0;
-	sk->family = AF_PACKET;
+	sk->family = PF_PACKET;
 	sk->num = protocol;
 
 	/*
@@ -1176,7 +1176,7 @@
 
 #ifdef CONFIG_SOCK_PACKET
 struct proto_ops packet_ops_spkt = {
-	AF_PACKET,
+	PF_PACKET,
 
 	sock_no_dup,
 	packet_release,
@@ -1198,7 +1198,7 @@
 #endif
 
 struct proto_ops packet_ops = {
-	AF_PACKET,
+	PF_PACKET,
 
 	sock_no_dup,
 	packet_release,
@@ -1223,7 +1223,7 @@
 };
 
 static struct net_proto_family packet_family_ops = {
-	AF_PACKET,
+	PF_PACKET,
 	packet_create
 };
 
@@ -1238,7 +1238,7 @@
 void cleanup_module(void)
 {
 	unregister_netdevice_notifier(&packet_netdev_notifier);
-	sock_unregister(packet_family_ops.family);
+	sock_unregister(PF_PACKET);
 	return;
 }
 

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