blob: 6e799119bf4a5efa67fee02a939df4cca9f82223 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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;
}
|