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

uIP configuration functions
[The uIP TCP/IP stack]


Detailed Description

The uIP configuration functions are used for setting run-time parameters in uIP such as IP addresses.

uIP ¼³Á¤ ÇÔ¼ö´Â uIP¸¦ IP ÁÖ¼Ò¿Í °°ÀÌ ÆÄ¶ó¸ÞÅÍ ¼³Á¤À» Çϱâ À§ÇÑ ¸ñÀûÀ¸·Î »ç¿ëµÈ´Ù.



Defines

#define uip_sethostaddr(addr)
 Set the IP address of this host.
ÀÌ È£½ºÆ®ÀÇ IP ÁÖ¼Ò¸¦ ¼³Á¤ÇÑ´Ù.

#define uip_gethostaddr(addr)
 Get the IP address of this host.
ÀÌ È£½ºÆ®ÀÇ IP ÁÖ¼Ò¸¦ ¾ò´Â´Ù.

#define uip_setdraddr(addr)
 Set the default router's IP address.
µðÆúÆ® ¶ó¿ìÅÍÀÇ IP ÁÖ¼Ò¸¦ ¼³Á¤ÇÑ´Ù.

#define uip_setnetmask(addr)
 Set the netmask.
netmask¸¦ ¼³Á¤ÇÑ´Ù.

#define uip_getdraddr(addr)
 Get the default router's IP address.
µðÆúÆ® ¶ó¿ìÅÍÀÇ IP ÁÖ¼Ò¸¦ ¾ò´Â´Ù.

#define uip_getnetmask(addr)
 Get the netmask.
netmask¸¦ ¾ò´Â´Ù.

#define uip_setethaddr(eaddr)
 Specifiy the Ethernet MAC address.
ÀÌ´õ³Ý MAC ÁÖ¼Ò¸¦ ¼³Á¤ÇÑ´Ù.


Define Documentation

#define uip_getdraddr addr   ) 
 

Get the default router's IP address.

µðÆúÆ® ¶ó¿ìÅÍÀÇ IP ÁÖ¼Ò¸¦ ¾ò´Â´Ù.


Parameters:
addr A pointer to a 4-byte array that will be filled in with the IP address of the default router.

µðÆúÆ® ¶ó¿ìÅÍÀÇ IP ÁּҷΠä¿öÁø 4-byte ¹è¿­ÀÇ Æ÷ÀÎÅÍ.

#define uip_gethostaddr addr   ) 
 

Get the IP address of this host.

ÀÌ È£½ºÆ®ÀÇ IP ÁÖ¼Ò¸¦ ¾ò´Â´Ù.


The IP address is represented as a 4-byte array where the first octet of the IP address is put in the first member of the 4-byte array.

IP ÁÖ¼Ò´Â 4-byte ¹è¿­ÀÇ Ã¹¹øÂ° ¸â¹ö¿¡ IP ÁÖ¼ÒÀÇ Ã¹ ¿ÁÅÝÀÌ µé¾î ÀÖ´Â 4-byte ¹è¿­·Î Ç¥ÇöµÈ´Ù.


Parameters:
addr A pointer to a 4-byte array that will be filled in with the currently configured IP address.

ÃÖ±Ù¿¡ º¯°æµÈ IP ÁÖ¼Ò¿¡ ä¿öÁø 4-byte ¹è¿­ÀÇ Æ÷ÀÎÅÍ.

#define uip_getnetmask addr   ) 
 

Get the netmask.

netmask ¸¦ ¾ò´Â´Ù.


Parameters:
addr A pointer to a 4-byte array that will be filled in with the value of the netmask.

netmaskÀÇ °ªÀ¸·Î ä¿öÁø 4-byte ¹è¿­ÀÇ Æ÷ÀÎÅÍ.

#define uip_setdraddr addr   ) 
 

Set the default router's IP address.

µðÆúÆ® ¶ó¿ìÅÍÀÇ IP ÁÖ¼Ò¸¦ ¼³Á¤ÇÑ´Ù.


Parameters:
addr A pointer to a 4-byte array containing the IP address of the default router.

µðÆúÆ® ¶ó¿ìÅÍÀÇ IP ÁÖ¼Ò¸¦ Æ÷ÇÔÇÏ´Â 4-byte ¹è¿­ÀÇ Æ÷ÀÎÅÍ.

#define uip_setethaddr eaddr   ) 
 

Specifiy the Ethernet MAC address.

ÀÌ´õ³Ý MAC ÁÖ¼Ò¸¦ ¼³Á¤ÇÑ´Ù.


The ARP code needs to know the MAC address of the Ethernet card in order to be able to respond to ARP queries and to generate working Ethernet headers.

ARP ÄÚµå´Â ARP Äõ¸®¿¡ ´ëÇÑ ÀÀ´ä°ú ÀÌ´õ³Ý Çì´õ »ý¼ºÀ» À§Çؼ­ ÀÌ´õ³Ý Ä«µåÀÇ MAC ÁÖ¼Ò¸¦ ¾Ë¾Æ¾ß ÇÑ´Ù.


Note:
This macro only specifies the Ethernet MAC address to the ARP code. It cannot be used to change the MAC address of the Ethernet card.

ÀÌ ¸ÅÅ©·Î´Â ¿ÀÁ÷ ARP ÄÚµåÀÇ ÀÌ´õ³Ý MAC ÁÖ¼Ò¸¦ ¼³Á¤ÇÑ´Ù. ÀÌ´õ³Ý Ä«µåÀÇ MAC ÁÖ¼Ò´Â ¹Ù²ð ¼ö ¾ø´Ù.
Parameters:
eaddr A pointer to a struct uip_eth_addr containing the Ethernet MAC address of the Ethernet card.

±¸Á¶Ã¼ uip_eth_addr¿¡Æ÷ÇԵǾî ÀÖ´Â ÀÌ´õ³Ý Ä«µåÀÇ ÀÌ´õ³Ý MAC ÁÖ¼Ò¿¡ ´ëÇÑ Æ÷ÀÎÅÍ

#define uip_sethostaddr addr   ) 
 

Set the IP address of this host.

ÀÌ È£½ºÆ®ÀÇ IP ÁÖ¼Ò¸¦ ¼³Á¤ÇÑ´Ù.


The IP address is represented as a 4-byte array where the first octet of the IP address is put in the first member of the 4-byte array.

IP ÁÖ¼Ò´Â 4-byte ¹è¿­ÀÇ Ã¹¹øÂ° ¸â¹ö¿¡ IP ÁÖ¼ÒÀÇ Ã¹ ¿ÁÅÝÀÌ µé¾î ÀÖ´Â 4-byte ¹è¿­·Î Ç¥ÇöµÈ´Ù.


Parameters:
addr A pointer to a 4-byte representation of the IP address.

IP ÁÖ¼ÒÀÇ 4-byte Ç¥ÇöÀ» À§ÇÑ Æ÷ÀÎÅÍ.

#define uip_setnetmask addr   ) 
 

Set the netmask.

netmask¸¦ ¼³Á¤ÇÑ´Ù.


Parameters:
addr A pointer to a 4-byte array containing the IP address of the netmask.

netmaskÀÇ IP ÁÖ¼Ò¸¦ Æ÷ÇÔÇÏ´Â 4-byte ¹è¿­ÀÇ Æ÷ÀÎÅÍ.


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