]> asedeno.scripts.mit.edu Git - linux.git/blob - include/net/netfilter/nft_fib.h
PM / QoS: Remove global notifiers
[linux.git] / include / net / netfilter / nft_fib.h
1 #ifndef _NFT_FIB_H_
2 #define _NFT_FIB_H_
3
4 struct nft_fib {
5         enum nft_registers      dreg:8;
6         u8                      result;
7         u32                     flags;
8 };
9
10 extern const struct nla_policy nft_fib_policy[];
11
12 int nft_fib_dump(struct sk_buff *skb, const struct nft_expr *expr);
13 int nft_fib_init(const struct nft_ctx *ctx, const struct nft_expr *expr,
14                  const struct nlattr * const tb[]);
15 int nft_fib_validate(const struct nft_ctx *ctx, const struct nft_expr *expr,
16                      const struct nft_data **data);
17
18
19 void nft_fib4_eval_type(const struct nft_expr *expr, struct nft_regs *regs,
20                         const struct nft_pktinfo *pkt);
21 void nft_fib4_eval(const struct nft_expr *expr, struct nft_regs *regs,
22                    const struct nft_pktinfo *pkt);
23
24 void nft_fib6_eval_type(const struct nft_expr *expr, struct nft_regs *regs,
25                         const struct nft_pktinfo *pkt);
26 void nft_fib6_eval(const struct nft_expr *expr, struct nft_regs *regs,
27                    const struct nft_pktinfo *pkt);
28
29 void nft_fib_store_result(void *reg, enum nft_fib_result r,
30                           const struct nft_pktinfo *pkt, int index);
31 #endif