summaryrefslogtreecommitdiff
path: root/libdde_linux26/include/dde26_net.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-07-27 22:07:53 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-07-27 22:07:53 +0000
commit4fbe7358c7747a9165f776eb19addbb9baf7def2 (patch)
treebc7076b4f6d10c2cc2942539bb666e50f0b66954 /libdde_linux26/include/dde26_net.h
parent21adb5284111190057db245cfc2b54091920c373 (diff)
rename libdde_linux26 into libdde-linux26 to make dpkg-source happy
Diffstat (limited to 'libdde_linux26/include/dde26_net.h')
-rw-r--r--libdde_linux26/include/dde26_net.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/libdde_linux26/include/dde26_net.h b/libdde_linux26/include/dde26_net.h
deleted file mode 100644
index 204f37dd..00000000
--- a/libdde_linux26/include/dde26_net.h
+++ /dev/null
@@ -1,40 +0,0 @@
-#ifndef __DDE_26_NET_H
-#define __DDE_26_NET_H
-
-#include <linux/skbuff.h>
-#include <linux/netdevice.h>
-
-/** rx callback function */
-typedef int (*linux_rx_callback)(char *, int, struct net_device *);
-
-extern linux_rx_callback l4dde26_rx_callback;
-
-/** Register rx callback function.
- *
- * This registers a function to be a rx callback. Whenever an ethernet packet
- * arrives and is processed by a driver or a softirq, it will end up in either
- * netif_rx() or netif_receive_skb(). Both will finally try to hand this to
- * a DDE user using a previously registered callback.
- *
- * \param cb new callback function
- * \return old callback function pointer
- */
-linux_rx_callback l4dde26_register_rx_callback(linux_rx_callback cb);
-
-
-/** Run callback function.
- */
-static inline int l4dde26_do_rx_callback(struct sk_buff *s)
-{
- if (l4dde26_rx_callback != NULL) {
- int ret;
- skb_push(s, s->dev->hard_header_len);
- ret = l4dde26_rx_callback(s->data, s->len, s->dev);
- dev_kfree_skb_any(s);
- return ret;
- }
-
- return 0;
-}
-
-#endif