blob: ea68f622bb8cc83d0dadc6cdfd7a0e3126bf4081 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Christopher Ferrisb8a95e22019-10-02 18:29:20 -07007#ifndef _UAPI_LINUX_NEXTHOP_H
8#define _UAPI_LINUX_NEXTHOP_H
9#include <linux/types.h>
10struct nhmsg {
11 unsigned char nh_family;
12 unsigned char nh_scope;
13 unsigned char nh_protocol;
14 unsigned char resvd;
15 unsigned int nh_flags;
Ben Cheng655a7c02013-10-16 16:09:24 -070016};
Christopher Ferrisb8a95e22019-10-02 18:29:20 -070017struct nexthop_grp {
18 __u32 id;
19 __u8 weight;
20 __u8 resvd1;
21 __u16 resvd2;
22};
23enum {
24 NEXTHOP_GRP_TYPE_MPATH,
Christopher Ferrisfcc3b4f2021-07-01 01:30:21 +000025 NEXTHOP_GRP_TYPE_RES,
Christopher Ferrisb8a95e22019-10-02 18:29:20 -070026 __NEXTHOP_GRP_TYPE_MAX,
27};
28#define NEXTHOP_GRP_TYPE_MAX (__NEXTHOP_GRP_TYPE_MAX - 1)
29enum {
30 NHA_UNSPEC,
31 NHA_ID,
32 NHA_GROUP,
33 NHA_GROUP_TYPE,
34 NHA_BLACKHOLE,
35 NHA_OIF,
36 NHA_GATEWAY,
37 NHA_ENCAP_TYPE,
38 NHA_ENCAP,
39 NHA_GROUPS,
40 NHA_MASTER,
Christopher Ferris8177cdf2020-08-03 11:53:55 -070041 NHA_FDB,
Christopher Ferrisfcc3b4f2021-07-01 01:30:21 +000042 NHA_RES_GROUP,
43 NHA_RES_BUCKET,
Christopher Ferrisb8a95e22019-10-02 18:29:20 -070044 __NHA_MAX,
45};
46#define NHA_MAX (__NHA_MAX - 1)
Christopher Ferrisfcc3b4f2021-07-01 01:30:21 +000047enum {
48 NHA_RES_GROUP_UNSPEC,
49 NHA_RES_GROUP_PAD = NHA_RES_GROUP_UNSPEC,
50 NHA_RES_GROUP_BUCKETS,
51 NHA_RES_GROUP_IDLE_TIMER,
52 NHA_RES_GROUP_UNBALANCED_TIMER,
53 NHA_RES_GROUP_UNBALANCED_TIME,
54 __NHA_RES_GROUP_MAX,
55};
56#define NHA_RES_GROUP_MAX (__NHA_RES_GROUP_MAX - 1)
57enum {
58 NHA_RES_BUCKET_UNSPEC,
59 NHA_RES_BUCKET_PAD = NHA_RES_BUCKET_UNSPEC,
60 NHA_RES_BUCKET_INDEX,
61 NHA_RES_BUCKET_IDLE_TIME,
62 NHA_RES_BUCKET_NH_ID,
63 __NHA_RES_BUCKET_MAX,
64};
65#define NHA_RES_BUCKET_MAX (__NHA_RES_BUCKET_MAX - 1)
Nick Kralevicha67e4de2013-01-14 11:28:26 -080066#endif