www.beck-ipc.com

@CHIP-RTOS C Library V2.06 - TCP/IP API


Dev_PPP_Get_Peer_DNSIP

Get IP address of the DNS server from a PPP peer.

int Dev_PPP_Get_Peer_DNSIP(DevUserIfaceHandle DevHandlePtr,
                        long far * address,
                        int flag,
                        int *error);

Parameters

DevHandlePtr

Device handle

flag

1: get IP of primary DNS server, 2: Get IP of secondary DNS server

error

Output parameter:  Failure code, 0 on success.

Return Value

0: success, address points to the IP of the DNS server
-1: failed

See Also

RTOS API

This library function invokes a RTOS software interrupt. Refer to this RTOS API function's documentation for more details.

Supported since or modified in @CHIP-RTOS version

    SC12SC13SC11SC1x3
    V1.11V1.01V1.01V0.90

This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document