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;
165 int __net_init fib4_semantics_init(struct net *net);
166 void __net_exit fib4_semantics_exit(struct net *net);
208 __be32 fib_info_update_nhc_saddr(struct net *net, struct fib_nh_common *nhc,
210 __be32 fib_result_prefsrc(struct net *net, struct fib_result *res);
247 int call_fib4_notifiers(struct net *net, enum fib_event_type event_type,
250 int __net_init fib4_notifier_init(struct net *net);
251 void __net_exit fib4_notifier_exit(struct net *net);
253 void fib_info_notify_update(struct net *net, struct nl_info *info);
254 int fib_notify(struct net *net, struct notifier_block *nb,
281 int fib_table_insert(struct net *, struct fib_table *, struct fib_config *,
283 int fib_table_delete(struct net *, struct fib_table *, struct fib_config *,
287 int fib_table_flush(struct net *net, struct fib_table *table, bool flush_all);
297 static inline struct fib_table *fib_get_table(struct net *net, u32 id)
303 &net->ipv4.fib_table_hash[TABLE_LOCAL_INDEX] :
304 &net->ipv4.fib_table_hash[TABLE_MAIN_INDEX];
311 static inline struct fib_table *fib_new_table(struct net *net, u32 id)
313 return fib_get_table(net, id);
316 static inline int fib_lookup(struct net *net, const struct flowi4 *flp,
324 tb = fib_get_table(net, RT_TABLE_MAIN);
336 static inline bool fib4_has_custom_rules(const struct net *net)
346 static inline int fib4_rules_dump(struct net *net, struct notifier_block *nb,
352 static inline unsigned int fib4_rules_seq_read(const struct net *net)
357 static inline bool fib4_rules_early_flow_dissect(struct net *net,
365 int __net_init fib4_rules_init(struct net *net);
366 void __net_exit fib4_rules_exit(struct net *net);
368 struct fib_table *fib_new_table(struct net *net, u32 id);
369 struct fib_table *fib_get_table(struct net *net, u32 id);
371 int __fib_lookup(struct net *net, struct flowi4 *flp,
374 static inline int fib_lookup(struct net *net, struct flowi4 *flp,
381 if (net->ipv4.fib_has_custom_rules)
382 return __fib_lookup(net, flp, res, flags);
388 tb = rcu_dereference_rtnl(net->ipv4.fib_main);
395 tb = rcu_dereference_rtnl(net->ipv4.fib_default);
408 static inline bool fib4_has_custom_rules(const struct net *net)
410 return net->ipv4.fib_has_custom_rules;
414 int fib4_rules_dump(struct net *net, struct notifier_block *nb,
416 unsigned int fib4_rules_seq_read(const struct net *net);
418 static inline bool fib4_rules_early_flow_dissect(struct net *net,
425 if (!net->ipv4.fib_rules_require_fldissect)
429 __skb_flow_dissect(net, skb, &flow_keys_dissector,
470 static inline int fib_num_tclassid_users(struct net *net)
472 return atomic_read(&net->ipv4.fib_num_tclassid_users);
475 static inline int fib_num_tclassid_users(struct net *net)
480 int fib_unmerge(struct net *net);
544 int fib_multipath_hash(const struct net *net, const struct flowi4 *fl4,
556 static inline u32 fib_multipath_hash_from_keys(const struct net *net,
562 mp_seed = READ_ONCE(net->ipv4.sysctl_fib_multipath_hash_seed).mp_seed;
568 static inline u32 fib_multipath_hash_from_keys(const struct net *net,
575 int fib_check_nh(struct net *net, struct fib_nh *nh, u32 table, u8 scope,
579 void fib_select_path(struct net *net, struct fib_result *res,
582 int fib_nh_init(struct net *net, struct fib_nh *fib_nh,
585 void fib_nh_release(struct net *net, struct fib_nh *fib_nh);
586 int fib_nh_common_init(struct net *net, struct fib_nh_common *nhc,
593 void fib_alias_hw_flags_set(struct net *net, const struct fib_rt_info *fri);
624 void fib_flush(struct net *net);
639 int __net_init fib_proc_init(struct net *net);
640 void __net_exit fib_proc_exit(struct net *net);
642 static inline int fib_proc_init(struct net *net)
646 static inline void fib_proc_exit(struct net *net)
653 int ip_valid_fib_dump_req(struct net *net, const struct nlmsghdr *nlh,