patch-1.3.86 linux/net/ax25/af_ax25.c
Next file: linux/net/ax25/ax25_subr.c
Previous file: linux/net/appletalk/ddp.c
Back to the patch index
Back to the overall index
- Lines: 62
- Date:
Tue Apr 9 14:36:31 1996
- Orig file:
v1.3.85/linux/net/ax25/af_ax25.c
- Orig date:
Mon Apr 8 19:01:46 1996
diff -u --recursive --new-file v1.3.85/linux/net/ax25/af_ax25.c linux/net/ax25/af_ax25.c
@@ -447,7 +447,7 @@
ax25->digipeat = NULL;
}
- kfree_s(ax25->sk, sizeof(*ax25->sk));
+ sk_free(ax25->sk);
kfree_s(ax25, sizeof(*ax25));
}
} else {
@@ -1105,25 +1105,12 @@
sk->socket = sock;
sk->type = sock->type;
sk->protocol = protocol;
- sk->dead = 0;
sk->next = NULL;
- sk->broadcast = 0;
sk->allocation = GFP_KERNEL;
sk->rcvbuf = SK_RMEM_MAX;
sk->sndbuf = SK_WMEM_MAX;
- sk->wmem_alloc = 0;
- sk->rmem_alloc = 0;
- sk->users = 0;
- sk->debug = 0;
- sk->destroy = 0;
- sk->prot = NULL; /* So we use default free mechanisms */
- sk->err = 0;
- sk->localroute = 0;
- sk->send_head = NULL;
sk->state = TCP_CLOSE;
- sk->shutdown = 0;
sk->priority = SOPRI_NORMAL;
- sk->ack_backlog = 0;
sk->mtu = AX25_MTU; /* 256 */
sk->zapped = 1;
@@ -1176,26 +1163,14 @@
skb_queue_head_init(&sk->write_queue);
skb_queue_head_init(&sk->back_log);
- sk->dead = 0;
sk->next = NULL;
sk->priority = osk->priority;
- sk->broadcast = 0;
sk->protocol = osk->protocol;
sk->rcvbuf = osk->rcvbuf;
sk->sndbuf = osk->sndbuf;
- sk->wmem_alloc = 0;
- sk->rmem_alloc = 0;
- sk->users = 0;
- sk->ack_backlog = 0;
- sk->destroy = 0;
- sk->prot = NULL; /* So we use default free mechanisms */
- sk->err = 0;
- sk->localroute = 0;
- sk->send_head = NULL;
sk->debug = osk->debug;
sk->state = TCP_ESTABLISHED;
sk->window = osk->window;
- sk->shutdown = 0;
sk->mtu = osk->mtu;
sk->sleep = osk->sleep;
sk->zapped = osk->zapped;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this