fib_rules.h (868d13ac811746e28e4c806f2b1bd8575796f9af) | fib_rules.h (72132c1b6c7a7605cdfde86a9f58b6ca2b2195a6) |
---|---|
1#ifndef __NET_FIB_RULES_H 2#define __NET_FIB_RULES_H 3 4#include <linux/types.h> 5#include <linux/netdevice.h> 6#include <linux/fib_rules.h> 7#include <net/flow.h> 8#include <net/rtnetlink.h> --- 88 unchanged lines hidden (view full) --- 97static inline u32 frh_get_table(struct fib_rule_hdr *frh, struct nlattr **nla) 98{ 99 if (nla[FRA_TABLE]) 100 return nla_get_u32(nla[FRA_TABLE]); 101 return frh->table; 102} 103 104extern int fib_rules_register(struct net *, 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/netdevice.h> 6#include <linux/fib_rules.h> 7#include <net/flow.h> 8#include <net/rtnetlink.h> --- 88 unchanged lines hidden (view full) --- 97static inline u32 frh_get_table(struct fib_rule_hdr *frh, struct nlattr **nla) 98{ 99 if (nla[FRA_TABLE]) 100 return nla_get_u32(nla[FRA_TABLE]); 101 return frh->table; 102} 103 104extern int fib_rules_register(struct net *, struct fib_rules_ops *); |
105extern int fib_rules_unregister(struct net *, struct fib_rules_ops *); | 105extern void fib_rules_unregister(struct net *, struct fib_rules_ops *); |
106extern void fib_rules_cleanup_ops(struct fib_rules_ops *); 107 108extern int fib_rules_lookup(struct fib_rules_ops *, 109 struct flowi *, int flags, 110 struct fib_lookup_arg *); 111extern int fib_default_rule_add(struct fib_rules_ops *, 112 u32 pref, u32 table, 113 u32 flags); 114#endif | 106extern void fib_rules_cleanup_ops(struct fib_rules_ops *); 107 108extern int fib_rules_lookup(struct fib_rules_ops *, 109 struct flowi *, int flags, 110 struct fib_lookup_arg *); 111extern int fib_default_rule_add(struct fib_rules_ops *, 112 u32 pref, u32 table, 113 u32 flags); 114#endif |