patch-2.1.101 linux/net/netlink/af_netlink.c

Next file: linux/net/netlink/netlink_dev.c
Previous file: linux/net/ipx/af_spx.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.100/linux/net/netlink/af_netlink.c linux/net/netlink/af_netlink.c
@@ -147,7 +147,7 @@
 
 	sock->ops = &netlink_ops;
 
-	sk = sk_alloc(AF_NETLINK, GFP_KERNEL, 1);
+	sk = sk_alloc(PF_NETLINK, GFP_KERNEL, 1);
 	if (!sk)
 		return -ENOMEM;
 
@@ -980,7 +980,7 @@
 #endif
 
 struct proto_ops netlink_ops = {
-	AF_NETLINK,
+	PF_NETLINK,
 
 	sock_no_dup,
 	netlink_release,
@@ -1001,7 +1001,7 @@
 };
 
 struct net_proto_family netlink_family_ops = {
-	AF_NETLINK,
+	PF_NETLINK,
 	netlink_create
 };
 

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