patch-2.1.101 linux/net/ax25/af_ax25.c
Next file: linux/net/core/rtnetlink.c
Previous file: linux/net/appletalk/ddp.c
Back to the patch index
Back to the overall index
- Lines: 58
- Date:
Fri May 8 00:08:02 1998
- Orig file:
v2.1.100/linux/net/ax25/af_ax25.c
- Orig date:
Tue Apr 14 14:29:26 1998
diff -u --recursive --new-file v2.1.100/linux/net/ax25/af_ax25.c linux/net/ax25/af_ax25.c
@@ -787,13 +787,13 @@
switch (sock->type) {
case SOCK_DGRAM:
- if (protocol == 0 || protocol == AF_AX25)
+ if (protocol == 0 || protocol == PF_AX25)
protocol = AX25_P_TEXT;
break;
case SOCK_SEQPACKET:
switch (protocol) {
case 0:
- case AF_AX25: /* For CLX */
+ case PF_AX25: /* For CLX */
protocol = AX25_P_TEXT;
break;
case AX25_P_SEGMENT:
@@ -828,7 +828,7 @@
return -ESOCKTNOSUPPORT;
}
- if ((sk = sk_alloc(AF_AX25, GFP_ATOMIC, 1)) == NULL)
+ if ((sk = sk_alloc(PF_AX25, GFP_ATOMIC, 1)) == NULL)
return -ENOMEM;
if ((ax25 = ax25_create_cb()) == NULL) {
@@ -854,7 +854,7 @@
struct sock *sk;
ax25_cb *ax25;
- if ((sk = sk_alloc(AF_AX25, GFP_ATOMIC, 1)) == NULL)
+ if ((sk = sk_alloc(PF_AX25, GFP_ATOMIC, 1)) == NULL)
return NULL;
if ((ax25 = ax25_create_cb()) == NULL) {
@@ -1689,12 +1689,12 @@
static struct net_proto_family ax25_family_ops =
{
- AF_AX25,
+ PF_AX25,
ax25_create
};
static struct proto_ops ax25_proto_ops = {
- AF_AX25,
+ PF_AX25,
sock_no_dup,
ax25_release,
@@ -1820,7 +1820,7 @@
ax25_packet_type.type = htons(ETH_P_AX25);
dev_remove_pack(&ax25_packet_type);
- sock_unregister(AF_AX25);
+ sock_unregister(PF_AX25);
}
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov