EzDoum

ã±â
óÀ½À¸·Î | ã±â | ¾ÆÄ«À̺ê | ±Û ¿Ã¸®±â | ¸µÅ© | ÀÚ·á½Ç | Åë°è | ¿¬¶ôó | ÀÚÀ¯°Ô½ÃÆÇ
ÀÌÁöµµ¿ò ƯÁý
Àüüº¸±â
³×Æ®¿öÅ©
TI OMAP35x
TI DaVinci
Analog Blackfin
RobotWar2005
ÀÓº£µðµå!
ij½¬ÀÇ ¸ðµç°Í
¸Þ¸ð¸® ÇÒ´ç ¾Ë°í¸®Áò
CPU ÆÄÀÌÇÁ¶óÀÌ´×
ÀڷᱸÁ¶(Tree)
±ÝÀ¶

Login
À̸§

¾ÏÈ£

±â¾ïÇϱâ


»ç¿ëÀÚ µî·Ï

ÇöÀç Á¢¼ÓÁßÀÎ µî·Ï »ç¿ëÀÚ´Â 0¸í, ÀÍ¸í »ç¿ëÀÚ´Â 2¸í ÀÔ´Ï´Ù.
Àüü µî·Ï »ç¿ëÀÚ: 751¸í

¸¶Áö¸· ´äÀå
·libcurl + fuse Á¶ÇÕÀ¸·Î µÇ´Â°Ô ¸¹³×. (1)
·Linux Ftrace¿¡ °üÇØ (3)
·Android MTP ( Media Transfer Protocol ) (1)
·Lighttpd¿¡ ÀÎÁõÀ» digest »ç¿ë½Ã IE ¿Àµ¿ÀÛ ¹®Á¦? (1)
·Dtrace¿¡ °üÇØ (1)

ÃÖ±Ù±Û
·OpenSSL and multi-threads (0)
·ARM ȯ°æ¿¡¼­ OpenCL »ç¿ë (0)
·IoT¿ë WIFI ¸ðµâ ºñ±³ ( MCU ) Ŭ·¡½º (0)
·Glances - ¸®´ª½º ¿©·¯ °¡Áö Ç׸ñÀ» ÇÑ È­¸é¿¡¼­ ¸ð´ÏÅ͸µ (0)
·plugin ¹æ½ÄÀÇ ·Î±× ºÐ¼®±â (0)

¶ß°Å¿î °¨ÀÚ
·³ª´Â ÀÎÅÍ·ºÆ¼ºêÇÑ È¯°æ¿¡¼­ ¿ª¾î¼Àºí ÇÑ´Ù. (12)
·GNU REGEX (Á¤±ÔÇ¥Çö½Ä) ÇÁ·Î±×·¡¹Ö °­Á (7)
·SoCRobotWar 2005 - ½ÅÀÔ»ý ±âÃÊ ±³À°ÀÚ·á (7)
·ASP.NETÀÇ µ¥ÀÌÅÍ ±×¸®µå¿Í »ç¿ëÀÚ ÄÁÆ®·Ñ (7)
·DHTML Editing Control (7)

°¡Àå ¸¹ÀÌ ÀÐÀº ±Û
·[Cache] 2-way Set-Associative ¹æ½ÄÀ̶õ ¹«¾ùÀϱî? (2)
·¸ÖƼ¾²·¹µå(Pthread) ÇÁ·Î±×·¡¹Ö
·Sorting Algorithm Animation (2)
·GNU REGEX (Á¤±ÔÇ¥Çö½Ä) ÇÁ·Î±×·¡¹Ö °­Á (7)
·SoCRobotWar 2005 - ½ÅÀÔ»ý ±âÃÊ ±³À°ÀÚ·á (7)

udhcp client (udhcpc)
±Û¾´ÀÌ: EzDoum ±Û¾´³¯: 2008³â 06¿ù 12ÀÏ ¿ÀÀü 10:57
¸®´ª½º



http://udhcp.busybox.net/
http://busybox.net/cgi-bin/viewcvs.cgi/trunk/udhcp/README.udhcpc?rev=15050&view=auto


udhcp client (udhcpc)
--------------------

