diff options
author | David Ahern <dsa@cumulusnetworks.com> | 2018-03-14 00:17:24 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-04-06 12:54:12 (GMT) |
commit | fc4880fa5b5d0e81f7e4246c3049124835eda158 (patch) | |
tree | 2d8db18b5df4b1c6405976cbb5409c4e634d4307 | |
parent | c3db1c47828628413a65786efabe46cffa366c7c (diff) | |
download | libnl-fc4880fa5b5d0e81f7e4246c3049124835eda158.zip libnl-fc4880fa5b5d0e81f7e4246c3049124835eda158.tar.gz libnl-fc4880fa5b5d0e81f7e4246c3049124835eda158.tar.bz2 |
Update fib_rules.h to latest kernel
Update fib_rules.h to kernel as of bfff4862653b
("net: fib_rules: support for match on ip_proto, sport and dport")
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
-rw-r--r-- | include/linux-private/linux/fib_rules.h | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/include/linux-private/linux/fib_rules.h b/include/linux-private/linux/fib_rules.h index 1625ba9..232df14 100644 --- a/include/linux-private/linux/fib_rules.h +++ b/include/linux-private/linux/fib_rules.h @@ -1,6 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef __LINUX_FIB_RULES_H #define __LINUX_FIB_RULES_H +#include <linux/types.h> +#include <linux/rtnetlink.h> + /* rule is permanent, and cannot be deleted */ #define FIB_RULE_PERMANENT 0x00000001 #define FIB_RULE_INVERT 0x00000002 @@ -19,13 +23,23 @@ struct fib_rule_hdr { __u8 tos; __u8 table; - __u8 res1; /* reserved */ + __u8 res1; /* reserved */ __u8 res2; /* reserved */ __u8 action; __u32 flags; }; +struct fib_rule_uid_range { + __u32 start; + __u32 end; +}; + +struct fib_rule_port_range { + __u16 start; + __u16 end; +}; + enum { FRA_UNSPEC, FRA_DST, /* destination address */ @@ -40,15 +54,19 @@ enum { FRA_UNUSED5, FRA_FWMARK, /* mark */ FRA_FLOW, /* flow/class id */ - FRA_UNUSED6, - FRA_UNUSED7, - FRA_UNUSED8, + FRA_TUN_ID, + FRA_SUPPRESS_IFGROUP, + FRA_SUPPRESS_PREFIXLEN, FRA_TABLE, /* Extended table id */ FRA_FWMASK, /* mask for netfilter mark */ FRA_OIFNAME, FRA_PAD, FRA_L3MDEV, /* iif or oif is l3mdev goto its table */ FRA_UID_RANGE, /* UID range */ + FRA_PROTOCOL, /* Originator of the rule */ + FRA_IP_PROTO, /* ip proto */ + FRA_SPORT_RANGE, /* sport */ + FRA_DPORT_RANGE, /* dport */ __FRA_MAX }; |