diff options
author | brapru <brapru@pm.me> | 2021-07-24 20:04:11 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-25 17:57:08 +0200 |
commit | 8313d357499b3ac473120252143037e6e633bf60 (patch) | |
tree | 56cc7b547950a1abd03f6fdc035259b843355830 /Userland/Libraries/LibC/net | |
parent | f8c104aaaf4b52f5d8bcf7f41e06b64c16f84b00 (diff) | |
download | serenity-8313d357499b3ac473120252143037e6e633bf60.zip |
Kernel: Support ioctl SIOCSARP and SIOCDARP
Creates ioctl calls necessary to set/delete an entry from the ARP table
Diffstat (limited to 'Userland/Libraries/LibC/net')
-rw-r--r-- | Userland/Libraries/LibC/net/route.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Userland/Libraries/LibC/net/route.h b/Userland/Libraries/LibC/net/route.h index 27cf9596c6..aa82d81c92 100644 --- a/Userland/Libraries/LibC/net/route.h +++ b/Userland/Libraries/LibC/net/route.h @@ -18,3 +18,11 @@ struct rtentry { #define RTF_UP 0x1 /* do not delete the route */ #define RTF_GATEWAY 0x2 /* the route is a gateway and not an end host */ + +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]; +}; |