blob: dbdb4d44520d799d1a7ddbb2a57fab6f78f127ad [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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 ****************************************************************************/
19#ifndef __LINUX_FIB_RULES_H
20#define __LINUX_FIB_RULES_H
21#include <linux/types.h>
22#include <linux/rtnetlink.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define FIB_RULE_PERMANENT 0x00000001
25#define FIB_RULE_INVERT 0x00000002
26#define FIB_RULE_UNRESOLVED 0x00000004
27#define FIB_RULE_IIF_DETACHED 0x00000008
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define FIB_RULE_DEV_DETACHED FIB_RULE_IIF_DETACHED
30#define FIB_RULE_OIF_DETACHED 0x00000010
31#define FIB_RULE_FIND_SADDR 0x00010000
32struct fib_rule_hdr {
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 __u8 family;
35 __u8 dst_len;
36 __u8 src_len;
37 __u8 tos;
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 __u8 table;
40 __u8 res1;
41 __u8 res2;
42 __u8 action;
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 __u32 flags;
Ben Cheng655a7c02013-10-16 16:09:24 -070045};
Christopher Ferris48af7cb2017-02-21 12:35:09 -080046struct fib_rule_uid_range {
47 __u32 start;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 __u32 end;
50};
Ben Cheng655a7c02013-10-16 16:09:24 -070051enum {
Tao Baod7db5942015-01-28 10:07:51 -080052 FRA_UNSPEC,
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 FRA_DST,
55 FRA_SRC,
56 FRA_IIFNAME,
Ben Cheng655a7c02013-10-16 16:09:24 -070057#define FRA_IFNAME FRA_IIFNAME
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 FRA_GOTO,
60 FRA_UNUSED2,
61 FRA_PRIORITY,
62 FRA_UNUSED3,
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 FRA_UNUSED4,
65 FRA_UNUSED5,
66 FRA_FWMARK,
67 FRA_FLOW,
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080069 FRA_TUN_ID,
Tao Baod7db5942015-01-28 10:07:51 -080070 FRA_SUPPRESS_IFGROUP,
71 FRA_SUPPRESS_PREFIXLEN,
72 FRA_TABLE,
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 FRA_FWMASK,
75 FRA_OIFNAME,
Christopher Ferris106b3a82016-08-24 12:15:38 -070076 FRA_PAD,
Christopher Ferris49f525c2016-12-12 14:55:36 -080077 FRA_L3MDEV,
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080079 FRA_UID_RANGE,
Christopher Ferris49f525c2016-12-12 14:55:36 -080080 __FRA_MAX
Christopher Ferris106b3a82016-08-24 12:15:38 -070081};
Ben Cheng655a7c02013-10-16 16:09:24 -070082#define FRA_MAX (__FRA_MAX - 1)
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080084enum {
Christopher Ferris49f525c2016-12-12 14:55:36 -080085 FR_ACT_UNSPEC,
Christopher Ferris106b3a82016-08-24 12:15:38 -070086 FR_ACT_TO_TBL,
Tao Baod7db5942015-01-28 10:07:51 -080087 FR_ACT_GOTO,
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080089 FR_ACT_NOP,
Christopher Ferris49f525c2016-12-12 14:55:36 -080090 FR_ACT_RES3,
Christopher Ferris106b3a82016-08-24 12:15:38 -070091 FR_ACT_RES4,
Tao Baod7db5942015-01-28 10:07:51 -080092 FR_ACT_BLACKHOLE,
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080094 FR_ACT_UNREACHABLE,
Christopher Ferris49f525c2016-12-12 14:55:36 -080095 FR_ACT_PROHIBIT,
Christopher Ferris106b3a82016-08-24 12:15:38 -070096 __FR_ACT_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -070097};
Christopher Ferris106b3a82016-08-24 12:15:38 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080099#define FR_ACT_MAX (__FR_ACT_MAX - 1)
Christopher Ferris49f525c2016-12-12 14:55:36 -0800100#endif