Quote:
|
Originally Posted by barjeshforyou Hi all,
where to locate DHCP code, which my Linux machine (red hat linux 2.4.20-8) is using? I tried to find it in usr/src/linux-2.4.20-8, but no reslut. |
There's 2 parts to DHCP you could have installed , a client for obtaining an adderss, and a server part for issuing leases to DHCP clients.
On my box, I find :
fir:/var # rpm -qa |grep dhcp
dhcp-3.0.6-24
dhcp-client-3.0.6-24
dhcp-server-3.0.6-24
dhcp-tools-1.6-102
dhcpcd-1.3.22pl4-287
fir:/var # ps aux |grep dhcp
root 2326 0.0 0.0 2128 900 ? Rs 19:15 0:00 /sbin/syslog-ng -a /var/lib/dhcp/dev/log
root 3485 0.0 0.0 1628 236 ? Ss 19:15 0:00 /sbin/dhcpcd -d -C -K -N -Y -t 999999 -c /etc/sysconfig/network/scripts/dhcpcd-hook eth1
root 18945 0.0 0.0 2036 640 pts/2 R+ 19:55 0:00 grep dhcp
fir:/var # rpm -qf /sbin/dhcpcd
dhcpcd-1.3.22pl4-287
If you're looking for the source, code download a src rpm for what you're interested in. Or do another lookup like this :
fir:/var # rpm -qil dhcpcd
Name : dhcpcd Relocations: (not relocatable)
Version : 1.3.22pl4 Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany
Release : 287 Build Date: Fri Sep 21 22:56:01 2007
Install Date: Sat Nov 3 03:48:08 2007 Build Host: poincare.suse.de
Group : Productivity/Networking/Boot/Clients Source RPM: dhcpcd-1.3.22pl4-287.src.rpm
Size : 137611 License: GPL v2 or later
Signature : DSA/SHA1, Fri Sep 21 23:02:06 2007, Key ID a84edae89c800aca
Packager :
http://bugs.opensuse.org
URL :
http://www.phystech.com/download/dhcpcd.html
Summary : A DHCP Client Daemon
Description :
dhcpcd gets an IP address and other information from a corresponding
DHCP server, configures the network interface automatically, and tries
to renew the lease time depending on the command line option.
Authors:
--------
Sergei Viznyuk <sv@phystech.com>
Yoichi Hariguchi <yoichi@fore.com>
Distribution: openSUSE 10.3 (i586)
/sbin/dhcpcd
/usr/sbin/dhcpcd-test
/usr/share/doc/packages/dhcpcd
/usr/share/doc/packages/dhcpcd/AUTHORS
/usr/share/doc/packages/dhcpcd/COPYING
/usr/share/doc/packages/dhcpcd/ChangeLog
/usr/share/doc/packages/dhcpcd/INSTALL
/usr/share/doc/packages/dhcpcd/NEWS
/usr/share/doc/packages/dhcpcd/README
/usr/share/doc/packages/dhcpcd/README.SuSE
/usr/share/doc/packages/dhcpcd/dhcpcd-hook.example
/usr/share/doc/packages/dhcpcd/dhcpcd.exe
/usr/share/man/man8/dhcpcd.8.gz
/var/lib/dhcpcd