nif_etherh.inc 654 B

123456789101112131415161718192021
  1. type
  2. Pether_arp = ^ether_arp;
  3. ether_arp = record
  4. ea_hdr : arphdr;
  5. arp_sha : array[0..(ETH_ALEN)-1] of u_int8_t;
  6. arp_spa : array[0..3] of u_int8_t;
  7. arp_tha : array[0..(ETH_ALEN)-1] of u_int8_t;
  8. arp_tpa : array[0..3] of u_int8_t;
  9. end;
  10. { ---------------------------------------------------------------------
  11. Borland compatibility types
  12. ---------------------------------------------------------------------}
  13. type
  14. TEthernetAddress = packed array[0..ETH_ALEN-1] of u_char;
  15. PEthernetAddress = ^TEthernetAddress;
  16. procedure ETHER_MAP_IP_MULTICAST(const ipaddr: in_addr; enaddr: PEthernetAddress);