ReactOS 0.4.15-dev-8093-g3285f69
arp.h
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS TCP/IP protocol driver
4 * FILE: include/arp.h
5 * PURPOSE: Address Resolution Protocol definitions
6 */
7
8#pragma once
9
10typedef struct ARP_HEADER {
11 USHORT HWType; /* Hardware Type */
12 USHORT ProtoType; /* Protocol Type */
13 UCHAR HWAddrLen; /* Hardware Address Length */
14 UCHAR ProtoAddrLen; /* Protocol Address Length */
15 USHORT Opcode; /* Opcode */
16 /* Sender's Hardware Address */
17 /* Sender's Protocol Address */
18 /* Target's Hardware Address */
19 /* Target's Protocol Address */
21
22/* We swap constants so we can compare values at runtime without swapping them */
23#define ARP_OPCODE_REQUEST WH2N(0x0001) /* ARP request */
24#define ARP_OPCODE_REPLY WH2N(0x0002) /* ARP reply */
25
26
28
32
33/* EOF */
unsigned char BOOLEAN
struct ARP_HEADER * PARP_HEADER
BOOLEAN ARPTransmit(PIP_ADDRESS Address, PVOID LinkAddress, PIP_INTERFACE Interface)
Definition: arp.c:111
VOID ARPReceive(PVOID Context, PIP_PACKET Packet)
Definition: arp.c:175
_In_ NDIS_HANDLE _In_ PNDIS_PACKET Packet
Definition: ndis.h:1549
unsigned short USHORT
Definition: pedump.c:61
static WCHAR Address[46]
Definition: ping.c:68
Definition: arp.h:10
UCHAR ProtoAddrLen
Definition: arp.h:14
USHORT HWType
Definition: arp.h:11
USHORT ProtoType
Definition: arp.h:12
UCHAR HWAddrLen
Definition: arp.h:13
USHORT Opcode
Definition: arp.h:15
Definition: ip.h:23
Definition: ip.h:77
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE Interface
Definition: wdffdo.h:465
unsigned char UCHAR
Definition: xmlstorage.h:181