ebt_arp.h
上传用户:szlgq88
上传日期:2009-04-28
资源大小:48287k
文件大小:1k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. #ifndef __LINUX_BRIDGE_EBT_ARP_H
  2. #define __LINUX_BRIDGE_EBT_ARP_H
  3. #define EBT_ARP_OPCODE 0x01
  4. #define EBT_ARP_HTYPE 0x02
  5. #define EBT_ARP_PTYPE 0x04
  6. #define EBT_ARP_SRC_IP 0x08
  7. #define EBT_ARP_DST_IP 0x10
  8. #define EBT_ARP_SRC_MAC 0x20
  9. #define EBT_ARP_DST_MAC 0x40
  10. #define EBT_ARP_MASK (EBT_ARP_OPCODE | EBT_ARP_HTYPE | EBT_ARP_PTYPE | 
  11.    EBT_ARP_SRC_IP | EBT_ARP_DST_IP | EBT_ARP_SRC_MAC | EBT_ARP_DST_MAC)
  12. #define EBT_ARP_MATCH "arp"
  13. struct ebt_arp_info
  14. {
  15. uint16_t htype;
  16. uint16_t ptype;
  17. uint16_t opcode;
  18. uint32_t saddr;
  19. uint32_t smsk;
  20. uint32_t daddr;
  21. uint32_t dmsk;
  22. unsigned char smaddr[ETH_ALEN];
  23. unsigned char smmsk[ETH_ALEN];
  24. unsigned char dmaddr[ETH_ALEN];
  25. unsigned char dmmsk[ETH_ALEN];
  26. uint8_t  bitmask;
  27. uint8_t  invflags;
  28. };
  29. #endif