Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals

Static configuration options
[Configuration options for uIP]


Detailed Description

These configuration options can be used for setting the IP address settings statically, but only if UIP_FIXEDADDR is set to 1. The configuration options for a specific node includes IP address, netmask and default router as well as the Ethernet address. The netmask, default router and Ethernet address are appliciable only if uIP should be run over Ethernet.

All of these should be changed to suit your project


ÀÌ ¼³Á¤¿É¼ÇÀº IP ÁÖ¼Ò¸¦ Á¤Àû(°íÁ¤)À¸·Î ¼¼ÆÃÇÒ¼öÀÖ°Ô Çϰí À̶§ UIP_FIXEDADDR °ªÀº 1·Î ¼³Á¤ÇØ IP¸¦ ÁöÁ¤Çß´Ù´Â °ÍÀ» ³ªÅ¸³½´Ù. IPÁÖ¼Ò, ³Ý¸¶½ºÅ©, µðÆúÆ® ¶ó¿ìÅͻӸ¸ ¾Æ´Ï¶ó ÀÌ´õ³Ý ÁÖ¼Ò¸¦ ÁöÁ¤ ÇÒ ¼ö ÀÖ´Ù. ¸¸¾à uIP°¡ ÀÌ´õ³Ý À§¿¡¼­ ÀÛµ¿ÇÑ´Ù¸é, ÀÌ´õ³ÝÁÖ¼Ò¿Í µðÆúÆ® °ÔÀÌÆ®¿þÀÌ, ³Ý¸¶½ºÅ©¸¦ ȯ°æ¿¡ ¸Â°Ô ÁöÁ¤ÇØ¾ß ÇÑ´Ù.

ÀÌ ¸ðµç°ÍµéÀº ÁÖÀ§ ȯ°æ¿¡ ¸Â°Ô ÇÁ·Î±×·¡¸Ó¿¡ ÀÇÇØ ¸Â°Ô º¯°æ µÉ ¼ö ÀÖ´Ù.



Defines

#define UIP_FIXEDADDR
 Determines if uIP should use a fixed IP address or not.
ÁöÁ¤µÈ IP¸¦ »ç¿ëÇÒ °ÍÀÎÁö ¾Æ´ÑÁö¸¦ °áÁ¤ÇÑ´Ù. 1À̸é ÁöÁ¤µÈ IP¸¦ »ç¿ë.

#define UIP_PINGADDRCONF
 Ping IP address assignment.
Ping IP ÁÖ¼Ò ÇÒ´ç.

#define UIP_IPADDR0
 The first octet of the IP address of this uIP node, if UIP_FIXEDADDR is 1.
UIP_FIXEDADDRÀÌ 1À̸é ÀÌ uIP ³ëµåÀÇ IP ÁÖ¼ÒÀÇ Ã¹¹ø¤Š ¿ÁÅÝ.

#define UIP_IPADDR1
 The second octet of the IP address of this uIP node, if UIP_FIXEDADDR is 1.
UIP_FIXEDADDRÀÌ 1À̸é ÀÌ uIP ³ëµåÀÇ IP ÁÖ¼ÒÀÇ µÎ¹øÂ° ¿ÁÅÝ.

#define UIP_IPADDR2
 The third octet of the IP address of this uIP node, if UIP_FIXEDADDR is 1.
UIP_FIXEDADDRÀÌ 1À̸é ÀÌ uIP ³ëµåÀÇ IP ÁÖ¼ÒÀÇ ¼¼¹øÂ° ¿ÁÅÝ.

#define UIP_IPADDR3
 The fourth octet of the IP address of this uIP node, if UIP_FIXEDADDR is 1.
UIP_FIXEDADDRÀÌ 1À̸é ÀÌ uIP ³ëµåÀÇ IP ÁÖ¼ÒÀÇ ³×¹øÂ° ¿ÁÅÝ.

#define UIP_NETMASK0
 The first octet of the netmask of this uIP node, if UIP_FIXEDADDR is 1.
UIP_FIXEDADDRÀÌ 1À̸é ÀÌ uIP ³ëµåÀÇ ³Ý¸¶½ºÅ©ÀÇ Ã¹¹øÂ° ¿ÁÅÝ.

