0001
0002 #ifndef _NET_RAWV6_H
0003 #define _NET_RAWV6_H
0004
0005 #include <net/protocol.h>
0006 #include <net/raw.h>
0007
0008 extern struct raw_hashinfo raw_v6_hashinfo;
0009 bool raw_v6_match(struct net *net, struct sock *sk, unsigned short num,
0010 const struct in6_addr *loc_addr,
0011 const struct in6_addr *rmt_addr, int dif, int sdif);
0012
0013 int raw_abort(struct sock *sk, int err);
0014
0015 void raw6_icmp_error(struct sk_buff *, int nexthdr,
0016 u8 type, u8 code, int inner_offset, __be32);
0017 bool raw6_local_deliver(struct sk_buff *, int);
0018
0019 int rawv6_rcv(struct sock *sk, struct sk_buff *skb);
0020
0021 #if defined(CONFIG_IPV6_MIP6) || defined(CONFIG_IPV6_MIP6_MODULE)
0022 int rawv6_mh_filter_register(int (*filter)(struct sock *sock,
0023 struct sk_buff *skb));
0024 int rawv6_mh_filter_unregister(int (*filter)(struct sock *sock,
0025 struct sk_buff *skb));
0026 #endif
0027
0028 #endif