ReactOS 0.4.16-dev-297-gc569aee
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
26
27#endif /* DBG */
28
31
34
36 PTRANSPORT_ADDRESS AddrList,
39
41 PTRANSPORT_ADDRESS TdiAddress,
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
64 PAF_SEARCH SearchContext);
65
67 PAF_SEARCH SearchContext);
68
69unsigned long NTAPI inet_addr(const char*);
70
72
74
76 PIP_ADDRESS Netmask );
77
78/* EOF */
unsigned char BOOLEAN
INT AddrCompare(PIP_ADDRESS Address1, PIP_ADDRESS Address2)
Definition: address.c:257
PADDRESS_FILE AddrSearchFirst(PIP_ADDRESS Address, USHORT Port, USHORT Protocol, PAF_SEARCH SearchContext)
Definition: fileobjs.c:38
UINT AddrCountPrefixBits(PIP_ADDRESS Netmask)
Definition: address.c:64
NTSTATUS AddrGetAddress(PTRANSPORT_ADDRESS AddrList, PIP_ADDRESS Address, PUSHORT Port)
Definition: address.c:146
unsigned long NTAPI inet_addr(const char *)
Definition: address.c:307
PIP_INTERFACE AddrLocateInterface(PIP_ADDRESS MatchAddress)
Definition: interface.c:89
VOID AddrWidenAddress(PIP_ADDRESS Network, PIP_ADDRESS Source, PIP_ADDRESS Netmask)
Definition: address.c:86
PADDRESS_FILE AddrSearchNext(PAF_SEARCH SearchContext)
Definition: fileobjs.c:231
NTSTATUS AddrBuildAddress(PTRANSPORT_ADDRESS TdiAddress, PIP_ADDRESS Address, PUSHORT Port)
Definition: address.c:184
VOID IPAddressFree(PVOID Object)
Definition: address.c:99
ULONG IPv4NToHl(ULONG Address)
Definition: address.c:56
BOOLEAN AddrIsUnspecified(PIP_ADDRESS Address)
Definition: address.c:113
BOOLEAN AddrIsEqual(PIP_ADDRESS Address1, PIP_ADDRESS Address2)
Definition: address.c:221
BOOLEAN AddrIsEqualIPv4(PIP_ADDRESS Address1, IPv4_RAW_ADDRESS Address2)
Definition: address.c:296
LONG NTSTATUS
Definition: precomp.h:26
@ Network
ULONG IPv4_RAW_ADDRESS
Definition: ip.h:15
PCHAR A2S(PIP_ADDRESS Address)
Definition: address.c:17
CPPORT Port[4]
Definition: headless.c:35
unsigned int UINT
Definition: ndis.h:50
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
Definition: ndis.h:3169
unsigned short USHORT
Definition: pedump.c:61
static WCHAR Address[46]
Definition: ping.c:68
Definition: ip.h:23
#define NTAPI
Definition: typedefs.h:36
int32_t INT
Definition: typedefs.h:58
uint16_t * PUSHORT
Definition: typedefs.h:56
uint32_t ULONG
Definition: typedefs.h:59
char * PCHAR
Definition: typedefs.h:51
_Must_inspect_result_ _In_ WDFCOLLECTION _In_ WDFOBJECT Object