ReactOS  0.4.14-dev-384-g5b37caa
address.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/address.h
5  * PURPOSE: Address manipulation prototypes
6  */
7 
8 #pragma once
9 
10 /*
11  * Initialize an IPv4 style address
12  * VOID AddrInitIPv4(
13  * PIP_ADDRESS IPAddress,
14  * IPv4_RAW_ADDRESS RawAddress)
15  */
16 #define AddrInitIPv4(IPAddress, RawAddress) \
17 { \
18  (IPAddress)->Type = IP_ADDRESS_V4; \
19  (IPAddress)->Address.IPv4Address = (RawAddress); \
20 }
21 
22 #if DBG
23 
24 PCHAR A2S(
26 
27 #endif /* DBG */
28 
30  PVOID Object);
31 
34 
36  PTRANSPORT_ADDRESS AddrList,
38  PUSHORT Port);
39 
41  PTRANSPORT_ADDRESS TdiAddress,
43  PUSHORT Port);
44 
46  PIP_ADDRESS Address1,
47  PIP_ADDRESS Address2);
48 
50  PIP_ADDRESS Address1,
51  PIP_ADDRESS Address2);
52 
54  PIP_ADDRESS Address1,
55  IPv4_RAW_ADDRESS Address2);
56 
58  PIP_ADDRESS MatchAddress);
59 
62  USHORT Port,
64  PAF_SEARCH SearchContext);
65 
67  PAF_SEARCH SearchContext);
68 
69 unsigned long NTAPI inet_addr(const char*);
70 
72 
74 
76  PIP_ADDRESS Netmask );
77 
78 /* EOF */
BOOLEAN AddrIsUnspecified(PIP_ADDRESS Address)
Definition: address.c:113
signed char * PCHAR
Definition: retypes.h:7
CPPORT Port[4]
Definition: headless.c:34
ULONG IPv4_RAW_ADDRESS
Definition: ip.h:15
LONG NTSTATUS
Definition: precomp.h:26
int32_t INT
Definition: typedefs.h:56
Definition: ip.h:23
PADDRESS_FILE AddrSearchFirst(PIP_ADDRESS Address, USHORT Port, USHORT Protocol, PAF_SEARCH SearchContext)
Definition: fileobjs.c:38
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
unsigned char BOOLEAN
static WCHAR Address[46]
Definition: ping.c:68
BOOLEAN AddrIsEqualIPv4(PIP_ADDRESS Address1, IPv4_RAW_ADDRESS Address2)
Definition: address.c:296
VOID IPAddressFree(PVOID Object)
Definition: address.c:99
VOID AddrWidenAddress(PIP_ADDRESS Network, PIP_ADDRESS Source, PIP_ADDRESS Netmask)
Definition: address.c:86
INT AddrCompare(PIP_ADDRESS Address1, PIP_ADDRESS Address2)
Definition: address.c:257
static IUnknown Object
Definition: main.c:512
BOOLEAN AddrIsEqual(PIP_ADDRESS Address1, PIP_ADDRESS Address2)
Definition: address.c:221
unsigned long NTAPI inet_addr(const char *)
Definition: address.c:307
UINT AddrCountPrefixBits(PIP_ADDRESS Netmask)
Definition: address.c:64
PADDRESS_FILE AddrSearchNext(PAF_SEARCH SearchContext)
Definition: fileobjs.c:231
PIP_INTERFACE AddrLocateInterface(PIP_ADDRESS MatchAddress)
Definition: interface.c:89
unsigned short USHORT
Definition: pedump.c:61
unsigned int UINT
Definition: ndis.h:50
ULONG IPv4NToHl(ULONG Address)
Definition: address.c:56
NTSTATUS AddrGetAddress(PTRANSPORT_ADDRESS AddrList, PIP_ADDRESS Address, PUSHORT Port)
Definition: address.c:146
unsigned int ULONG
Definition: retypes.h:1
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
Definition: ndis.h:3167
NTSTATUS AddrBuildAddress(PTRANSPORT_ADDRESS TdiAddress, PIP_ADDRESS Address, PUSHORT Port)
Definition: address.c:184
unsigned short * PUSHORT
Definition: retypes.h:2
PCHAR A2S(PIP_ADDRESS Address)
Definition: address.c:17