rawv6.h 856 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _NET_RAWV6_H
  3. #define _NET_RAWV6_H
  4. #include <net/protocol.h>
  5. #include <net/raw.h>
  6. extern struct raw_hashinfo raw_v6_hashinfo;
  7. bool raw_v6_match(struct net *net, struct sock *sk, unsigned short num,
  8. const struct in6_addr *loc_addr,
  9. const struct in6_addr *rmt_addr, int dif, int sdif);
  10. int raw_abort(struct sock *sk, int err);
  11. void raw6_icmp_error(struct sk_buff *, int nexthdr,
  12. u8 type, u8 code, int inner_offset, __be32);
  13. bool raw6_local_deliver(struct sk_buff *, int);
  14. int rawv6_rcv(struct sock *sk, struct sk_buff *skb);
  15. #if defined(CONFIG_IPV6_MIP6) || defined(CONFIG_IPV6_MIP6_MODULE)
  16. int rawv6_mh_filter_register(int (*filter)(struct sock *sock,
  17. struct sk_buff *skb));
  18. int rawv6_mh_filter_unregister(int (*filter)(struct sock *sock,
  19. struct sk_buff *skb));
  20. #endif
  21. #endif