Kernel+LibC: Share definitions for net/{if,if_arp,route}.h

This commit is contained in:
Andreas Kling 2021-08-14 18:06:44 +02:00
parent ff50122dc5
commit 661bd992b0
Notes: sideshowbarker 2024-07-18 06:54:23 +09:00
8 changed files with 133 additions and 121 deletions

View file

@ -0,0 +1,26 @@
/*
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <Kernel/API/POSIX/sys/socket.h>
#include <Kernel/API/POSIX/sys/types.h>
struct arpreq {
struct sockaddr arp_pa; /* protocol address */
struct sockaddr arp_ha; /* hardware address */
struct sockaddr arp_netmask; /* netmask of protocol address */
int arp_flags; /* flags */
char arp_dev[16];
};
#ifdef __cplusplus
}
#endif