18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _NET_RAWV6_H
38c2ecf20Sopenharmony_ci#define _NET_RAWV6_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#include <net/protocol.h>
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ciextern struct raw_hashinfo raw_v6_hashinfo;
88c2ecf20Sopenharmony_cistruct sock *__raw_v6_lookup(struct net *net, struct sock *sk,
98c2ecf20Sopenharmony_ci			     unsigned short num, const struct in6_addr *loc_addr,
108c2ecf20Sopenharmony_ci			     const struct in6_addr *rmt_addr, int dif, int sdif);
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ciint raw_abort(struct sock *sk, int err);
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_civoid raw6_icmp_error(struct sk_buff *, int nexthdr,
158c2ecf20Sopenharmony_ci		u8 type, u8 code, int inner_offset, __be32);
168c2ecf20Sopenharmony_cibool raw6_local_deliver(struct sk_buff *, int);
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ciint rawv6_rcv(struct sock *sk, struct sk_buff *skb);
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci#if defined(CONFIG_IPV6_MIP6) || defined(CONFIG_IPV6_MIP6_MODULE)
218c2ecf20Sopenharmony_ciint rawv6_mh_filter_register(int (*filter)(struct sock *sock,
228c2ecf20Sopenharmony_ci					   struct sk_buff *skb));
238c2ecf20Sopenharmony_ciint rawv6_mh_filter_unregister(int (*filter)(struct sock *sock,
248c2ecf20Sopenharmony_ci					     struct sk_buff *skb));
258c2ecf20Sopenharmony_ci#endif
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci#endif
28