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

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

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ 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.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/net/ipv6_stubs.h (Version linux-6.11.5) and /include/net/ipv6_stubs.h (Version linux-5.2.21)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef _IPV6_STUBS_H                               2 #ifndef _IPV6_STUBS_H
  3 #define _IPV6_STUBS_H                               3 #define _IPV6_STUBS_H
  4                                                     4 
  5 #include <linux/in6.h>                              5 #include <linux/in6.h>
  6 #include <linux/netdevice.h>                        6 #include <linux/netdevice.h>
  7 #include <linux/skbuff.h>                           7 #include <linux/skbuff.h>
  8 #include <net/dst.h>                                8 #include <net/dst.h>
  9 #include <net/flow.h>                               9 #include <net/flow.h>
 10 #include <net/neighbour.h>                         10 #include <net/neighbour.h>
 11 #include <net/sock.h>                              11 #include <net/sock.h>
 12 #include <net/ipv6.h>                          << 
 13                                                    12 
 14 /* structs from net/ip6_fib.h */                   13 /* structs from net/ip6_fib.h */
 15 struct fib6_info;                                  14 struct fib6_info;
 16 struct fib6_nh;                                    15 struct fib6_nh;
 17 struct fib6_config;                                16 struct fib6_config;
 18 struct fib6_result;                                17 struct fib6_result;
 19                                                    18 
 20 /* This is ugly, ideally these symbols should      19 /* This is ugly, ideally these symbols should be built
 21  * into the core kernel.                           20  * into the core kernel.
 22  */                                                21  */
 23 struct ipv6_stub {                                 22 struct ipv6_stub {
 24         int (*ipv6_sock_mc_join)(struct sock *     23         int (*ipv6_sock_mc_join)(struct sock *sk, int ifindex,
 25                                  const struct      24                                  const struct in6_addr *addr);
 26         int (*ipv6_sock_mc_drop)(struct sock *     25         int (*ipv6_sock_mc_drop)(struct sock *sk, int ifindex,
 27                                  const struct      26                                  const struct in6_addr *addr);
 28         struct dst_entry *(*ipv6_dst_lookup_fl !!  27         int (*ipv6_dst_lookup)(struct net *net, struct sock *sk,
 29                                                !!  28                                struct dst_entry **dst, struct flowi6 *fl6);
 30                                                << 
 31                                                << 
 32         int (*ipv6_route_input)(struct sk_buff     29         int (*ipv6_route_input)(struct sk_buff *skb);
 33                                                    30 
 34         struct fib6_table *(*fib6_get_table)(s     31         struct fib6_table *(*fib6_get_table)(struct net *net, u32 id);
 35         int (*fib6_lookup)(struct net *net, in     32         int (*fib6_lookup)(struct net *net, int oif, struct flowi6 *fl6,
 36                            struct fib6_result      33                            struct fib6_result *res, int flags);
 37         int (*fib6_table_lookup)(struct net *n     34         int (*fib6_table_lookup)(struct net *net, struct fib6_table *table,
 38                                  int oif, stru     35                                  int oif, struct flowi6 *fl6,
 39                                  struct fib6_r     36                                  struct fib6_result *res, int flags);
 40         void (*fib6_select_path)(const struct      37         void (*fib6_select_path)(const struct net *net, struct fib6_result *res,
 41                                  struct flowi6     38                                  struct flowi6 *fl6, int oif, bool oif_match,
 42                                  const struct      39                                  const struct sk_buff *skb, int strict);
 43         u32 (*ip6_mtu_from_fib6)(const struct      40         u32 (*ip6_mtu_from_fib6)(const struct fib6_result *res,
 44                                  const struct      41                                  const struct in6_addr *daddr,
 45                                  const struct      42                                  const struct in6_addr *saddr);
 46                                                    43 
 47         int (*fib6_nh_init)(struct net *net, s     44         int (*fib6_nh_init)(struct net *net, struct fib6_nh *fib6_nh,
 48                             struct fib6_config     45                             struct fib6_config *cfg, gfp_t gfp_flags,
 49                             struct netlink_ext     46                             struct netlink_ext_ack *extack);
 50         void (*fib6_nh_release)(struct fib6_nh     47         void (*fib6_nh_release)(struct fib6_nh *fib6_nh);
 51         void (*fib6_nh_release_dsts)(struct fi << 
 52         void (*fib6_update_sernum)(struct net  << 
 53         int (*ip6_del_rt)(struct net *net, str << 
 54         void (*fib6_rt_update)(struct net *net << 
 55                                struct nl_info  << 
 56                                                << 
 57         void (*udpv6_encap_enable)(void);          48         void (*udpv6_encap_enable)(void);
 58         void (*ndisc_send_na)(struct net_devic     49         void (*ndisc_send_na)(struct net_device *dev, const struct in6_addr *daddr,
 59                               const struct in6     50                               const struct in6_addr *solicited_addr,
 60                               bool router, boo     51                               bool router, bool solicited, bool override, bool inc_opt);
 61 #if IS_ENABLED(CONFIG_XFRM)                    << 
 62         void (*xfrm6_local_rxpmtu)(struct sk_b << 
 63         int (*xfrm6_udp_encap_rcv)(struct sock << 
 64         struct sk_buff *(*xfrm6_gro_udp_encap_ << 
 65                                                << 
 66                                                << 
 67         int (*xfrm6_rcv_encap)(struct sk_buff  << 
 68                                int encap_type) << 
 69 #endif                                         << 
 70         struct neigh_table *nd_tbl;                52         struct neigh_table *nd_tbl;
 71                                                << 
 72         int (*ipv6_fragment)(struct net *net,  << 
 73                              int (*output)(str << 
 74         struct net_device *(*ipv6_dev_find)(st << 
 75                                             st << 
 76         int (*ip6_xmit)(const struct sock *sk, << 
 77                         __u32 mark, struct ipv << 
 78 };                                                 53 };
 79 extern const struct ipv6_stub *ipv6_stub __rea     54 extern const struct ipv6_stub *ipv6_stub __read_mostly;
 80                                                    55 
 81 /* A stub used by bpf helpers. Similarly ugly      56 /* A stub used by bpf helpers. Similarly ugly as ipv6_stub */
 82 struct ipv6_bpf_stub {                             57 struct ipv6_bpf_stub {
 83         int (*inet6_bind)(struct sock *sk, str     58         int (*inet6_bind)(struct sock *sk, struct sockaddr *uaddr, int addr_len,
 84                           u32 flags);          !!  59                           bool force_bind_address_no_port, bool with_lock);
 85         struct sock *(*udp6_lib_lookup)(struct     60         struct sock *(*udp6_lib_lookup)(struct net *net,
 86                                      const str     61                                      const struct in6_addr *saddr, __be16 sport,
 87                                      const str     62                                      const struct in6_addr *daddr, __be16 dport,
 88                                      int dif,      63                                      int dif, int sdif, struct udp_table *tbl,
 89                                      struct sk     64                                      struct sk_buff *skb);
 90         int (*ipv6_setsockopt)(struct sock *sk << 
 91                                sockptr_t optva << 
 92         int (*ipv6_getsockopt)(struct sock *sk << 
 93                                sockptr_t optva << 
 94         int (*ipv6_dev_get_saddr)(struct net * << 
 95                                   const struct << 
 96                                   const struct << 
 97                                   unsigned int << 
 98                                   struct in6_a << 
 99 };                                                 65 };
100 extern const struct ipv6_bpf_stub *ipv6_bpf_st     66 extern const struct ipv6_bpf_stub *ipv6_bpf_stub __read_mostly;
101                                                    67 
102 #endif                                             68 #endif
103                                                    69 

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

kernel.org | git.kernel.org | LWN.net | Project Home | 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.

sflogo.php