patch-1.3.26 linux/net/appletalk/ddp.c
Next file: linux/net/ax25/af_ax25.c
Previous file: linux/net/Changes
Back to the patch index
Back to the overall index
- Lines: 45
- Date:
Mon Sep 11 20:15:58 1995
- Orig file:
v1.3.25/linux/net/appletalk/ddp.c
- Orig date:
Thu Sep 7 17:17:20 1995
diff -u --recursive --new-file v1.3.25/linux/net/appletalk/ddp.c linux/net/appletalk/ddp.c
@@ -1071,6 +1071,7 @@
sk->next=NULL;
sk->broadcast=0;
sk->no_check=0; /* Checksums on by default */
+ sk->allocation=GFP_KERNEL;
sk->rcvbuf=SK_RMEM_MAX;
sk->sndbuf=SK_WMEM_MAX;
sk->pair=NULL;
@@ -1774,7 +1775,6 @@
int err;
long amount=0;
atalk_socket *sk=(atalk_socket *)sock->data;
- int v;
switch(cmd)
{
@@ -1782,16 +1782,16 @@
* Protocol layer
*/
case TIOCOUTQ:
- v=sk->sndbuf-sk->wmem_alloc;
- if(v<0)
- v=0;
+ amount=sk->sndbuf-sk->wmem_alloc;
+ if(amount<0)
+ amount=0;
break;
case TIOCINQ:
{
struct sk_buff *skb;
/* These two are safe on a single CPU system as only user tasks fiddle here */
if((skb=skb_peek(&sk->receive_queue))!=NULL)
- v=skb->len-sizeof(struct ddpehdr);
+ amount=skb->len-sizeof(struct ddpehdr);
break;
}
case SIOCGSTAMP:
@@ -1921,6 +1921,6 @@
atalk_if_get_info
});
- printk("Appletalk BETA 0.12 for Linux NET3.030\n");
+ printk("Appletalk BETA 0.13 for Linux NET3.031\n");
}
#endif
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected]
with Sam's (original) version of this