patch-2.2.6 linux/net/irda/irlan/irlan_eth.c
Next file: linux/net/irda/irlan/irlan_filter.c
Previous file: linux/net/irda/irlan/irlan_common.c
Back to the patch index
Back to the overall index
- Lines: 52
- Date:
Thu Apr 15 05:42:42 1999
- Orig file:
v2.2.5/linux/net/irda/irlan/irlan_eth.c
- Orig date:
Wed Mar 10 15:29:52 1999
diff -u --recursive --new-file v2.2.5/linux/net/irda/irlan/irlan_eth.c linux/net/irda/irlan/irlan_eth.c
@@ -6,7 +6,7 @@
* Status: Experimental.
* Author: Dag Brattli <dagb@cs.uit.no>
* Created at: Thu Oct 15 08:37:58 1998
- * Modified at: Wed Feb 3 19:58:28 1999
+ * Modified at: Mon Mar 22 17:41:59 1999
* Modified by: Dag Brattli <dagb@cs.uit.no>
* Sources: skeleton.c by Donald Becker <becker@CESDIS.gsfc.nasa.gov>
* slip.c by Laurence Culhane, <loz@holmes.demon.co.uk>
@@ -31,6 +31,7 @@
#include <net/arp.h>
#include <net/irda/irda.h>
+#include <net/irda/irmod.h>
#include <net/irda/irlan_common.h>
#include <net/irda/irlan_eth.h>
@@ -123,20 +124,20 @@
* This function gets the data that is received on the data channel
*
*/
-void irlan_eth_receive(void *instance, void *sap, struct sk_buff *skb)
+int irlan_eth_receive(void *instance, void *sap, struct sk_buff *skb)
{
struct irlan_cb *self;
self = (struct irlan_cb *) instance;
- ASSERT(self != NULL, return;);
- ASSERT(self->magic == IRLAN_MAGIC, return;);
+ ASSERT(self != NULL, return 0;);
+ ASSERT(self->magic == IRLAN_MAGIC, return 0;);
if (skb == NULL) {
++self->stats.rx_dropped;
- return;
+ return 0;
}
- ASSERT(skb->len > 1, return;);
+ ASSERT(skb->len > 1, return 0;);
/*
* Adopt this frame! Important to set all these fields since they
@@ -151,7 +152,7 @@
self->stats.rx_packets++;
self->stats.rx_bytes += skb->len;
-/* net_bh(); */
+ return 0;
}
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)