ReactOS 0.4.16-dev-306-g647d351
addr.c File Reference
#include "precomp.h"
Include dependency graph for addr.c:

Go to the source code of this file.

Functions

PDNS_FAMILY_INFO WINAPI FamilyInfo_GetForFamily (IN WORD AddressFamily)
 

Variables

DNS_FAMILY_INFO AddrFamilyTable [3]
 

Function Documentation

◆ FamilyInfo_GetForFamily()

PDNS_FAMILY_INFO WINAPI FamilyInfo_GetForFamily ( IN WORD  AddressFamily)

Definition at line 42 of file addr.c.

43{
44 /* Check which family this is */
45 switch (AddressFamily)
46 {
47 case AF_INET:
48 /* Return IPv4 Family Info */
49 return &AddrFamilyTable[0];
50
51 case AF_INET6:
52 /* Return IPv6 Family Info */
53 return &AddrFamilyTable[1];
54
55 case AF_ATM:
56 /* Return ATM Family Info */
57 return &AddrFamilyTable[2];
58
59 default:
60 /* Invalid family */
61 return NULL;
62 }
63
64}
DNS_FAMILY_INFO AddrFamilyTable[3]
Definition: addr.c:13
#define NULL
Definition: types.h:112
#define AF_INET
Definition: tcpip.h:117
IN PCO_ADDRESS_FAMILY AddressFamily
Definition: ndis.h:1906
#define AF_ATM
Definition: winsock.h:368
#define AF_INET6
Definition: winsock.h:369

Referenced by SaBlob_CreateHostent().

Variable Documentation

◆ AddrFamilyTable

DNS_FAMILY_INFO AddrFamilyTable[3]
Initial value:
=
{
{
sizeof(IP4_ADDRESS),
sizeof(SOCKADDR_IN),
},
{
sizeof(IP6_ADDRESS),
sizeof(SOCKADDR_IN6),
},
{
sizeof(ATM_ADDRESS),
sizeof(SOCKADDR_ATM),
}
}
#define DNS_TYPE_ATMA
Definition: windns.h:74
DWORD IP4_ADDRESS
Definition: windns.h:36
#define DNS_TYPE_AAAA
Definition: windns.h:68
#define DNS_TYPE_A
Definition: windns.h:41

Definition at line 13 of file addr.c.

Referenced by FamilyInfo_GetForFamily().