Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

if_arp.h 445B

1234567891011121314151617181920212223
  1. #ifndef _IF_ARP_H
  2. #define _IF_ARP_H
  3. #define ARP_REQUEST 1
  4. #define ARP_REPLY 2
  5. /*
  6. * A pity sipaddr and tipaddr are not longword aligned or we could use
  7. * in_addr. No, I don't want to use #pragma packed.
  8. */
  9. struct arprequest {
  10. uint16_t hwtype;
  11. uint16_t protocol;
  12. uint8_t hwlen;
  13. uint8_t protolen;
  14. uint16_t opcode;
  15. uint8_t shwaddr[6];
  16. uint8_t sipaddr[4];
  17. uint8_t thwaddr[6];
  18. uint8_t tipaddr[4];
  19. } PACKED;
  20. #endif /* _IF_ARP_H */