Lines Matching refs:net

96 static inline bool fib6_routes_require_src(const struct net *net)  in fib6_routes_require_src()  argument
101 static inline void fib6_routes_require_src_inc(struct net *net) {} in fib6_routes_require_src_inc() argument
102 static inline void fib6_routes_require_src_dec(struct net *net) {} in fib6_routes_require_src_dec() argument
106 static inline bool fib6_routes_require_src(const struct net *net) in fib6_routes_require_src() argument
108 return net->ipv6.fib6_routes_require_src > 0; in fib6_routes_require_src()
111 static inline void fib6_routes_require_src_inc(struct net *net) in fib6_routes_require_src_inc() argument
113 net->ipv6.fib6_routes_require_src++; in fib6_routes_require_src_inc()
116 static inline void fib6_routes_require_src_dec(struct net *net) in fib6_routes_require_src_dec() argument
118 net->ipv6.fib6_routes_require_src--; in fib6_routes_require_src_dec()
411 typedef struct rt6_info *(*pol_lookup_t)(struct net *,
426 struct fib6_table *fib6_get_table(struct net *net, u32 id);
427 struct fib6_table *fib6_new_table(struct net *net, u32 id);
428 struct dst_entry *fib6_rule_lookup(struct net *net, struct flowi6 *fl6,
435 int fib6_lookup(struct net *net, int oif, struct flowi6 *fl6,
439 int fib6_table_lookup(struct net *net, struct fib6_table *table,
443 void fib6_select_path(const struct net *net, struct fib6_result *res,
455 void fib6_clean_all(struct net *net, int (*func)(struct fib6_info *, void *arg),
457 void fib6_clean_all_skip_notify(struct net *net,
484 int fib6_nh_init(struct net *net, struct fib6_nh *fib6_nh,
490 int call_fib6_entry_notifiers(struct net *net,
494 int call_fib6_multipath_entry_notifiers(struct net *net,
499 int call_fib6_entry_notifiers_replace(struct net *net, struct fib6_info *rt);
500 void fib6_rt_update(struct net *net, struct fib6_info *rt,
505 void fib6_run_gc(unsigned long expires, struct net *net, bool force);
524 int call_fib6_notifiers(struct net *net, enum fib_event_type event_type,
527 int __net_init fib6_notifier_init(struct net *net);
528 void __net_exit fib6_notifier_exit(struct net *net);
530 unsigned int fib6_tables_seq_read(struct net *net);
531 int fib6_tables_dump(struct net *net, struct notifier_block *nb,
534 void fib6_update_sernum(struct net *net, struct fib6_info *rt);
535 void fib6_update_sernum_upto_root(struct net *net, struct fib6_info *rt);
536 void fib6_update_sernum_stub(struct net *net, struct fib6_info *f6i);
543 void fib6_info_hw_flags_set(struct net *net, struct fib6_info *f6i,
553 INDIRECT_CALLABLE_DECLARE(struct rt6_info *ip6_pol_route_output(struct net *net,
558 INDIRECT_CALLABLE_DECLARE(struct rt6_info *ip6_pol_route_input(struct net *net,
563 INDIRECT_CALLABLE_DECLARE(struct rt6_info *__ip6_route_redirect(struct net *net,
568 INDIRECT_CALLABLE_DECLARE(struct rt6_info *ip6_pol_route_lookup(struct net *net,
574 struct net *net, in pol_lookup_func() argument
585 net, table, fl6, skb, flags); in pol_lookup_func()
589 static inline bool fib6_has_custom_rules(const struct net *net) in fib6_has_custom_rules() argument
591 return net->ipv6.fib6_has_custom_rules; in fib6_has_custom_rules()
597 int fib6_rules_dump(struct net *net, struct notifier_block *nb,
599 unsigned int fib6_rules_seq_read(struct net *net);
601 static inline bool fib6_rules_early_flow_dissect(struct net *net, in fib6_rules_early_flow_dissect() argument
608 if (!net->ipv6.fib6_rules_require_fldissect) in fib6_rules_early_flow_dissect()
619 static inline bool fib6_has_custom_rules(const struct net *net) in fib6_has_custom_rules() argument
635 static inline int fib6_rules_dump(struct net *net, struct notifier_block *nb, in fib6_rules_dump() argument
640 static inline unsigned int fib6_rules_seq_read(struct net *net) in fib6_rules_seq_read() argument
644 static inline bool fib6_rules_early_flow_dissect(struct net *net, in fib6_rules_early_flow_dissect() argument