if_arp.h 547 B

1234567891011121314151617181920212223242526
  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. #ifdef __cplusplus
  20. }
  21. #endif