mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 06:43:01 +00:00
Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.
This commit is contained in:
parent
b94e2d8ca0
commit
c2c66aff7d
24198 changed files with 0 additions and 37285 deletions
33
drivers/network/tcpip/include/arp.h
Normal file
33
drivers/network/tcpip/include/arp.h
Normal file
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS TCP/IP protocol driver
|
||||
* FILE: include/arp.h
|
||||
* PURPOSE: Address Resolution Protocol definitions
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
typedef struct ARP_HEADER {
|
||||
USHORT HWType; /* Hardware Type */
|
||||
USHORT ProtoType; /* Protocol Type */
|
||||
UCHAR HWAddrLen; /* Hardware Address Length */
|
||||
UCHAR ProtoAddrLen; /* Protocol Address Length */
|
||||
USHORT Opcode; /* Opcode */
|
||||
/* Sender's Hardware Address */
|
||||
/* Sender's Protocol Address */
|
||||
/* Target's Hardware Address */
|
||||
/* Target's Protocol Address */
|
||||
} ARP_HEADER, *PARP_HEADER;
|
||||
|
||||
/* We swap constants so we can compare values at runtime without swapping them */
|
||||
#define ARP_OPCODE_REQUEST WH2N(0x0001) /* ARP request */
|
||||
#define ARP_OPCODE_REPLY WH2N(0x0002) /* ARP reply */
|
||||
|
||||
|
||||
BOOLEAN ARPTransmit(PIP_ADDRESS Address, PVOID LinkAddress, PIP_INTERFACE Interface);
|
||||
|
||||
VOID ARPReceive(
|
||||
PVOID Context,
|
||||
PIP_PACKET Packet);
|
||||
|
||||
/* EOF */
|
Loading…
Add table
Add a link
Reference in a new issue