CNDP  22.08.0
cnet_route.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (c) 2016-2022 Intel Corporation
3  */
4 
5 #ifndef __CNET_ROUTE_H
6 #define __CNET_ROUTE_H
7 
13 struct netif;
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 #define RT_DEFAULT_TIMEOUT 300
19 #define RTM_INFINITY 16
20 
21 /* Route flag values */
22 #define _RTF_UP 0x1
23 #define _RTF_GATEWAY 0x2
24 #define _RTF_HOST 0x4
25 #define _RTF_REJECT 0x8
26 #define _RTF_DYNAMIC 0x10
27 #define _RTF_MODIFIED 0x20
28 #define _RTF_DONE 0x40
29 #define _RTF_MASK 0x80
30 #define _RTF_CLONING 0x100
31 #define _RTF_XRESOLVE 0x200
32 #define _RTF_LLINFO 0x400
33 #define _RTF_STATIC 0x800
34 #define _RTF_BLACKHOLE 0x1000
35 #define _RTF_PROTO1 0x4000
36 #define _RTF_PROTO2 0x8000
37 #define _RTF_PREF 0x10000
38 #define _RTF_SRCADDR 0x20000
39 #define _RTF_MBINDING 0x40000
40 #define _RTF_SKIP 0x80000
42 #ifdef __cplusplus
43 }
44 #endif
45 
46 #endif /* __CNET_ROUTE_H */