patch-2.1.101 linux/net/rose/af_rose.c

Next file: linux/net/sched/cls_api.c
Previous file: linux/net/packet/af_packet.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.100/linux/net/rose/af_rose.c linux/net/rose/af_rose.c
@@ -149,7 +149,7 @@
 	struct sock *sk;
 	rose_cb *rose;
 
-	if ((sk = sk_alloc(AF_ROSE, GFP_ATOMIC, 1)) == NULL)
+	if ((sk = sk_alloc(PF_ROSE, GFP_ATOMIC, 1)) == NULL)
 		return NULL;
 
 	if ((rose = kmalloc(sizeof(*rose), GFP_ATOMIC)) == NULL) {
@@ -1320,12 +1320,12 @@
 } 
 
 static struct net_proto_family rose_family_ops = {
-	AF_ROSE,
+	PF_ROSE,
 	rose_create
 };
 
 static struct proto_ops rose_proto_ops = {
-	AF_ROSE,
+	PF_ROSE,
 
 	sock_no_dup,
 	rose_release,
@@ -1462,7 +1462,7 @@
 #endif
 	unregister_netdevice_notifier(&rose_dev_notifier);
 
-	sock_unregister(AF_ROSE);
+	sock_unregister(PF_ROSE);
 
 	for (i = 0; i < rose_ndevs; i++) {
 		if (dev_rose[i].priv != NULL) {

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