2001-04-21 23:16:58

by Jesper Juhl

[permalink] [raw]
Subject: [PATCH] minor correctness fix to the Documentation/rtc.txt example program.

--- linux-2.4.3-vanilla/Documentation/rtc.txt Sun Apr 22 02:33:10 2001
+++ linux-2.4.3/Documentation/rtc.txt Sun Apr 22 02:39:55 2001
@@ -89,7 +89,7 @@
#include <unistd.h>
#include <errno.h>

-void main(void) {
+int main(void) {

int i, fd, retval, irqcount = 0;
unsigned long tmp, data;
@@ -277,5 +277,6 @@
irqcount);

close(fd);
+exit(0);

} /* end main */


Attachments:
rtc.txt-patch (380.00 B)

2001-04-22 00:33:40

by joker

[permalink] [raw]
Subject: dhcpd help please

I have problem starting dhcpd, this first time try out any 1 can help me
this error message. any can point out my problem
10q in advance

[root@classical]# dhcpd eth0
Internet Software Consortium DHCP Server 2.0pl5
Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
All rights reserved.

Please contribute if you find this software useful.
For info, please visit http://www.isc.org/dhcp-contrib.html

Listening on LPF/eth0/00:01:02:83:51:7e/192.168.8.0
Sending on LPF/eth0/00:01:02:83:51:7e/192.168.8.0
Can't bind to dhcp address: Address already in use
exiting.
--------------------
[root@homepc]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.8.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
203.56.56.0 0.0.0.0 255.255.252.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 203.56.56.1 0.0.0.0 UG 0 0 0 eth1
[f00l@classical f00l]#

---------------------------
[f00l@classical /etc]# cat dhcpd.conf
# Sample /etc/dhcpd.conf
# (add your comments here)
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.8.255;
option routers 192.168.8.254;
option domain-name-servers 203.56.1.21,203.56.1.22;
option domain-name "homepc.linux.org";
option netbios-name-servers 192.168.8.1;

subnet 192.168.8.0 netmask 255.255.255.0 {
range 192.168.8.30 192.168.8.35;
}