• Home
  • Raw
  • Download

Lines Matching refs:net

74 	struct net		*fib_net;
143 extern __be32 fib_info_update_nh_saddr(struct net *net, struct fib_nh *nh);
145 #define FIB_RES_SADDR(net, res) \ argument
147 atomic_read(&(net)->ipv4.dev_addr_genid)) ? \
149 fib_info_update_nh_saddr((net), &FIB_RES_NH(res)))
154 #define FIB_RES_PREFSRC(net, res) ((res).fi->fib_prefsrc ? : \ argument
155 FIB_RES_SADDR(net, res))
181 static inline struct fib_table *fib_get_table(struct net *net, u32 id) in fib_get_table() argument
186 &net->ipv4.fib_table_hash[TABLE_LOCAL_INDEX] : in fib_get_table()
187 &net->ipv4.fib_table_hash[TABLE_MAIN_INDEX]; in fib_get_table()
191 static inline struct fib_table *fib_new_table(struct net *net, u32 id) in fib_new_table() argument
193 return fib_get_table(net, id); in fib_new_table()
196 static inline int fib_lookup(struct net *net, const struct flowi4 *flp, in fib_lookup() argument
201 table = fib_get_table(net, RT_TABLE_LOCAL); in fib_lookup()
205 table = fib_get_table(net, RT_TABLE_MAIN); in fib_lookup()
212 extern int __net_init fib4_rules_init(struct net *net);
213 extern void __net_exit fib4_rules_exit(struct net *net);
219 extern int fib_lookup(struct net *n, struct flowi4 *flp, struct fib_result *res);
221 extern struct fib_table *fib_new_table(struct net *net, u32 id);
222 extern struct fib_table *fib_get_table(struct net *net, u32 id);
237 extern int fib_sync_down_addr(struct net *net, __be32 local);
271 extern int __net_init fib_proc_init(struct net *net);
272 extern void __net_exit fib_proc_exit(struct net *net);
274 static inline int fib_proc_init(struct net *net) in fib_proc_init() argument
278 static inline void fib_proc_exit(struct net *net) in fib_proc_exit() argument