fib_rules.h (11e4afb49b7fa1fc8e1ffd850c1806dd86a08204) | fib_rules.h (1df9916e46451533463f227e6be57cc2cfca4c5f) |
---|---|
1#ifndef __NET_FIB_RULES_H 2#define __NET_FIB_RULES_H 3 4#include <linux/types.h> 5#include <linux/slab.h> 6#include <linux/netdevice.h> 7#include <linux/fib_rules.h> 8#include <net/flow.h> --- 92 unchanged lines hidden (view full) --- 101{ 102 if (nla[FRA_TABLE]) 103 return nla_get_u32(nla[FRA_TABLE]); 104 return frh->table; 105} 106 107extern struct fib_rules_ops *fib_rules_register(const struct fib_rules_ops *, struct net *); 108extern void fib_rules_unregister(struct fib_rules_ops *); | 1#ifndef __NET_FIB_RULES_H 2#define __NET_FIB_RULES_H 3 4#include <linux/types.h> 5#include <linux/slab.h> 6#include <linux/netdevice.h> 7#include <linux/fib_rules.h> 8#include <net/flow.h> --- 92 unchanged lines hidden (view full) --- 101{ 102 if (nla[FRA_TABLE]) 103 return nla_get_u32(nla[FRA_TABLE]); 104 return frh->table; 105} 106 107extern struct fib_rules_ops *fib_rules_register(const struct fib_rules_ops *, struct net *); 108extern void fib_rules_unregister(struct fib_rules_ops *); |
109extern void fib_rules_cleanup_ops(struct fib_rules_ops *); | |
110 111extern int fib_rules_lookup(struct fib_rules_ops *, 112 struct flowi *, int flags, 113 struct fib_lookup_arg *); 114extern int fib_default_rule_add(struct fib_rules_ops *, 115 u32 pref, u32 table, 116 u32 flags); 117extern u32 fib_default_rule_pref(struct fib_rules_ops *ops); 118#endif | 109 110extern int fib_rules_lookup(struct fib_rules_ops *, 111 struct flowi *, int flags, 112 struct fib_lookup_arg *); 113extern int fib_default_rule_add(struct fib_rules_ops *, 114 u32 pref, u32 table, 115 u32 flags); 116extern u32 fib_default_rule_pref(struct fib_rules_ops *ops); 117#endif |