]> granicus.if.org Git - libnl/commitdiff
Update fib_rules.h to latest kernel
authorDavid Ahern <dsa@cumulusnetworks.com>
Wed, 14 Mar 2018 00:17:24 +0000 (17:17 -0700)
committerThomas Haller <thaller@redhat.com>
Fri, 6 Apr 2018 12:54:12 +0000 (14:54 +0200)
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>
include/linux-private/linux/fib_rules.h

index 1625ba92dce6b5341e09450a92881706455f7fc5..232df14e1287a3297716f0c16a0632194a189d50 100644 (file)
@@ -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
 };