1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META http-equiv="Content-Style-Type" content="text/css"> 6<TITLE>NCDConfig</TITLE> 7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 8</HEAD> 9<BODY> 10<H1>NCDConfig</H1> 11 12<H2>C Specification</H2> 13<DL> 14 <DD><PRE><CODE>#include <revolution/ncd.h></CODE></PRE> 15 <DD><PRE><CODE>#define NCD_CONFIG_VERSION 0 /* NCDConfig structure version information */ 16 17/* the overall network profile structure */ 18typedef struct NCDProfile 19{ 20 u8 flags; /* NCD_FLAG_* logical OR */ 21 u8 reserved[ 3 ]; 22 23 <A href="NCDIpProfile.html">NCDIpProfile</A> ip; 24 <A href="NCDIpProfile.html">NCDIpAdjustProfile</A> adjust; 25 <A href="NCDProxyProfile.html">NCDProxyProfile</A> proxy; 26 27 union 28 { 29 <A href="NCDWiredProfile.html">NCDWiredProfile</A> wired; 30 <A href="NCDWirelessProfile.html">NCDWirelessProfile</A> wireless; 31 32 } netif; 33 34} ATTRIBUTE_PACKED NCDProfile; 35 36/* the overall network configuration structure */ 37typedef struct NCDConfig 38{ 39 u32 version; /* sets NCD_CONFIG_VERSION */ 40 u8 selectedMedia; /* NCD_IF_SELECT_* */ 41 u8 nwc24Permission; /* NCD_NWC24_PERMISSION_* logical OR */ 42 u8 linkTimeout; /* in seconds */ 43 u8 reserved[ 1 ]; 44 NCDProfile profiles[ NCD_PROFILE_COUNT ]; 45 46} ATTRIBUTE_PACKED NCDConfig; 47</CODE></PRE> 48</DL> 49 50<H2>Description</H2> 51<P> 52This structure stores the network configuration. 53</P> 54<P> 55Set <CODE>NCD_CONFIG_VERSION</CODE> for the <CODE>version</CODE> member variable of <CODE>NCDConfig</CODE>. 56</P> 57 58<H2>See Also</H2> 59<P> 60None. 61</P> 62 63<H2>Revision History</H2> 64<P> 652006/08/16 Added the <em><strong><code>version</code></strong></em> member.<BR> 2006/08/09 Initial version.<BR> 66</P> 67 68<hr><p>CONFIDENTIAL</p></body> 69</HTML>