Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | #ifndef _NET_RAWV6_H |
| 3 | #define _NET_RAWV6_H |
| 4 | |
Masahide NAKAMURA | 59fbb3a6 | 2007-06-26 23:56:32 -0700 | [diff] [blame] | 5 | #include <net/protocol.h> |
| 6 | |
Cyrill Gorcunov | 432490f | 2016-10-21 13:03:44 +0300 | [diff] [blame] | 7 | extern struct raw_hashinfo raw_v6_hashinfo; |
| 8 | struct sock *__raw_v6_lookup(struct net *net, struct sock *sk, |
| 9 | unsigned short num, const struct in6_addr *loc_addr, |
David Ahern | 5108ab4 | 2017-08-07 08:44:22 -0700 | [diff] [blame] | 10 | const struct in6_addr *rmt_addr, int dif, int sdif); |
Cyrill Gorcunov | 432490f | 2016-10-21 13:03:44 +0300 | [diff] [blame] | 11 | |
| 12 | int raw_abort(struct sock *sk, int err); |
| 13 | |
Pavel Emelyanov | 69d6da0 | 2007-11-19 22:35:57 -0800 | [diff] [blame] | 14 | void raw6_icmp_error(struct sk_buff *, int nexthdr, |
Brian Haley | d5fdd6b | 2009-06-23 04:31:07 -0700 | [diff] [blame] | 15 | u8 type, u8 code, int inner_offset, __be32); |
Eric Dumazet | a50feda | 2012-05-18 18:57:34 +0000 | [diff] [blame] | 16 | bool raw6_local_deliver(struct sk_buff *, int); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | |
Joe Perches | 0ad6ad9 | 2013-09-22 10:32:19 -0700 | [diff] [blame] | 18 | int rawv6_rcv(struct sock *sk, struct sk_buff *skb); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | |
Masahide NAKAMURA | 59fbb3a6 | 2007-06-26 23:56:32 -0700 | [diff] [blame] | 20 | #if defined(CONFIG_IPV6_MIP6) || defined(CONFIG_IPV6_MIP6_MODULE) |
| 21 | int rawv6_mh_filter_register(int (*filter)(struct sock *sock, |
| 22 | struct sk_buff *skb)); |
| 23 | int rawv6_mh_filter_unregister(int (*filter)(struct sock *sock, |
| 24 | struct sk_buff *skb)); |
| 25 | #endif |
| 26 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | #endif |