#define UIP_NETMASK1
 The second octet of the netmask of this uIP node, if UIP_FIXEDADDR is 1.
UIP_FIXEDADDRÀÌ 1À̸é ÀÌ uIP ³ëµåÀÇ ³Ý¸¶½ºÅ©ÀÇ µÎ¹øÂ° ¿ÁÅÝ.

#define UIP_NETMASK2
 The third octet of the netmask of this uIP node, if UIP_FIXEDADDR is 1.

UIP_FIXEDADDRÀÌ 1À̸é ÀÌ uIP ³ëµåÀÇ ³Ý¸¶½ºÅ©ÀÇ ¼¼¹øÂ° ¿ÁÅÝ.
#define UIP_NETMASK3
 The fourth octet of the netmask of this uIP node, if UIP_FIXEDADDR is 1.
UIP_FIXEDADDRÀÌ 1À̸é ÀÌ uIP ³ëµåÀÇ ³Ý¸¶½ºÅ©ÀÇ ³×¹øÂ° ¿ÁÅÝ.

#define UIP_DRIPADDR0
 The first octet of the IP address of the default router, if UIP_FIXEDADDR is 1.
UIP_FIXEDADDRÀÌ 1À̸é ÀÌ uIP ³ëµåÀÇ µðÆúÆ® ¶ó¿ìÅÍ IP ÁÖ¼ÒÀÇ Ã¹¹øÂ° ¿ÁÅÝ.

#define UIP_DRIPADDR1
 The second octet of the IP address of the default router, if UIP_FIXEDADDR is 1.
UIP_FIXEDADDRÀÌ 1À̸é ÀÌ uIP ³ëµåÀÇ µðÆúÆ® ¶ó¿ìÅÍ IP ÁÖ¼ÒÀÇ µÎ¹øÂ° ¿ÁÅÝ.

#define UIP_DRIPADDR2
 The third octet of the IP address of the default router, if UIP_FIXEDADDR is 1.
UIP_FIXEDADDRÀÌ 1À̸é ÀÌ uIP ³ëµåÀÇ µðÆúÆ® ¶ó¿ìÅÍ IP ÁÖ¼ÒÀÇ ¼¼¹øÂ° ¿ÁÅÝ.

#define UIP_DRIPADDR3
 The fourth octet of the IP address of the default router, if UIP_FIXEDADDR is 1.
UIP_FIXEDADDRÀÌ 1À̸é ÀÌ uIP ³ëµåÀÇ µðÆúÆ® ¶ó¿ìÅÍ IP ÁÖ¼ÒÀÇ ¼¼¹øÂ° ¿ÁÅÝ.

#define UIP_FIXEDETHADDR
 Specifies if the uIP ARP module should be compiled with a fixed Ethernet MAC address or not.
uIPÀÇ ARP¸ðµâÀÌ ¼öÁ¤µÈ ÀÌ´õ³Ý MACÁÖ¼Ò¸¦ »ç¿ëÇÏ´ÂÁö ¾Æ´ÑÁö¸¦ ÁöÁ¤ÇÑ´Ù.

#define UIP_ETHADDR0
 The first octet of the Ethernet address if UIP_FIXEDETHADDR is 1.
UIP_FIXEDETHADDRÀÌ 1À̸é ÀÌ ÀÌ´õ³Ý ÁÖ¼ÒÀÇ Ã¹¹øÂ° ¿ÁÅÝ.

#define UIP_ETHADDR1
 The second octet of the Ethernet address if UIP_FIXEDETHADDR is 1.
UIP_FIXEDETHADDRÀÌ 1À̸é ÀÌ ÀÌ´õ³Ý ÁÖ¼ÒÀÇ µÎ¹øÂ° ¿ÁÅÝ.

#define UIP_ETHADDR2
 The third octet of the Ethernet address if UIP_FIXEDETHADDR is 1.
UIP_FIXEDETHADDRÀÌ 1À̸é ÀÌ ÀÌ´õ³Ý ÁÖ¼ÒÀÇ ¼¼¹øÂ° ¿ÁÅÝ.

#define UIP_ETHADDR3
 The fourth octet of the Ethernet address if UIP_FIXEDETHADDR is 1.
