Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenarp.h
Go to the documentation of this file.
00001 /* 00002 * COPYRIGHT: See COPYING in the top level directory 00003 * PROJECT: ReactOS TCP/IP protocol driver 00004 * FILE: include/arp.h 00005 * PURPOSE: Address Resolution Protocol definitions 00006 */ 00007 00008 #pragma once 00009 00010 typedef struct ARP_HEADER { 00011 USHORT HWType; /* Hardware Type */ 00012 USHORT ProtoType; /* Protocol Type */ 00013 UCHAR HWAddrLen; /* Hardware Address Length */ 00014 UCHAR ProtoAddrLen; /* Protocol Address Length */ 00015 USHORT Opcode; /* Opcode */ 00016 /* Sender's Hardware Address */ 00017 /* Sender's Protocol Address */ 00018 /* Target's Hardware Address */ 00019 /* Target's Protocol Address */ 00020 } ARP_HEADER, *PARP_HEADER; 00021 00022 /* We swap constants so we can compare values at runtime without swapping them */ 00023 #define ARP_OPCODE_REQUEST WH2N(0x0001) /* ARP request */ 00024 #define ARP_OPCODE_REPLY WH2N(0x0002) /* ARP reply */ 00025 00026 00027 BOOLEAN ARPTransmit(PIP_ADDRESS Address, PVOID LinkAddress, PIP_INTERFACE Interface); 00028 00029 VOID ARPReceive( 00030 PVOID Context, 00031 PIP_PACKET Packet); 00032 00033 /* EOF */ Generated on Sat May 26 2012 04:26:39 for ReactOS by
1.7.6.1
|