~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/net/ipv6_stubs.h

Version: ~ [ linux-5.9.1 ] ~ [ linux-5.8.16 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.72 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.152 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.202 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.240 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.240 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.85 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef _IPV6_STUBS_H
  3 #define _IPV6_STUBS_H
  4 
  5 #include <linux/in6.h>
  6 #include <linux/netdevice.h>
  7 #include <linux/skbuff.h>
  8 #include <net/dst.h>
  9 #include <net/flow.h>
 10 #include <net/neighbour.h>
 11 #include <net/sock.h>
 12 
 13 /* structs from net/ip6_fib.h */
 14 struct fib6_info;
 15 struct fib6_nh;
 16 struct fib6_config;
 17 struct fib6_result;
 18 
 19 /* This is ugly, ideally these symbols should be built
 20  * into the core kernel.
 21  */
 22 struct ipv6_stub {
 23         int (*ipv6_sock_mc_join)(struct sock *sk, int ifindex,
 24                                  const struct in6_addr *addr);
 25         int (*ipv6_sock_mc_drop)(struct sock *sk, int ifindex,
 26                                  const struct in6_addr *addr);
 27         struct dst_entry *(*ipv6_dst_lookup_flow)(struct net *net,
 28                                                   const struct sock *sk,
 29                                                   struct flowi6 *fl6,
 30                                                   const struct in6_addr *final_dst);
 31         int (*ipv6_route_input)(struct sk_buff *skb);
 32 
 33         struct fib6_table *(*fib6_get_table)(struct net *net, u32 id);
 34         int (*fib6_lookup)(struct net *net, int oif, struct flowi6 *fl6,
 35                            struct fib6_result *res, int flags);
 36         int (*fib6_table_lookup)(struct net *net, struct fib6_table *table,
 37                                  int oif, struct flowi6 *fl6,
 38                                  struct fib6_result *res, int flags);
 39         void (*fib6_select_path)(const struct net *net, struct fib6_result *res,
 40                                  struct flowi6 *fl6, int oif, bool oif_match,
 41                                  const struct sk_buff *skb, int strict);
 42         u32 (*ip6_mtu_from_fib6)(const struct fib6_result *res,
 43                                  const struct in6_addr *daddr,
 44                                  const struct in6_addr *saddr);
 45 
 46         int (*fib6_nh_init)(struct net *net, struct fib6_nh *fib6_nh,
 47                             struct fib6_config *cfg, gfp_t gfp_flags,
 48                             struct netlink_ext_ack *extack);
 49         void (*fib6_nh_release)(struct fib6_nh *fib6_nh);
 50         void (*fib6_update_sernum)(struct net *net, struct fib6_info *rt);
 51         int (*ip6_del_rt)(struct net *net, struct fib6_info *rt, bool skip_notify);
 52         void (*fib6_rt_update)(struct net *net, struct fib6_info *rt,
 53                                struct nl_info *info);
 54 
 55         void (*udpv6_encap_enable)(void);
 56         void (*ndisc_send_na)(struct net_device *dev, const struct in6_addr *daddr,
 57                               const struct in6_addr *solicited_addr,
 58                               bool router, bool solicited, bool override, bool inc_opt);
 59 #if IS_ENABLED(CONFIG_XFRM)
 60         void (*xfrm6_local_rxpmtu)(struct sk_buff *skb, u32 mtu);
 61         int (*xfrm6_udp_encap_rcv)(struct sock *sk, struct sk_buff *skb);
 62         int (*xfrm6_rcv_encap)(struct sk_buff *skb, int nexthdr, __be32 spi,
 63                                int encap_type);
 64 #endif
 65         struct neigh_table *nd_tbl;
 66 };
 67 extern const struct ipv6_stub *ipv6_stub __read_mostly;
 68 
 69 /* A stub used by bpf helpers. Similarly ugly as ipv6_stub */
 70 struct ipv6_bpf_stub {
 71         int (*inet6_bind)(struct sock *sk, struct sockaddr *uaddr, int addr_len,
 72                           u32 flags);
 73         struct sock *(*udp6_lib_lookup)(struct net *net,
 74                                      const struct in6_addr *saddr, __be16 sport,
 75                                      const struct in6_addr *daddr, __be16 dport,
 76                                      int dif, int sdif, struct udp_table *tbl,
 77                                      struct sk_buff *skb);
 78 };
 79 extern const struct ipv6_bpf_stub *ipv6_bpf_stub __read_mostly;
 80 
 81 #endif
 82 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp