Lines Matching refs:net
135 struct net *fib_net;
199 __be32 fib_info_update_nhc_saddr(struct net *net, struct fib_nh_common *nhc,
201 __be32 fib_result_prefsrc(struct net *net, struct fib_result *res);
238 int call_fib4_notifiers(struct net *net, enum fib_event_type event_type,
241 int __net_init fib4_notifier_init(struct net *net);
242 void __net_exit fib4_notifier_exit(struct net *net);
244 void fib_info_notify_update(struct net *net, struct nl_info *info);
245 int fib_notify(struct net *net, struct notifier_block *nb,
271 int fib_table_insert(struct net *, struct fib_table *, struct fib_config *,
273 int fib_table_delete(struct net *, struct fib_table *, struct fib_config *,
277 int fib_table_flush(struct net *net, struct fib_table *table, bool flush_all);
287 static inline struct fib_table *fib_get_table(struct net *net, u32 id) in fib_get_table() argument
293 &net->ipv4.fib_table_hash[TABLE_LOCAL_INDEX] : in fib_get_table()
294 &net->ipv4.fib_table_hash[TABLE_MAIN_INDEX]; in fib_get_table()
301 static inline struct fib_table *fib_new_table(struct net *net, u32 id) in fib_new_table() argument
303 return fib_get_table(net, id); in fib_new_table()
306 static inline int fib_lookup(struct net *net, const struct flowi4 *flp, in fib_lookup() argument
314 tb = fib_get_table(net, RT_TABLE_MAIN); in fib_lookup()
326 static inline bool fib4_has_custom_rules(const struct net *net) in fib4_has_custom_rules() argument
336 static inline int fib4_rules_dump(struct net *net, struct notifier_block *nb, in fib4_rules_dump() argument
342 static inline unsigned int fib4_rules_seq_read(struct net *net) in fib4_rules_seq_read() argument
347 static inline bool fib4_rules_early_flow_dissect(struct net *net, in fib4_rules_early_flow_dissect() argument
355 int __net_init fib4_rules_init(struct net *net);
356 void __net_exit fib4_rules_exit(struct net *net);
358 struct fib_table *fib_new_table(struct net *net, u32 id);
359 struct fib_table *fib_get_table(struct net *net, u32 id);
361 int __fib_lookup(struct net *net, struct flowi4 *flp,
364 static inline int fib_lookup(struct net *net, struct flowi4 *flp, in fib_lookup() argument
371 if (net->ipv4.fib_has_custom_rules) in fib_lookup()
372 return __fib_lookup(net, flp, res, flags); in fib_lookup()
378 tb = rcu_dereference_rtnl(net->ipv4.fib_main); in fib_lookup()
385 tb = rcu_dereference_rtnl(net->ipv4.fib_default); in fib_lookup()
398 static inline bool fib4_has_custom_rules(const struct net *net) in fib4_has_custom_rules() argument
400 return net->ipv4.fib_has_custom_rules; in fib4_has_custom_rules()
404 int fib4_rules_dump(struct net *net, struct notifier_block *nb,
406 unsigned int fib4_rules_seq_read(struct net *net);
408 static inline bool fib4_rules_early_flow_dissect(struct net *net, in fib4_rules_early_flow_dissect() argument
415 if (!net->ipv4.fib_rules_require_fldissect) in fib4_rules_early_flow_dissect()
439 static inline int fib_num_tclassid_users(struct net *net) in fib_num_tclassid_users() argument
441 return atomic_read(&net->ipv4.fib_num_tclassid_users); in fib_num_tclassid_users()
444 static inline int fib_num_tclassid_users(struct net *net) in fib_num_tclassid_users() argument
449 int fib_unmerge(struct net *net);
513 int fib_multipath_hash(const struct net *net, const struct flowi4 *fl4,
516 int fib_check_nh(struct net *net, struct fib_nh *nh, u32 table, u8 scope,
519 void fib_select_path(struct net *net, struct fib_result *res,
522 int fib_nh_init(struct net *net, struct fib_nh *fib_nh,
525 void fib_nh_release(struct net *net, struct fib_nh *fib_nh);
526 int fib_nh_common_init(struct net *net, struct fib_nh_common *nhc,
533 void fib_alias_hw_flags_set(struct net *net, const struct fib_rt_info *fri);
564 void fib_flush(struct net *net);
579 int __net_init fib_proc_init(struct net *net);
580 void __net_exit fib_proc_exit(struct net *net);
582 static inline int fib_proc_init(struct net *net) in fib_proc_init() argument
586 static inline void fib_proc_exit(struct net *net) in fib_proc_exit() argument
593 int ip_valid_fib_dump_req(struct net *net, const struct nlmsghdr *nlh,