Lines Matching full:net

15 #include <net/flow.h>
18 #include <net/fib_notifier.h>
19 #include <net/fib_rules.h>
20 #include <net/inet_dscp.h>
21 #include <net/inetpeer.h>
140 struct net *fib_net;
206 __be32 fib_info_update_nhc_saddr(struct net *net, struct fib_nh_common *nhc,
208 __be32 fib_result_prefsrc(struct net *net, struct fib_result *res);
245 int call_fib4_notifiers(struct net *net, enum fib_event_type event_type,
248 int __net_init fib4_notifier_init(struct net *net);
249 void __net_exit fib4_notifier_exit(struct net *net);
251 void fib_info_notify_update(struct net *net, struct nl_info *info);
252 int fib_notify(struct net *net, struct notifier_block *nb,
279 int fib_table_insert(struct net *, struct fib_table *, struct fib_config *,
281 int fib_table_delete(struct net *, struct fib_table *, struct fib_config *,
285 int fib_table_flush(struct net *net, struct fib_table *table, bool flush_all);
295 static inline struct fib_table *fib_get_table(struct net *net, u32 id) in fib_get_table() argument
301 &net->ipv4.fib_table_hash[TABLE_LOCAL_INDEX] : in fib_get_table()
302 &net->ipv4.fib_table_hash[TABLE_MAIN_INDEX]; in fib_get_table()
309 static inline struct fib_table *fib_new_table(struct net *net, u32 id) in fib_new_table() argument
311 return fib_get_table(net, id); in fib_new_table()
314 static inline int fib_lookup(struct net *net, const struct flowi4 *flp, in fib_lookup() argument
322 tb = fib_get_table(net, RT_TABLE_MAIN); in fib_lookup()
334 static inline bool fib4_has_custom_rules(const struct net *net) in fib4_has_custom_rules() argument
344 static inline int fib4_rules_dump(struct net *net, struct notifier_block *nb, in fib4_rules_dump() argument
350 static inline unsigned int fib4_rules_seq_read(struct net *net) in fib4_rules_seq_read() argument
355 static inline bool fib4_rules_early_flow_dissect(struct net *net, in fib4_rules_early_flow_dissect() argument
363 int __net_init fib4_rules_init(struct net *net);
364 void __net_exit fib4_rules_exit(struct net *net);
366 struct fib_table *fib_new_table(struct net *net, u32 id);
367 struct fib_table *fib_get_table(struct net *net, u32 id);
369 int __fib_lookup(struct net *net, struct flowi4 *flp,
372 static inline int fib_lookup(struct net *net, struct flowi4 *flp, in fib_lookup() argument
379 if (net->ipv4.fib_has_custom_rules) in fib_lookup()
380 return __fib_lookup(net, flp, res, flags); in fib_lookup()
386 tb = rcu_dereference_rtnl(net->ipv4.fib_main); in fib_lookup()
393 tb = rcu_dereference_rtnl(net->ipv4.fib_default); in fib_lookup()
406 static inline bool fib4_has_custom_rules(const struct net *net) in fib4_has_custom_rules() argument
408 return net->ipv4.fib_has_custom_rules; in fib4_has_custom_rules()
412 int fib4_rules_dump(struct net *net, struct notifier_block *nb,
414 unsigned int fib4_rules_seq_read(struct net *net);
416 static inline bool fib4_rules_early_flow_dissect(struct net *net, in fib4_rules_early_flow_dissect() argument
423 if (!net->ipv4.fib_rules_require_fldissect) in fib4_rules_early_flow_dissect()
427 __skb_flow_dissect(net, skb, &flow_keys_dissector, in fib4_rules_early_flow_dissect()
455 static inline int fib_num_tclassid_users(struct net *net) in fib_num_tclassid_users() argument
457 return atomic_read(&net->ipv4.fib_num_tclassid_users); in fib_num_tclassid_users()
460 static inline int fib_num_tclassid_users(struct net *net) in fib_num_tclassid_users() argument
465 int fib_unmerge(struct net *net);
529 int fib_multipath_hash(const struct net *net, const struct flowi4 *fl4,
541 static inline u32 fib_multipath_hash_from_keys(const struct net *net, in fib_multipath_hash_from_keys() argument
547 mp_seed = READ_ONCE(net->ipv4.sysctl_fib_multipath_hash_seed).mp_seed; in fib_multipath_hash_from_keys()
553 static inline u32 fib_multipath_hash_from_keys(const struct net *net, in fib_multipath_hash_from_keys() argument
560 int fib_check_nh(struct net *net, struct fib_nh *nh, u32 table, u8 scope,
563 void fib_select_path(struct net *net, struct fib_result *res,
566 int fib_nh_init(struct net *net, struct fib_nh *fib_nh,
569 void fib_nh_release(struct net *net, struct fib_nh *fib_nh);
570 int fib_nh_common_init(struct net *net, struct fib_nh_common *nhc,
577 void fib_alias_hw_flags_set(struct net *net, const struct fib_rt_info *fri);
608 void fib_flush(struct net *net);
623 int __net_init fib_proc_init(struct net *net);
624 void __net_exit fib_proc_exit(struct net *net);
626 static inline int fib_proc_init(struct net *net) in fib_proc_init() argument
630 static inline void fib_proc_exit(struct net *net) in fib_proc_exit() argument
637 int ip_valid_fib_dump_req(struct net *net, const struct nlmsghdr *nlh,