NCDIpProfile

C Specification

#include <revolution/ncd.h>
#define     NCD_SIZE_IP                     4

/* the Internet protocol settings structure */
typedef struct NCDIpProfile
{
    u8      addr[ NCD_SIZE_IP ];    /* IP address */
    u8      netmask[ NCD_SIZE_IP ]; /* subnet mask */
    u8      gateway[ NCD_SIZE_IP ]; /* the gateway IP address */
    u8      dns1[ NCD_SIZE_IP ];    /* the primary DNS server's IP address */
    u8      dns2[ NCD_SIZE_IP ];    /* the secondary DNS server's IP address */

} ATTRIBUTE_PACKED NCDIpProfile;

/* the socket library adjustment parameter structure */
typedef struct NCDIpAdjustProfile
{
    s32     maxTransferUnit;        /* default ( 1500 ) MTU value */
    s32     tcpRetransTimeout;      /* default ( 100 ) TCP timeout (in seconds) */
    s32     dhcpRetransCount;       /* default ( 4 ) DHCP tries */

} ATTRIBUTE_PACKED NCDIpAdjustProfile;

Description

This structure stores detailed TCP/IP-related network settings.

When 0 is set for each member of NCDIpAdjustProfile, the default value is used.

See Also

None.

Revision History

2006/08/15 Changed the NCDIpAdjustProfile structure.
2006/08/14 Added information about setting default values.
2006/08/09 Initial version.


CONFIDENTIAL