mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-17 16:42:54 +00:00
Kernel+LibC: Share definitions for net/{if,if_arp,route}.h
This commit is contained in:
parent
ff50122dc5
commit
661bd992b0
Notes:
sideshowbarker
2024-07-18 06:54:23 +09:00
Author: https://github.com/awesomekling
Commit: 661bd992b0
8 changed files with 133 additions and 121 deletions
26
Kernel/API/POSIX/net/if_arp.h
Normal file
26
Kernel/API/POSIX/net/if_arp.h
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue