icmpv6.h 816 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef _LINUX_ICMPV6_H
  2. #define _LINUX_ICMPV6_H
  3. #include <linux/skbuff.h>
  4. #include <uapi/linux/icmpv6.h>
  5. static inline struct icmp6hdr *icmp6_hdr(const struct sk_buff *skb)
  6. {
  7. return (struct icmp6hdr *)skb_transport_header(skb);
  8. }
  9. #include <linux/netdevice.h>
  10. extern void icmpv6_send(struct sk_buff *skb,
  11. u8 type, u8 code,
  12. __u32 info);
  13. extern int icmpv6_init(void);
  14. extern int icmpv6_err_convert(u8 type, u8 code,
  15. int *err);
  16. extern void icmpv6_cleanup(void);
  17. extern void icmpv6_param_prob(struct sk_buff *skb,
  18. u8 code, int pos);
  19. struct flowi6;
  20. struct in6_addr;
  21. extern void icmpv6_flow_init(struct sock *sk,
  22. struct flowi6 *fl6,
  23. u8 type,
  24. const struct in6_addr *saddr,
  25. const struct in6_addr *daddr,
  26. int oif);
  27. #endif