Skip to main content
Knowledgebase
Home
Renesas Electronics America - Knowledgebase

How do I get the IP address using nx_ip_interface_info_get function?

Latest Updated:10/04/2016

Question:

How do I get the IP Address using nx_ip_interface_info_get?

Answer:

You can use the following code fragment to see the proper use of the function call:

CHAR *name_ptr;
        ULONG ip_address;
        ULONG network_mask;
        ULONG mtu_size;
        ULONG physical_address_msw;
        ULONG physical_address_lsw;

        status = nx_ip_interface_info_get(&ip_0, 0, &name_ptr, &ip_address,
        &network_mask,
        &mtu_size, &physical_address_msw,
        &physical_address_lsw);

Refer to the NX manual for details:

info_get.JPG
Suitable Products
NX