Xenomai  3.1
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 extern int rt_ip_rcv(struct rtskb *skb, struct rtpacket_type *pt);
28 
29 #if IS_ENABLED(CONFIG_XENO_DRIVERS_NET_ADDON_PROXY)
30 typedef void (*rt_ip_fallback_handler_t)(struct rtskb *skb);
31 
32 /*
33  * This hook can be used to register a fallback handler for incoming
34  * IP packets. Typically this is done to move over to the standard Linux
35  * IP protocol (e.g. for handling TCP).
36  * Manipulating the fallback handler is expected to happen only when the
37  * RTnetinterfaces are shut down (avoiding race conditions).
38  *
39  * Note that merging RT and non-RT traffic this way most likely breaks hard
40  * real-time constraints!
41  */
42 extern rt_ip_fallback_handler_t rt_ip_fallback_handler;
43 #endif
44 
45 #endif /* __RTNET_IP_INPUT_H_ */