]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
1da177e4 LT |
2 | #ifndef _NET_RAWV6_H |
3 | #define _NET_RAWV6_H | |
4 | ||
59fbb3a6 | 5 | #include <net/protocol.h> |
0daf07e5 | 6 | #include <net/raw.h> |
59fbb3a6 | 7 | |
432490f9 | 8 | extern struct raw_hashinfo raw_v6_hashinfo; |
db6af4fd | 9 | bool raw_v6_match(struct net *net, const struct sock *sk, unsigned short num, |
ba44f818 ED |
10 | const struct in6_addr *loc_addr, |
11 | const struct in6_addr *rmt_addr, int dif, int sdif); | |
432490f9 CG |
12 | |
13 | int raw_abort(struct sock *sk, int err); | |
14 | ||
69d6da0b | 15 | void raw6_icmp_error(struct sk_buff *, int nexthdr, |
d5fdd6ba | 16 | u8 type, u8 code, int inner_offset, __be32); |
a50feda5 | 17 | bool raw6_local_deliver(struct sk_buff *, int); |
1da177e4 | 18 | |
0ad6ad94 | 19 | int rawv6_rcv(struct sock *sk, struct sk_buff *skb); |
1da177e4 | 20 | |
59fbb3a6 MN |
21 | #if defined(CONFIG_IPV6_MIP6) || defined(CONFIG_IPV6_MIP6_MODULE) |
22 | int rawv6_mh_filter_register(int (*filter)(struct sock *sock, | |
23 | struct sk_buff *skb)); | |
24 | int rawv6_mh_filter_unregister(int (*filter)(struct sock *sock, | |
25 | struct sk_buff *skb)); | |
26 | #endif | |
27 | ||
1da177e4 | 28 | #endif |