2005-04-17 06:20:36 +08:00
|
|
|
#ifndef _NET_RAWV6_H
|
|
|
|
#define _NET_RAWV6_H
|
|
|
|
|
2007-06-27 14:56:32 +08:00
|
|
|
#include <net/protocol.h>
|
|
|
|
|
2016-10-21 18:03:44 +08:00
|
|
|
extern struct raw_hashinfo raw_v6_hashinfo;
|
|
|
|
struct sock *__raw_v6_lookup(struct net *net, struct sock *sk,
|
|
|
|
unsigned short num, const struct in6_addr *loc_addr,
|
|
|
|
const struct in6_addr *rmt_addr, int dif);
|
|
|
|
|
|
|
|
int raw_abort(struct sock *sk, int err);
|
|
|
|
|
2007-11-20 14:35:57 +08:00
|
|
|
void raw6_icmp_error(struct sk_buff *, int nexthdr,
|
2009-06-23 19:31:07 +08:00
|
|
|
u8 type, u8 code, int inner_offset, __be32);
|
2012-05-19 02:57:34 +08:00
|
|
|
bool raw6_local_deliver(struct sk_buff *, int);
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2013-09-23 01:32:19 +08:00
|
|
|
int rawv6_rcv(struct sock *sk, struct sk_buff *skb);
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2007-06-27 14:56:32 +08:00
|
|
|
#if defined(CONFIG_IPV6_MIP6) || defined(CONFIG_IPV6_MIP6_MODULE)
|
|
|
|
int rawv6_mh_filter_register(int (*filter)(struct sock *sock,
|
|
|
|
struct sk_buff *skb));
|
|
|
|
int rawv6_mh_filter_unregister(int (*filter)(struct sock *sock,
|
|
|
|
struct sk_buff *skb));
|
|
|
|
#endif
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
#endif
|