[Dhcp-agent-commits] CVS: dhcp-agent dhcp-icmp-discovery.c,1.6,1.7 dhcp-sysconf.c,1.10,1.11
Status: Alpha
Brought to you by:
actmodern
From: Thamer Al-H. <act...@us...> - 2002-05-19 23:07:56
|
Update of /cvsroot/dhcp-agent/dhcp-agent In directory usw-pr-cvs1:/tmp/cvs-serv19374 Modified Files: dhcp-icmp-discovery.c dhcp-sysconf.c Log Message: added icmp discovery to sysconf_routers (works now) Index: dhcp-icmp-discovery.c =================================================================== RCS file: /cvsroot/dhcp-agent/dhcp-agent/dhcp-icmp-discovery.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** dhcp-icmp-discovery.c 19 May 2002 23:03:16 -0000 1.6 --- dhcp-icmp-discovery.c 19 May 2002 23:07:53 -0000 1.7 *************** *** 142,146 **** /* FIXME:x get rid of this magic number -- global config options? */ ! sends = 3; /* Our algorithm works as such: send out an ICMP echo request --- 142,146 ---- /* FIXME:x get rid of this magic number -- global config options? */ ! int sends = 3; /* Our algorithm works as such: send out an ICMP echo request Index: dhcp-sysconf.c =================================================================== RCS file: /cvsroot/dhcp-agent/dhcp-agent/dhcp-sysconf.c,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** dhcp-sysconf.c 19 May 2002 23:03:16 -0000 1.10 --- dhcp-sysconf.c 19 May 2002 23:07:53 -0000 1.11 *************** *** 123,129 **** latency = list_ptr->data; ! if(lowest_latency < latency) { lowest_latency = *latency; ! addr_val = list_ptr->data; } } --- 123,129 ---- latency = list_ptr->data; ! if(lowest_latency < *latency) { lowest_latency = *latency; ! addr_val = routers->data; } } |