Nick Kralevich | a67e4de | 2013-01-14 11:28:26 -0800 | [diff] [blame] | 1 | /**************************************************************************** |
| 2 | **************************************************************************** |
| 3 | *** |
| 4 | *** This header was automatically generated from a Linux kernel header |
| 5 | *** of the same name, to make information necessary for userspace to |
| 6 | *** call into the kernel available to libc. It contains only constants, |
| 7 | *** structures, and macros generated from the original header, and thus, |
| 8 | *** contains no copyrightable information. |
| 9 | *** |
| 10 | *** To edit the content of this header, modify the corresponding |
| 11 | *** source file (e.g. under external/kernel-headers/original/) then |
| 12 | *** run bionic/libc/kernel/tools/update_all.py |
| 13 | *** |
| 14 | *** Any manual change here will be lost the next time this script will |
| 15 | *** be run. You've been warned! |
| 16 | *** |
| 17 | **************************************************************************** |
| 18 | ****************************************************************************/ |
Christopher Ferris | b8a95e2 | 2019-10-02 18:29:20 -0700 | [diff] [blame] | 19 | #ifndef _UAPI_LINUX_NEXTHOP_H |
| 20 | #define _UAPI_LINUX_NEXTHOP_H |
| 21 | #include <linux/types.h> |
| 22 | struct nhmsg { |
| 23 | unsigned char nh_family; |
| 24 | unsigned char nh_scope; |
| 25 | unsigned char nh_protocol; |
| 26 | unsigned char resvd; |
| 27 | unsigned int nh_flags; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 28 | }; |
Christopher Ferris | b8a95e2 | 2019-10-02 18:29:20 -0700 | [diff] [blame] | 29 | struct nexthop_grp { |
| 30 | __u32 id; |
| 31 | __u8 weight; |
| 32 | __u8 resvd1; |
| 33 | __u16 resvd2; |
| 34 | }; |
| 35 | enum { |
| 36 | NEXTHOP_GRP_TYPE_MPATH, |
| 37 | __NEXTHOP_GRP_TYPE_MAX, |
| 38 | }; |
| 39 | #define NEXTHOP_GRP_TYPE_MAX (__NEXTHOP_GRP_TYPE_MAX - 1) |
| 40 | enum { |
| 41 | NHA_UNSPEC, |
| 42 | NHA_ID, |
| 43 | NHA_GROUP, |
| 44 | NHA_GROUP_TYPE, |
| 45 | NHA_BLACKHOLE, |
| 46 | NHA_OIF, |
| 47 | NHA_GATEWAY, |
| 48 | NHA_ENCAP_TYPE, |
| 49 | NHA_ENCAP, |
| 50 | NHA_GROUPS, |
| 51 | NHA_MASTER, |
Christopher Ferris | 8177cdf | 2020-08-03 11:53:55 -0700 | [diff] [blame] | 52 | NHA_FDB, |
Christopher Ferris | b8a95e2 | 2019-10-02 18:29:20 -0700 | [diff] [blame] | 53 | __NHA_MAX, |
| 54 | }; |
| 55 | #define NHA_MAX (__NHA_MAX - 1) |
Nick Kralevich | a67e4de | 2013-01-14 11:28:26 -0800 | [diff] [blame] | 56 | #endif |