UIP_FIXEDETHADDRÀÌ 1À̸é ÀÌ ÀÌ´õ³Ý ÁÖ¼ÒÀÇ ³×¹øÂ° ¿ÁÅÝ.

#define UIP_ETHADDR4
 The fifth octet of the Ethernet address if UIP_FIXEDETHADDR is 1.
UIP_FIXEDETHADDRÀÌ 1À̸é ÀÌ ÀÌ´õ³Ý ÁÖ¼ÒÀÇ ´Ù¼¸¹øÂ° ¿ÁÅÝ.

#define UIP_ETHADDR5
 The sixth octet of the Ethernet address if UIP_FIXEDETHADDR is 1.
UIP_FIXEDETHADDRÀÌ 1À̸é ÀÌ ÀÌ´õ³Ý ÁÖ¼ÒÀÇ ¿©¼¸¹øÂ° ¿ÁÅÝ.


Define Documentation

#define UIP_FIXEDADDR
 

Determines if uIP should use a fixed IP address or not.

IPÁÖ¼Ò°¡ ÁöÁ¤µÇ¾ú´ÂÁö ¾Æ´ÑÁö °áÁ¤ÇÑ´Ù.


If uIP should use a fixed IP address, the settings are set in the uipopt.h file. If not, the macros uip_sethostaddr(), uip_setdraddr() and uip_setnetmask() should be used instead.

¸¸¾à IP¸¦ ÁöÁ¤Çؼ­ »ç¿ëÇÑ´Ù¸é ¼³Á¤µÈ ³»¿ëÀÌ uipopt.h¿¡ ÀúÀåµÈ´Ù. ±×·¸Áö ¾Ê´Ù¸é uip_sethostaddr(), uip_setdraddr(), uip_setnetmask()¸ÅÅ©·Î¸¦ »ç¿ëÇØ¼­ ÁöÁ¤ÇÑ´Ù.

#define UIP_FIXEDETHADDR
 

Specifies if the uIP ARP module should be compiled with a fixed Ethernet MAC address or not.

uIPÀÇ ARP¸ðµâÀÌ ÁöÁ¤µÈ ÀÌ´õ³Ý MACÁÖ¼Ò¸¦ »ç¿ëÇÏ´ÂÁö ¾Æ´ÑÁö¸¦ ÁöÁ¤ÇÑ´Ù.


If this configuration option is 0, the macro uip_setethaddr() can be used to specify the Ethernet address at run-time.

¸¸¾à ¼³Á¤¿É¼Ç(configuration option)ÀÌ 0À̸é uip_setethaddr()¸ÅÅ©·Î·Î ÀÌ´õ³Ý ÁÖ¼Ò¸¦ ·±Å¸Àӽÿ¡ º¯°æ ÇÒ ¼ö ÀÖ´Ù.

#define UIP_PINGADDRCONF
 

Ping IP address assignment.

Ping IP ÁÖ¼Ò ÇÒ´ç.


uIP uses a "ping" packets for setting its own IP address if this option is set. If so, uIP will start with an empty IP address and the destination IP address of the first incoming "ping" (ICMP echo) packet will be used for setting the hosts IP address.

ÀÌ ¿É¼ÇÀÌ ¼¼ÆÃµÇÀÖ´Ù¸é uIP´Â IP¸¦ ¼¼ÆÃÇÒ¶§ "ping"ÆÐŶÀ» »ç¿ëÇÑ´Ù. uIP´Â ºó IPÁÖ¼Ò·Î ½ÃÀÛÇÒ °ÍÀ̰í, ù¹øÂ°·Î µé¾î¿À´Â "ping"(ICMP echo)ÆÐŶÀÇ ¸ñÀûÁö IPÁÖ¼Ò¸¦ È£½ºÆ® IPÁÖ¼Ò·Î »ç¿ëÇÑ´Ù.

Note:
This works only if UIP_FIXEDADDR is 0.

À̶§ ÁÖÀÇÇÒ Á¡Àº UIP_FIXEDADDRÀº 0.


Generated on Tue Oct 7 15:51:45 2003 for uIP 0.9 by doxygen 1.3.3