NCDConfig

C Specification

#include <revolution/ncd.h>
#define     NCD_CONFIG_VERSION              0       /* NCDConfig structure version information */

/* the overall network profile structure */
typedef struct NCDProfile
{
    u8      flags;          /* NCD_FLAG_* logical OR */
    u8      reserved[ 3 ];

    NCDIpProfile        ip;
    NCDIpAdjustProfile  adjust;
    NCDProxyProfile     proxy;

    union
    {
        NCDWiredProfile      wired;
        NCDWirelessProfile   wireless;
    
    } netif;

} ATTRIBUTE_PACKED NCDProfile;

/* the overall network configuration structure */
typedef struct NCDConfig
{
    u32             version;            /* sets NCD_CONFIG_VERSION  */
    u8              selectedMedia;      /* NCD_IF_SELECT_* */
    u8              nwc24Permission;    /* NCD_NWC24_PERMISSION_* logical OR */
    u8              linkTimeout;        /* in seconds */
    u8              reserved[ 1 ];
    NCDProfile      profiles[ NCD_PROFILE_COUNT ];

} ATTRIBUTE_PACKED NCDConfig;

Description

This structure stores the network configuration.

Set NCD_CONFIG_VERSION for the version member variable of NCDConfig.

See Also

None.

Revision History

2006/08/16 Added the version member.
2006/08/09 Initial version.


CONFIDENTIAL