162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#ifndef _NET_RAWV6_H
362306a36Sopenharmony_ci#define _NET_RAWV6_H
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci#include <net/protocol.h>
662306a36Sopenharmony_ci#include <net/raw.h>
762306a36Sopenharmony_ci
862306a36Sopenharmony_ciextern struct raw_hashinfo raw_v6_hashinfo;
962306a36Sopenharmony_cibool raw_v6_match(struct net *net, const struct sock *sk, unsigned short num,
1062306a36Sopenharmony_ci		  const struct in6_addr *loc_addr,
1162306a36Sopenharmony_ci		  const struct in6_addr *rmt_addr, int dif, int sdif);
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ciint raw_abort(struct sock *sk, int err);
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_civoid raw6_icmp_error(struct sk_buff *, int nexthdr,
1662306a36Sopenharmony_ci		u8 type, u8 code, int inner_offset, __be32);
1762306a36Sopenharmony_cibool raw6_local_deliver(struct sk_buff *, int);
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ciint rawv6_rcv(struct sock *sk, struct sk_buff *skb);
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ci#if defined(CONFIG_IPV6_MIP6) || defined(CONFIG_IPV6_MIP6_MODULE)
2262306a36Sopenharmony_ciint rawv6_mh_filter_register(int (*filter)(struct sock *sock,
2362306a36Sopenharmony_ci					   struct sk_buff *skb));
2462306a36Sopenharmony_ciint rawv6_mh_filter_unregister(int (*filter)(struct sock *sock,
2562306a36Sopenharmony_ci					     struct sk_buff *skb));
2662306a36Sopenharmony_ci#endif
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci#endif
29