Xenomai  3.0.8
ip_input.h
1 /* ipv4/ip_input.h
2  *
3  * RTnet - real-time networking subsystem
4  * Copyright (C) 1999,2000 Zentropic Computing, LLC
5  * 2002 Ulrich Marx <marx@kammer.uni-hannover.de>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20  */
21 #ifndef __RTNET_IP_INPUT_H_
22 #define __RTNET_IP_INPUT_H_
23 
24 #include <rtskb.h>
25 #include <stack_mgr.h>
26 
27 
28 extern int rt_ip_rcv(struct rtskb *skb, struct rtpacket_type *pt);
29 
30 #if IS_ENABLED(CONFIG_XENO_DRIVERS_NET_ADDON_PROXY)
31 typedef void (*rt_ip_fallback_handler_t)(struct rtskb *skb);
32 
33 /*
34  * This hook can be used to register a fallback handler for incoming
35  * IP packets. Typically this is done to move over to the standard Linux
36  * IP protocol (e.g. for handling TCP).
37  * Manipulating the fallback handler is expected to happen only when the
38  * RTnetinterfaces are shut down (avoiding race conditions).
39  *
40  * Note that merging RT and non-RT traffic this way most likely breaks hard
41  * real-time constraints!
42  */
43 extern rt_ip_fallback_handler_t rt_ip_fallback_handler;
44 #endif
45 
46 
47 #endif /* __RTNET_IP_INPUT_H_ */