[NET] fib_rules: Add no-operation action
[deliverable/linux.git] / include / linux / fib_rules.h
CommitLineData
14c0b97d
TG
1#ifndef __LINUX_FIB_RULES_H
2#define __LINUX_FIB_RULES_H
3
4#include <linux/types.h>
5#include <linux/rtnetlink.h>
6
7/* rule is permanent, and cannot be deleted */
8#define FIB_RULE_PERMANENT 1
3dfbcc41 9#define FIB_RULE_INVERT 2
0947c9fe 10#define FIB_RULE_UNRESOLVED 4
2b443683 11#define FIB_RULE_DEV_DETACHED 8
14c0b97d
TG
12
13struct fib_rule_hdr
14{
15 __u8 family;
16 __u8 dst_len;
17 __u8 src_len;
18 __u8 tos;
19
20 __u8 table;
21 __u8 res1; /* reserved */
22 __u8 res2; /* reserved */
23 __u8 action;
24
25 __u32 flags;
26};
27
28enum
29{
30 FRA_UNSPEC,
31 FRA_DST, /* destination address */
32 FRA_SRC, /* source address */
33 FRA_IFNAME, /* interface name */
0947c9fe 34 FRA_GOTO, /* target to jump to (FR_ACT_GOTO) */
14c0b97d
TG
35 FRA_UNUSED2,
36 FRA_PRIORITY, /* priority/preference */
37 FRA_UNUSED3,
38 FRA_UNUSED4,
39 FRA_UNUSED5,
b8964ed9 40 FRA_FWMARK, /* mark */
14c0b97d 41 FRA_FLOW, /* flow/class id */
9e762a4a
PM
42 FRA_UNUSED6,
43 FRA_UNUSED7,
44 FRA_UNUSED8,
45 FRA_TABLE, /* Extended table id */
bbfb39cb 46 FRA_FWMASK, /* mask for netfilter mark */
14c0b97d
TG
47 __FRA_MAX
48};
49
50#define FRA_MAX (__FRA_MAX - 1)
51
52enum
53{
54 FR_ACT_UNSPEC,
55 FR_ACT_TO_TBL, /* Pass to fixed table */
0947c9fe 56 FR_ACT_GOTO, /* Jump to another rule */
fa0b2d1d 57 FR_ACT_NOP, /* No operation */
14c0b97d
TG
58 FR_ACT_RES3,
59 FR_ACT_RES4,
60 FR_ACT_BLACKHOLE, /* Drop without notification */
61 FR_ACT_UNREACHABLE, /* Drop with ENETUNREACH */
62 FR_ACT_PROHIBIT, /* Drop with EACCES */
63 __FR_ACT_MAX,
64};
65
66#define FR_ACT_MAX (__FR_ACT_MAX - 1)
67
68#endif
This page took 0.118461 seconds and 5 git commands to generate.