Lines Matching refs: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>
91 static inline bool fib6_routes_require_src(const struct net *net)
96 static inline void fib6_routes_require_src_inc(struct net *net) {}
97 static inline void fib6_routes_require_src_dec(struct net *net) {}
101 static inline bool fib6_routes_require_src(const struct net *net)
103 return net->ipv6.fib6_routes_require_src > 0;
106 static inline void fib6_routes_require_src_inc(struct net *net)
108 net->ipv6.fib6_routes_require_src++;
111 static inline void fib6_routes_require_src_dec(struct net *net)
113 net->ipv6.fib6_routes_require_src--;
418 typedef struct rt6_info *(*pol_lookup_t)(struct net *,
433 struct fib6_table *fib6_get_table(struct net *net, u32 id);
434 struct fib6_table *fib6_new_table(struct net *net, u32 id);
435 struct dst_entry *fib6_rule_lookup(struct net *net, struct flowi6 *fl6,
442 int fib6_lookup(struct net *net, int oif, struct flowi6 *fl6,
446 int fib6_table_lookup(struct net *net, struct fib6_table *table,
450 void fib6_select_path(const struct net *net, struct fib6_result *res,
462 void fib6_clean_all(struct net *net, int (*func)(struct fib6_info *, void *arg),
464 void fib6_clean_all_skip_notify(struct net *net,
488 int fib6_nh_init(struct net *net, struct fib6_nh *fib6_nh,
494 int call_fib6_entry_notifiers(struct net *net,
498 int call_fib6_multipath_entry_notifiers(struct net *net,
503 int call_fib6_entry_notifiers_replace(struct net *net, struct fib6_info *rt);
504 void fib6_rt_update(struct net *net, struct fib6_info *rt,
509 void fib6_run_gc(unsigned long expires, struct net *net, bool force);
560 int call_fib6_notifiers(struct net *net, enum fib_event_type event_type,
563 int __net_init fib6_notifier_init(struct net *net);
564 void __net_exit fib6_notifier_exit(struct net *net);
566 unsigned int fib6_tables_seq_read(struct net *net);
567 int fib6_tables_dump(struct net *net, struct notifier_block *nb,
570 void fib6_update_sernum(struct net *net, struct fib6_info *rt);
571 void fib6_update_sernum_upto_root(struct net *net, struct fib6_info *rt);
572 void fib6_update_sernum_stub(struct net *net, struct fib6_info *f6i);
579 void fib6_info_hw_flags_set(struct net *net, struct fib6_info *f6i,
589 INDIRECT_CALLABLE_DECLARE(struct rt6_info *ip6_pol_route_output(struct net *net,
594 INDIRECT_CALLABLE_DECLARE(struct rt6_info *ip6_pol_route_input(struct net *net,
599 INDIRECT_CALLABLE_DECLARE(struct rt6_info *__ip6_route_redirect(struct net *net,
604 INDIRECT_CALLABLE_DECLARE(struct rt6_info *ip6_pol_route_lookup(struct net *net,
610 struct net *net,
621 net, table, fl6, skb, flags);
625 static inline bool fib6_has_custom_rules(const struct net *net)
627 return net->ipv6.fib6_has_custom_rules;
633 int fib6_rules_dump(struct net *net, struct notifier_block *nb,
635 unsigned int fib6_rules_seq_read(struct net *net);
637 static inline bool fib6_rules_early_flow_dissect(struct net *net,
644 if (!net->ipv6.fib6_rules_require_fldissect)
648 __skb_flow_dissect(net, skb, &flow_keys_dissector,
658 static inline bool fib6_has_custom_rules(const struct net *net)
674 static inline int fib6_rules_dump(struct net *net, struct notifier_block *nb,
679 static inline unsigned int fib6_rules_seq_read(struct net *net)
683 static inline bool fib6_rules_early_flow_dissect(struct net *net,