gre.h 410 B

12345678910111213141516171819
  1. #ifndef __LINUX_GRE_H
  2. #define __LINUX_GRE_H
  3. #include <linux/skbuff.h>
  4. #define GREPROTO_CISCO 0
  5. #define GREPROTO_PPTP 1
  6. #define GREPROTO_MAX 2
  7. struct gre_protocol {
  8. int (*handler)(struct sk_buff *skb);
  9. void (*err_handler)(struct sk_buff *skb, u32 info);
  10. };
  11. int gre_add_protocol(const struct gre_protocol *proto, u8 version);
  12. int gre_del_protocol(const struct gre_protocol *proto, u8 version);
  13. #endif