mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 18:17:45 +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:
parent
f8c104aaaf
commit
8313d35749
4 changed files with 50 additions and 0 deletions
|
@ -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];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue