1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:14:58 +00:00

Kernel: Support ioctl SIOCSARP and SIOCDARP

Creates ioctl calls necessary to set/delete an entry from the ARP table
This commit is contained in:
brapru 2021-07-24 20:04:11 -04:00 committed by Andreas Kling
parent f8c104aaaf
commit 8313d35749
4 changed files with 50 additions and 0 deletions

View file

@ -691,6 +691,14 @@ struct rtentry {
#define AT_FDCWD -100
#define AT_SYMLINK_NOFOLLOW 0x100
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];
};
#define PURGE_ALL_VOLATILE 0x1
#define PURGE_ALL_CLEAN_INODE 0x2