The udhcp client negotiates a lease with the DHCP server and notifies
a set of scripts when a leases is obtained or lost.


command line options
-------------------

The command line options for the udhcp client are:

-c, --clientid=CLIENTID Set client identifier. Type is first char.
-C, --clientid-none Suppress default client identifier
-V, --vendorclass=CLASSID Set vendor class identifier
-H, --hostname=HOSTNAME Client hostname
-h, Alias for -H
-F, --fqdn=FQDN Client fully qualified domain name
-f, --foreground Do not fork after getting lease
-b, --background Fork to background if lease cannot be
immediately negotiated.
-i, --interface=INTERFACE Interface to use (default: eth0)
-n, --now Exit with failure if lease cannot be
immediately negotiated.
-p, --pidfile=file Store process ID of daemon in file
-q, --quit Quit after obtaining lease
-r, --request=IP IP address to request (default: none)
-s, --script=file Run file at dhcp events (default:
/usr/share/udhcpc/default.script)
-t, --retries=NUM Send up to NUM request packets
-v, --version Display version


If the requested IP address cannot be obtained, the client accepts the
address that the server offers.


udhcp client scripts
-------------------

When an event occurs, udhcpc calls the action script. udhcpc never does
any configuration of the network interface itself, but instead relies on
a set of scripts. The script by default is
/usr/share/udhcpc/default.script but this can be changed via the command
line arguments. The three possible arguments to the script are:

deconfig: This argument is used when udhcpc starts, and
when a leases is lost. The script must put the interface in an
up, but deconfigured state, ie: ifconfig $interface 0.0.0.0.

bound: This argument is used when udhcpc moves from an
unbound, to a bound state. All of the paramaters are set in
enviromental variables, The script should configure the interface,
and set any other relavent parameters (default gateway, dns server,
etc).

renew: This argument is used when a DHCP lease is renewed. All of
the paramaters are set in enviromental variables. This argument is
used when the interface is already configured, so the IP address,
will not change, however, the other DHCP paramaters, such as the
default gateway, subnet mask, and dns server may change.

nak: This argument is used with udhcpc receives a NAK message.
The script with the deconfig argument will be called directly
afterwards, so no changes to the network interface are neccessary.
This hook is provided for purely informational purposes (the
message option may contain a reason for the NAK).

The paramaters for enviromental variables are as follows:

$HOME - The set $HOME env or "/"
$PATH - the set $PATH env or "/bin:/usr/bin:/sbin:/usr/sbin"
$1 - What action the script should perform
interface - The interface this was obtained on
ip - The obtained IP
mask - The number of bits in the netmask (ie: 24)
siaddr - The bootp next server option
sname - The bootp server name option
boot_file - The bootp boot file option
subnet - The assigend subnet mask
timezone - Offset in seconds from UTC
router - A list of routers
timesvr - A list of time servers
namesvr - A list of IEN 116 name servers
dns - A list of DNS server
logsvr - A list of MIT-LCS UDP log servers
cookiesvr - A list of RFC 865 cookie servers
lprsvr - A list of LPR servers
hostname - The assigned hostname
bootsize - The length in 512 octect blocks of the bootfile
domain - The domain name of the network
swapsvr - The IP address of the client's swap server
rootpath - The path name of the client's root disk
ipttl - The TTL to use for this network
mtu - The MTU to use for this network
broadcast - The broadcast address for this network
ntpsrv - A list of NTP servers
wins - A list of WINS servers
lease - The lease time, in seconds
dhcptype - DHCP message type (safely ignored)
serverid - The IP of the server
message - Reason for a DHCPNAK
tftp - The TFTP server name
bootfile - The bootfile name

additional options are easily added in options.c.


note on udhcpc's random seed
---------------------------

