#include "precomp.h"
Go to the source code of this file.
|
int | sprintf (char *out, const char *fmt,...) |
|
PCHAR | A2S (PIP_ADDRESS Address) |
|
ULONG | IPv4NToHl (ULONG Address) |
|
UINT | AddrCountPrefixBits (PIP_ADDRESS Netmask) |
|
VOID | AddrWidenAddress (PIP_ADDRESS Network, PIP_ADDRESS Source, PIP_ADDRESS Netmask) |
|
VOID | IPAddressFree (PVOID Object) |
|
BOOLEAN | AddrIsUnspecified (PIP_ADDRESS Address) |
|
NTSTATUS | AddrGetAddress (PTRANSPORT_ADDRESS AddrList, PIP_ADDRESS Address, PUSHORT Port) |
|
NTSTATUS | AddrBuildAddress (PTRANSPORT_ADDRESS TaAddress, PIP_ADDRESS Address, PUSHORT Port) |
|
BOOLEAN | AddrIsEqual (PIP_ADDRESS Address1, PIP_ADDRESS Address2) |
|
INT | AddrCompare (PIP_ADDRESS Address1, PIP_ADDRESS Address2) |
|
BOOLEAN | AddrIsEqualIPv4 (PIP_ADDRESS Address1, IPv4_RAW_ADDRESS Address2) |
|
unsigned long NTAPI | inet_addr (const char *AddrString) |
|
◆ A2S()
Definition at line 17 of file address.c.
26{
29
31
36 }
37
42 (
INT)((
ip >> 24) & 0xFF),
43 (
INT)((
ip >> 16) & 0xFF),
44 (
INT)((
ip >> 8) & 0xFF),
46 break;
47
49
50 strcpy(
p,
"(IPv6 address not supported)");
51 break;
52 }
54}
char * strcpy(char *DstString, const char *SrcString)
#define TI_DbgPrint(_t_, _x_)
#define sprintf(buf, format,...)
Referenced by AddrSearchNext(), BuildRawIpPacket(), BuildUDPPacket(), FileOpenAddress(), FindOnLinkInterface(), HasPrefix(), InfoTdiSetRoute(), IPRemoveInterfaceRoute(), LogActiveObjects(), NBFindOrCreateNeighbor(), NBResetNeighborTimeout(), RouteGetRouteToDestination(), RouterAddRoute(), RouterCreateRoute(), RouterDumpRoutes(), RouterGetRoute(), and RouterRemoveRoute().
◆ AddrBuildAddress()
Definition at line 184 of file address.c.
188{
191
196 }
199 (
MID_TRACE,(
"AddressLength %x, Not valid (expected %x)\n",
202 }
203
204
206
209
211}
#define AddrInitIPv4(IPAddress, RawAddress)
#define STATUS_INVALID_ADDRESS
struct _TDI_ADDRESS_IP * PTDI_ADDRESS_IP
#define TDI_ADDRESS_LENGTH_IP
#define TDI_ADDRESS_TYPE_IP
Referenced by TCPConnect().
◆ AddrCompare()
Definition at line 257 of file address.c.
260{
261 switch (Address1->
Type) {
267 if (Addr1 < Addr2)
268 return -1;
269 else
270 if (Addr1 == Addr2)
271 return 0;
272 else
273 return 1;
274 } else
275
276 return -1;
277
279
280 break;
281 }
282 }
283
285}
union IP_ADDRESS::@1014 Address
IPv4_RAW_ADDRESS IPv4Address
◆ AddrCountPrefixBits()
◆ AddrGetAddress()
Definition at line 146 of file address.c.
150{
153
154
156
161
168 }
169 }
170 }
171
173}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Referenced by DGReceiveDatagram().
◆ AddrIsEqual()
Definition at line 221 of file address.c.
224{
225 if (Address1->
Type != Address2->
Type) {
226 DbgPrint(
"AddrIsEqual: Unequal Address Types\n");
228 }
229
230 switch (Address1->
Type) {
233
237 break;
238
239 default:
240 DbgPrint(
"AddrIsEqual: Bad address type\n");
241 break;
242 }
243
245}
USHORT IPv6_RAW_ADDRESS[8]
#define RtlCompareMemory(s1, s2, l)
Referenced by AddrIsBroadcastMatch(), AddrLocateInterface(), AddrReceiveMatch(), ARPReceive(), DGDeliverData(), GetReassemblyInfo(), NBCopyNeighbors(), NBFindOrCreateNeighbor(), NBLocateNeighbor(), NBResetNeighborTimeout(), RouterCreateRoute(), and RouterRemoveRoute().
◆ AddrIsEqualIPv4()
◆ AddrIsUnspecified()
Definition at line 113 of file address.c.
122{
125 return (
Address->Address.IPv4Address == 0 ||
126 Address->Address.IPv4Address == 0xFFFFFFFF);
127
129
130 default:
132 }
133}
Referenced by AddrIsBroadcastMatch(), AddrReceiveMatch(), DGDeliverData(), DispTdiQueryIpHwAddress(), FileOpenAddress(), FindOnLinkInterface(), GetDefaultInterface(), NBFindOrCreateNeighbor(), RawIPSendDatagram(), ReadIpConfiguration(), TCPConnect(), and UDPSendDatagram().
◆ AddrWidenAddress()
◆ inet_addr()
Definition at line 307 of file address.c.
315{
316 ULONG Octets[4] = {0,0,0,0};
318
319 if(!AddrString)
320 return -1;
321
322 while(*AddrString)
323 {
324 CHAR c = *AddrString;
325 AddrString++;
326
328 {
330 continue;
331 }
332
333 if(
c <
'0' ||
c >
'9')
334 return -1;
335
337 Octets[
i] += (
c -
'0');
338
340 return -1;
341 }
342
343 return (Octets[3] << 24) + (Octets[2] << 16) + (Octets[1] << 8) + Octets[0];
344}
◆ IPAddressFree()
Definition at line 99 of file address.c.
108{
110}
#define ExFreePoolWithTag(_P, _T)
_Must_inspect_result_ _In_ WDFCOLLECTION _In_ WDFOBJECT Object
◆ IPv4NToHl()
◆ sprintf()
Definition at line 768 of file utprint.c.
772{
775
776
780
782}
_In_ ULONG _In_ ULONG _In_ ULONG Length
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
◆ A2SStr