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>NCDIpProfile</TITLE> 7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 8</HEAD> 9<BODY> 10<H1>NCDIpProfile</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_SIZE_IP 4 16 17/* the Internet protocol settings structure */ 18typedef struct NCDIpProfile 19{ 20 u8 addr[ NCD_SIZE_IP ]; /* IP address */ 21 u8 netmask[ NCD_SIZE_IP ]; /* subnet mask */ 22 u8 gateway[ NCD_SIZE_IP ]; /* the gateway IP address */ 23 u8 dns1[ NCD_SIZE_IP ]; /* the primary DNS server's IP address */ 24 u8 dns2[ NCD_SIZE_IP ]; /* the secondary DNS server's IP address */ 25 26} ATTRIBUTE_PACKED NCDIpProfile; 27 28/* the socket library adjustment parameter structure */ 29typedef struct NCDIpAdjustProfile 30{ 31 s32 maxTransferUnit; /* default ( 1500 ) MTU value */ 32 s32 tcpRetransTimeout; /* default ( 100 ) TCP timeout (in seconds) */ 33 s32 dhcpRetransCount; /* default ( 4 ) DHCP tries */ 34 35} ATTRIBUTE_PACKED NCDIpAdjustProfile; 36</CODE></PRE> 37</DL> 38 39<H2>Description</H2> 40<P> 41This structure stores detailed TCP/IP-related network settings. 42</P> 43<P> 44When 0 is set for each member of <CODE>NCDIpAdjustProfile</CODE>, the default value is used. 45</P> 46 47<H2>See Also</H2> 48<P> 49None. 50</P> 51 52<H2>Revision History</H2> 53<P> 542006/08/15 Changed the NCDIpAdjustProfile structure.<BR>2006/08/14 Added information about setting default values.<BR>2006/08/09 Initial version. 55</P> 56 57<hr><p>CONFIDENTIAL</p></body> 58</HTML>