TCPIP_DNSS_AddressCntGet Function

C

TCPIP_DNSS_RESULT TCPIP_DNSS_AddressCntGet(
    int index, 
    uint8_t * hostName, 
    uint8_t * ipCount
);

Description

This function is used to get the number of IPv4 and IPv6 address entry details from hash entry table. Here input parameter is index value. Output will be the hostname and IP address count. IP address count is the summation of both IPv4 and IPv6 address.

Preconditions

DNSServerInit() should be called.

Parameters

ParametersDescription
hostNameGet DNS host name.
ipCountGet the number of IPv4 or IPv6 Server address.
indexServer count details per index value.

Returns

  • TCPIP_DNSS_RES_OK - If entry remove is successful.

  • TCPIP_DNSS_RES_NO_ENTRY - No such entry is present.

  • TCPIP_DNSS_RES_MEMORY_FAIL - No Memory is present for IPv4 or IPv6 address type.

Remarks

None.