if_arp.h 725 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. #include <Kernel/API/POSIX/sys/socket.h>
  11. #include <Kernel/API/POSIX/sys/types.h>
  12. struct arpreq {
  13. struct sockaddr arp_pa; /* protocol address */
  14. struct sockaddr arp_ha; /* hardware address */
  15. struct sockaddr arp_netmask; /* netmask of protocol address */
  16. int arp_flags; /* flags */
  17. char arp_dev[16];
  18. };
  19. #define ARPHRD_ETHER 1
  20. #define ARPHRD_IEEE802 6
  21. #define ARPHRD_SLIP 256
  22. #define ARPHRD_PPP 512
  23. #define ARPHRD_LOOPBACK 772
  24. #define ARPHRD_FDDI 774
  25. #define ARPHRD_IEEE802_TR 800
  26. #ifdef __cplusplus
  27. }
  28. #endif