Lines Matching full:net

16 #include <net/dst.h>
17 #include <net/flow.h>
18 #include <net/ip_fib.h>
19 #include <net/netlink.h>
20 #include <net/inetpeer.h>
21 #include <net/fib_notifier.h>
97 static inline bool fib6_routes_require_src(const struct net *net) in fib6_routes_require_src() argument
102 static inline void fib6_routes_require_src_inc(struct net *net) {} in fib6_routes_require_src_inc() argument
103 static inline void fib6_routes_require_src_dec(struct net *net) {} in fib6_routes_require_src_dec() argument
107 static inline bool fib6_routes_require_src(const struct net *net) in fib6_routes_require_src() argument
109 return net->ipv6.fib6_routes_require_src > 0; in fib6_routes_require_src()
112 static inline void fib6_routes_require_src_inc(struct net *net) in fib6_routes_require_src_inc() argument
114 net->ipv6.fib6_routes_require_src++; in fib6_routes_require_src_inc()
117 static inline void fib6_routes_require_src_dec(struct net *net) in fib6_routes_require_src_dec() argument
119 net->ipv6.fib6_routes_require_src--; in fib6_routes_require_src_dec()
412 typedef struct rt6_info *(*pol_lookup_t)(struct net *,
427 struct fib6_table *fib6_get_table(struct net *net, u32 id);
428 struct fib6_table *fib6_new_table(struct net *net, u32 id);
429 struct dst_entry *fib6_rule_lookup(struct net *net, struct flowi6 *fl6,
436 int fib6_lookup(struct net *net, int oif, struct flowi6 *fl6,
440 int fib6_table_lookup(struct net *net, struct fib6_table *table,
444 void fib6_select_path(const struct net *net, struct fib6_result *res,
456 void fib6_clean_all(struct net *net, int (*func)(struct fib6_info *, void *arg),
458 void fib6_clean_all_skip_notify(struct net *net,
482 int fib6_nh_init(struct net *net, struct fib6_nh *fib6_nh,
488 int call_fib6_entry_notifiers(struct net *net,
492 int call_fib6_multipath_entry_notifiers(struct net *net,
497 int call_fib6_entry_notifiers_replace(struct net *net, struct fib6_info *rt);
498 void fib6_rt_update(struct net *net, struct fib6_info *rt,
503 void fib6_run_gc(unsigned long expires, struct net *net, bool force);
522 int call_fib6_notifiers(struct net *net, enum fib_event_type event_type,
525 int __net_init fib6_notifier_init(struct net *net);
526 void __net_exit fib6_notifier_exit(struct net *net);
528 unsigned int fib6_tables_seq_read(struct net *net);
529 int fib6_tables_dump(struct net *net, struct notifier_block *nb,
532 void fib6_update_sernum(struct net *net, struct fib6_info *rt);
533 void fib6_update_sernum_upto_root(struct net *net, struct fib6_info *rt);
534 void fib6_update_sernum_stub(struct net *net, struct fib6_info *f6i);
541 void fib6_info_hw_flags_set(struct net *net, struct fib6_info *f6i,
551 INDIRECT_CALLABLE_DECLARE(struct rt6_info *ip6_pol_route_output(struct net *net,
556 INDIRECT_CALLABLE_DECLARE(struct rt6_info *ip6_pol_route_input(struct net *net,
561 INDIRECT_CALLABLE_DECLARE(struct rt6_info *__ip6_route_redirect(struct net *net,
566 INDIRECT_CALLABLE_DECLARE(struct rt6_info *ip6_pol_route_lookup(struct net *net,
572 struct net *net, in pol_lookup_func() argument
583 net, table, fl6, skb, flags); in pol_lookup_func()
587 static inline bool fib6_has_custom_rules(const struct net *net) in fib6_has_custom_rules() argument
589 return net->ipv6.fib6_has_custom_rules; in fib6_has_custom_rules()
595 int fib6_rules_dump(struct net *net, struct notifier_block *nb,
597 unsigned int fib6_rules_seq_read(struct net *net);
599 static inline bool fib6_rules_early_flow_dissect(struct net *net, in fib6_rules_early_flow_dissect() argument
606 if (!net->ipv6.fib6_rules_require_fldissect) in fib6_rules_early_flow_dissect()
610 __skb_flow_dissect(net, skb, &flow_keys_dissector, in fib6_rules_early_flow_dissect()
620 static inline bool fib6_has_custom_rules(const struct net *net) in fib6_has_custom_rules() argument
636 static inline int fib6_rules_dump(struct net *net, struct notifier_block *nb, in fib6_rules_dump() argument
641 static inline unsigned int fib6_rules_seq_read(struct net *net) in fib6_rules_seq_read() argument
645 static inline bool fib6_rules_early_flow_dissect(struct net *net, in fib6_rules_early_flow_dissect() argument