00001 /****************************************************************************** 00002 * DDELinux networking utilities. * 00003 * * 00004 * Bjoern Doebel <doebel@tudos.org> * 00005 * * 00006 * (c) 2005 - 2007 Technische Universitaet Dresden * 00007 * This file is part of DROPS, which is distributed under the terms of the * 00008 * GNU General Public License 2. Please see the COPYING file for details. * 00009 ******************************************************************************/ 00010 00011 #include <l4/dde/linux26/dde26_net.h> 00012 00013 #include <linux/kernel.h> 00014 #include <linux/skbuff.h> 00015 00016 #include "local.h" 00017 00018 00019 /* Callback function to be called if a network packet arrives and needs to 00020 * be handled by netif_rx() or netif_receive_skb() 00021 */ 00022 linux_rx_callback l4dde26_rx_callback = NULL; 00023 00024 00025 /* Register a netif_rx callback function. 00026 * 00027 * \return pointer to old callback function 00028 */ 00029 linux_rx_callback l4dde26_register_rx_callback(linux_rx_callback cb) 00030 { 00031 linux_rx_callback old = l4dde26_rx_callback; 00032 l4dde26_rx_callback = cb; 00033 DEBUG_MSG("New rx callback @ %p.", cb); 00034 00035 return old; 00036 }
1.5.6