• Home
  • Raw
  • Download

Lines Matching full:net

19 #include <net/flow.h>
22 #include <net/fib_notifier.h>
23 #include <net/fib_rules.h>
24 #include <net/inetpeer.h>
109 struct net *fib_net;
176 __be32 fib_info_update_nh_saddr(struct net *net, struct fib_nh *nh);
178 #define FIB_RES_SADDR(net, res) \ argument
180 atomic_read(&(net)->ipv4.dev_addr_genid)) ? \
182 fib_info_update_nh_saddr((net), &FIB_RES_NH(res)))
187 #define FIB_RES_PREFSRC(net, res) ((res).fi->fib_prefsrc ? : \ argument
188 FIB_RES_SADDR(net, res))
205 int call_fib4_notifier(struct notifier_block *nb, struct net *net,
208 int call_fib4_notifiers(struct net *net, enum fib_event_type event_type,
211 int __net_init fib4_notifier_init(struct net *net);
212 void __net_exit fib4_notifier_exit(struct net *net);
214 void fib_notify(struct net *net, struct notifier_block *nb);
227 int fib_table_insert(struct net *, struct fib_table *, struct fib_config *,
229 int fib_table_delete(struct net *, struct fib_table *, struct fib_config *,
233 int fib_table_flush(struct net *net, struct fib_table *table, bool flush_all);
243 static inline struct fib_table *fib_get_table(struct net *net, u32 id) in fib_get_table() argument
249 &net->ipv4.fib_table_hash[TABLE_LOCAL_INDEX] : in fib_get_table()
250 &net->ipv4.fib_table_hash[TABLE_MAIN_INDEX]; in fib_get_table()
257 static inline struct fib_table *fib_new_table(struct net *net, u32 id) in fib_new_table() argument
259 return fib_get_table(net, id); in fib_new_table()
262 static inline int fib_lookup(struct net *net, const struct flowi4 *flp, in fib_lookup() argument
270 tb = fib_get_table(net, RT_TABLE_MAIN); in fib_lookup()
287 static inline int fib4_rules_dump(struct net *net, struct notifier_block *nb) in fib4_rules_dump() argument
292 static inline unsigned int fib4_rules_seq_read(struct net *net) in fib4_rules_seq_read() argument
297 static inline bool fib4_rules_early_flow_dissect(struct net *net, in fib4_rules_early_flow_dissect() argument
305 int __net_init fib4_rules_init(struct net *net);
306 void __net_exit fib4_rules_exit(struct net *net);
308 struct fib_table *fib_new_table(struct net *net, u32 id);
309 struct fib_table *fib_get_table(struct net *net, u32 id);
311 int __fib_lookup(struct net *net, struct flowi4 *flp,
314 static inline int fib_lookup(struct net *net, struct flowi4 *flp, in fib_lookup() argument
321 if (net->ipv4.fib_has_custom_rules) in fib_lookup()
322 return __fib_lookup(net, flp, res, flags); in fib_lookup()
328 tb = rcu_dereference_rtnl(net->ipv4.fib_main); in fib_lookup()
335 tb = rcu_dereference_rtnl(net->ipv4.fib_default); in fib_lookup()
349 int fib4_rules_dump(struct net *net, struct notifier_block *nb);
350 unsigned int fib4_rules_seq_read(struct net *net);
352 static inline bool fib4_rules_early_flow_dissect(struct net *net, in fib4_rules_early_flow_dissect() argument
359 if (!net->ipv4.fib_rules_require_fldissect) in fib4_rules_early_flow_dissect()
380 static inline int fib_num_tclassid_users(struct net *net) in fib_num_tclassid_users() argument
382 return net->ipv4.fib_num_tclassid_users; in fib_num_tclassid_users()
385 static inline int fib_num_tclassid_users(struct net *net) in fib_num_tclassid_users() argument
390 int fib_unmerge(struct net *net);
400 int fib_multipath_hash(const struct net *net, const struct flowi4 *fl4,
404 void fib_select_path(struct net *net, struct fib_result *res,
441 int __net_init fib_proc_init(struct net *net);
442 void __net_exit fib_proc_exit(struct net *net);
444 static inline int fib_proc_init(struct net *net) in fib_proc_init() argument
448 static inline void fib_proc_exit(struct net *net) in fib_proc_exit() argument