* Completed the previous commit and merger of the team/network/new_stack branch.
* Removed ppp_up and pppcontrol from the image for now. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18457 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright 2006, Haiku, Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef ARP_CONTROL_H
|
||||
#define ARP_CONTROL_H
|
||||
|
||||
|
||||
#include <ethernet.h>
|
||||
|
||||
#include <netinet/in.h>
|
||||
|
||||
|
||||
// ARP flags
|
||||
#define ARP_FLAG_LOCAL 0x01
|
||||
#define ARP_FLAG_REJECT 0x02
|
||||
#define ARP_FLAG_PERMANENT 0x04
|
||||
#define ARP_FLAG_PUBLISH 0x08
|
||||
|
||||
|
||||
// generic syscall interface
|
||||
#define ARP_SYSCALLS "network/arp"
|
||||
|
||||
#define ARP_SET_ENTRY 1
|
||||
#define ARP_GET_ENTRY 2
|
||||
#define ARP_GET_ENTRIES 3
|
||||
#define ARP_DELETE_ENTRY 4
|
||||
#define ARP_FLUSH_ENTRIES 5
|
||||
#define ARP_IGNORE_REPLIES 6
|
||||
|
||||
struct arp_control {
|
||||
in_addr_t address;
|
||||
uint8 ethernet_address[ETHER_ADDRESS_LENGTH];
|
||||
uint32 flags;
|
||||
uint32 cookie;
|
||||
};
|
||||
|
||||
#endif // ARP_CONTROL_H
|
||||
Reference in New Issue
Block a user