blob: 4bc9ff0b26ae45b2d3900b41b5d81202e15f233f [file] [log] [blame]
Nick Kralevicha67e4de2013-01-14 11:28:26 -08001/****************************************************************************
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 Ferrisb8a95e22019-10-02 18:29:20 -070019#ifndef _UAPI_LINUX_NEXTHOP_H
20#define _UAPI_LINUX_NEXTHOP_H
21#include <linux/types.h>
22struct 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 Cheng655a7c02013-10-16 16:09:24 -070028};
Christopher Ferrisb8a95e22019-10-02 18:29:20 -070029struct nexthop_grp {
30 __u32 id;
31 __u8 weight;
32 __u8 resvd1;
33 __u16 resvd2;
34};
35enum {
36 NEXTHOP_GRP_TYPE_MPATH,
Christopher Ferrisfcc3b4f2021-07-01 01:30:21 +000037 NEXTHOP_GRP_TYPE_RES,
Christopher Ferrisb8a95e22019-10-02 18:29:20 -070038 __NEXTHOP_GRP_TYPE_MAX,
39};
40#define NEXTHOP_GRP_TYPE_MAX (__NEXTHOP_GRP_TYPE_MAX - 1)
41enum {
42 NHA_UNSPEC,
43 NHA_ID,
44 NHA_GROUP,
45 NHA_GROUP_TYPE,
46 NHA_BLACKHOLE,
47 NHA_OIF,
48 NHA_GATEWAY,
49 NHA_ENCAP_TYPE,
50 NHA_ENCAP,
51 NHA_GROUPS,
52 NHA_MASTER,
Christopher Ferris8177cdf2020-08-03 11:53:55 -070053 NHA_FDB,
Christopher Ferrisfcc3b4f2021-07-01 01:30:21 +000054 NHA_RES_GROUP,
55 NHA_RES_BUCKET,
Christopher Ferrisb8a95e22019-10-02 18:29:20 -070056 __NHA_MAX,
57};
58#define NHA_MAX (__NHA_MAX - 1)
Christopher Ferrisfcc3b4f2021-07-01 01:30:21 +000059enum {
60 NHA_RES_GROUP_UNSPEC,
61 NHA_RES_GROUP_PAD = NHA_RES_GROUP_UNSPEC,
62 NHA_RES_GROUP_BUCKETS,
63 NHA_RES_GROUP_IDLE_TIMER,
64 NHA_RES_GROUP_UNBALANCED_TIMER,
65 NHA_RES_GROUP_UNBALANCED_TIME,
66 __NHA_RES_GROUP_MAX,
67};
68#define NHA_RES_GROUP_MAX (__NHA_RES_GROUP_MAX - 1)
69enum {
70 NHA_RES_BUCKET_UNSPEC,
71 NHA_RES_BUCKET_PAD = NHA_RES_BUCKET_UNSPEC,
72 NHA_RES_BUCKET_INDEX,
73 NHA_RES_BUCKET_IDLE_TIME,
74 NHA_RES_BUCKET_NH_ID,
75 __NHA_RES_BUCKET_MAX,
76};
77#define NHA_RES_BUCKET_MAX (__NHA_RES_BUCKET_MAX - 1)
Nick Kralevicha67e4de2013-01-14 11:28:26 -080078#endif