blob: 5726a66d83e29886be102cfd9819a0b1b3efddde [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)
Christopher Ferris7f4c8372024-06-03 14:22:19 -070029#define NHA_OP_FLAG_DUMP_STATS BIT(0)
30#define NHA_OP_FLAG_DUMP_HW_STATS BIT(1)
Christopher Ferrisb8a95e22019-10-02 18:29:20 -070031enum {
32 NHA_UNSPEC,
33 NHA_ID,
34 NHA_GROUP,
35 NHA_GROUP_TYPE,
36 NHA_BLACKHOLE,
37 NHA_OIF,
38 NHA_GATEWAY,
39 NHA_ENCAP_TYPE,
40 NHA_ENCAP,
41 NHA_GROUPS,
42 NHA_MASTER,
Christopher Ferris8177cdf2020-08-03 11:53:55 -070043 NHA_FDB,
Christopher Ferrisfcc3b4f2021-07-01 01:30:21 +000044 NHA_RES_GROUP,
45 NHA_RES_BUCKET,
Christopher Ferris7f4c8372024-06-03 14:22:19 -070046 NHA_OP_FLAGS,
47 NHA_GROUP_STATS,
48 NHA_HW_STATS_ENABLE,
49 NHA_HW_STATS_USED,
Christopher Ferrisb8a95e22019-10-02 18:29:20 -070050 __NHA_MAX,
51};
52#define NHA_MAX (__NHA_MAX - 1)
Christopher Ferrisfcc3b4f2021-07-01 01:30:21 +000053enum {
54 NHA_RES_GROUP_UNSPEC,
55 NHA_RES_GROUP_PAD = NHA_RES_GROUP_UNSPEC,
56 NHA_RES_GROUP_BUCKETS,
57 NHA_RES_GROUP_IDLE_TIMER,
58 NHA_RES_GROUP_UNBALANCED_TIMER,
59 NHA_RES_GROUP_UNBALANCED_TIME,
60 __NHA_RES_GROUP_MAX,
61};
62#define NHA_RES_GROUP_MAX (__NHA_RES_GROUP_MAX - 1)
63enum {
64 NHA_RES_BUCKET_UNSPEC,
65 NHA_RES_BUCKET_PAD = NHA_RES_BUCKET_UNSPEC,
66 NHA_RES_BUCKET_INDEX,
67 NHA_RES_BUCKET_IDLE_TIME,
68 NHA_RES_BUCKET_NH_ID,
69 __NHA_RES_BUCKET_MAX,
70};
71#define NHA_RES_BUCKET_MAX (__NHA_RES_BUCKET_MAX - 1)
Christopher Ferris7f4c8372024-06-03 14:22:19 -070072enum {
73 NHA_GROUP_STATS_UNSPEC,
74 NHA_GROUP_STATS_ENTRY,
75 __NHA_GROUP_STATS_MAX,
76};
77#define NHA_GROUP_STATS_MAX (__NHA_GROUP_STATS_MAX - 1)
78enum {
79 NHA_GROUP_STATS_ENTRY_UNSPEC,
80 NHA_GROUP_STATS_ENTRY_ID,
81 NHA_GROUP_STATS_ENTRY_PACKETS,
82 NHA_GROUP_STATS_ENTRY_PACKETS_HW,
83 __NHA_GROUP_STATS_ENTRY_MAX,
84};
85#define NHA_GROUP_STATS_ENTRY_MAX (__NHA_GROUP_STATS_ENTRY_MAX - 1)
Nick Kralevicha67e4de2013-01-14 11:28:26 -080086#endif