udhcpc will seed its random number generator (used for generating xid's)
by reading /dev/urandom. If you have a lot of embedded systems on the same
network, with no entropy, you can either seed /dev/urandom by a method of
your own, or doing the following on startup:

ifconfig eth0 > /dev/urandom

in order to seed /dev/urandom with some data (mac address) unique to your
system. If reading /dev/urandom fails, udhcpc will fall back to its old
behavior of seeding with time(0).


  • °ü·Ã ¸µÅ©
  • [ºÐ·ù: ¸®´ª½º Àμâ¿ë ÆäÀÌÁö º»¹® email·Î º¸³»±â ]

    <  Small-Block vs. Large-Block NAND Flash Devices | ¸®´ª½º¿¡¼­ EDMA3À¸·Î Àü¼ÛÇϱ⠠>
    udhcp client (udhcpc) | ´äÀå: 1°³ | º»¹®¿¡ ´äÀå
    Á¤·Ä :  
    ´äÀå EzDoum 2009³â 09¿ù 11ÀÏ ¿ÀÈÄ 12:33 [ À̱ۿ¡ ´äÀå | º»¹®¿¡ ´äÀå | Ã¥°¥ÇÇ ]
    # DHCP ÇÁ·ÎÅäÄÝ ¾È³»
    http://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol

    # busybox¿¡ ÇØ´ç ÆÐÄ¡°¡ Àû¿ëµÈ ½ÃÁ¡ ( 2008-09-26 09:34:15 (GMT) )
    http://git.busybox.net/busybox/commit/?id=cdb0b652ddd6bfbc4d83e21453b3b4137b887e18


    [¼öÁ¤]

    udhcp client (udhcpc) | ´äÀå: 1°³ | º»¹®¿¡ ´äÀå
    Á¤·Ä :  

    ´äÀå ¾²±â
    ±ÛÀ» ¿Ã¸®½Ã·Á¸é ·Î±×ÀÎ (»ç¿ëÀÚ µî·Ï) ÇÏ¼Å¾ß ÇÕ´Ï´Ù.

    °Ë»ö
    Google

    ºÐ·ù
    ·°øÁö (6)
    ·ÀÎÅÍ³Ý (87)
    ·Çϵå¿þ¾î (260)
    ·C/C++ (65)
    ·¾î¼Àºí¸® (7)
    ·¸®´ª½º (136)
    ·¸®´ª½º Ä¿³Î (67)
    ·À©µµ¿ìÁî (25)
    ·µ¥ÀÌÅͺ£À̽º (20)
    ·º¸¾È (16)
    ·.NET (25)
    ·±×·¡ÇÈ (13)
    ·Ã¥¼Ò°³ (42)
    ·È£±â½É õ±¹ (80)
    ·Àâ´ã (111)
    ·»ç¶û (3)

    Àüü º»¹®¼ö: 963
    Àüü ´äÀå¼ö: 525


    ºÐ·ù : ¸®´ª½º
    ÃÖ±Ù±Û
    ÃÖ±Ù±Û
    °¡Àå ¸¹ÀÌ ÀÐÀº ±Û
    ·¸ÖƼ¾²·¹µå(Pthread) ÇÁ·Î±×·¡¹Ö (0)
    ¶ß°Å¿î °¨ÀÚ
    ·GNU REGEX (Á¤±ÔÇ¥Çö½Ä) ÇÁ·Î±×·¡¹Ö °­Á (7)

    EzDoumÅõÇ¥
    ÀÌÁöµµ¿ò ¾î¶§¿ä?
    ÀÌ°Ô ¹¹¾ß. ´Ù½Ã ¾È¿Ã¶õ´Ù. --;
    ¾ÆÀÌ ÁÁ¾Æ¶ó~ +_+;
    °ü½É¾ø´Ù.
    ¸Õ°¡´Â Àִ°Š°°Àºµ¥ ¹¹ÇÏ´Â °÷ÀÌÁö?
    ±âŸ (ÀÚÀ¯°Ô½ÃÆÇ¿¡ ±Û·Î ³²°Ü ÁÖ¼¼¿ä)
    [ °á°ú | ÅõÇ¥ ]

    ·£´ý ¸µÅ©
    http://kldp.net


     Home ^ BACK TO TOP ^ EzDoum - µµ¿òÀÌ ÇÊ¿äÇϼ¼¿ä~??
     Powered by KorWeblog 1.5.8 Copyleft © 2001 EzDoum, °ü¸®ÀÚ: EzDoum