patch-2.1.101 linux/net/econet/econet.c
Next file: linux/net/ipv4/af_inet.c
Previous file: linux/net/core/rtnetlink.c
Back to the patch index
Back to the overall index
- Lines: 42
- Date:
Fri May 8 00:08:02 1998
- Orig file:
v2.1.100/linux/net/econet/econet.c
- Orig date:
Sat May 2 14:19:55 1998
diff -u --recursive --new-file v2.1.100/linux/net/econet/econet.c linux/net/econet/econet.c
@@ -557,7 +557,7 @@
MOD_INC_USE_COUNT;
err = -ENOBUFS;
- sk = sk_alloc(AF_ECONET, GFP_KERNEL, 1);
+ sk = sk_alloc(PF_ECONET, GFP_KERNEL, 1);
if (sk == NULL)
goto out;
@@ -570,7 +570,7 @@
goto out_free;
memset(sk->protinfo.af_econet, 0, sizeof(struct econet_opt));
sk->zapped=0;
- sk->family = AF_ECONET;
+ sk->family = PF_ECONET;
sk->num = protocol;
sklist_insert_socket(&econet_sklist, sk);
@@ -727,12 +727,12 @@
}
static struct net_proto_family econet_family_ops = {
- AF_ECONET,
+ PF_ECONET,
econet_create
};
static struct proto_ops econet_ops = {
- AF_ECONET,
+ PF_ECONET,
sock_no_dup,
econet_release,
@@ -1008,7 +1008,7 @@
/* We can count ourselves lucky Acorn machines are too dim to
speak IPv6. :-) */
- if ((error = sock_create(AF_INET, SOCK_DGRAM, 0, &udpsock)) < 0)
+ if ((error = sock_create(PF_INET, SOCK_DGRAM, 0, &udpsock)) < 0)
{
printk("AUN: socket error %d\n", -error);
return error;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov