diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-07-27 22:15:01 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-07-27 22:15:01 +0000 |
commit | 7996a3d79d55b7f879dfd62e202bbfe2963718d3 (patch) | |
tree | 8d9f6759fec4099b9be503c11c7ed174f7204980 /libdde-linux26/lib/src/arch/l4/net.c | |
parent | 4fbe7358c7747a9165f776eb19addbb9baf7def2 (diff) |
really properly move files
Diffstat (limited to 'libdde-linux26/lib/src/arch/l4/net.c')
-rw-r--r-- | libdde-linux26/lib/src/arch/l4/net.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/libdde-linux26/lib/src/arch/l4/net.c b/libdde-linux26/lib/src/arch/l4/net.c new file mode 100644 index 00000000..6e799119 --- /dev/null +++ b/libdde-linux26/lib/src/arch/l4/net.c @@ -0,0 +1,36 @@ +/****************************************************************************** + * DDELinux networking utilities. * + * * + * Bjoern Doebel <doebel@tudos.org> * + * * + * (c) 2005 - 2007 Technische Universitaet Dresden * + * This file is part of DROPS, which is distributed under the terms of the * + * GNU General Public License 2. Please see the COPYING file for details. * + ******************************************************************************/ + +#include <dde26_net.h> + +#include <linux/kernel.h> +#include <linux/skbuff.h> + +#include "local.h" + + +/* Callback function to be called if a network packet arrives and needs to + * be handled by netif_rx() or netif_receive_skb() + */ +linux_rx_callback l4dde26_rx_callback = NULL; + + +/* Register a netif_rx callback function. + * + * \return pointer to old callback function + */ +linux_rx_callback l4dde26_register_rx_callback(linux_rx_callback cb) +{ + linux_rx_callback old = l4dde26_rx_callback; + l4dde26_rx_callback = cb; + DEBUG_MSG("New rx callback @ %p.", cb); + + return old; +} |