[Dhcp-agent-commits] dhcp-agent dhcp-icmp-discovery.c,1.12,1.13 dhcp-sysconf.c,1.16,1.17
Status: Alpha
Brought to you by:
actmodern
From: <bk...@us...> - 2002-06-16 00:57:35
|
Update of /cvsroot/dhcp-agent/dhcp-agent In directory usw-pr-cvs1:/tmp/cvs-serv18416 Modified Files: dhcp-icmp-discovery.c dhcp-sysconf.c Log Message: Fix my last patch, I mishandled a couple pointers. Index: dhcp-icmp-discovery.c =================================================================== RCS file: /cvsroot/dhcp-agent/dhcp-agent/dhcp-icmp-discovery.c,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** dhcp-icmp-discovery.c 15 Jun 2002 21:53:46 -0000 1.12 --- dhcp-icmp-discovery.c 16 Jun 2002 00:57:32 -0000 1.13 *************** *** 225,229 **** xfree(latency); /* free our latency array. */ rtts = add_to_list(rtts, average_latency); ! rtts = add_to_list(rtts, *host_addr); } --- 225,229 ---- xfree(latency); /* free our latency array. */ rtts = add_to_list(rtts, average_latency); ! rtts = add_to_list(rtts, host_addr); } Index: dhcp-sysconf.c =================================================================== RCS file: /cvsroot/dhcp-agent/dhcp-agent/dhcp-sysconf.c,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** dhcp-sysconf.c 15 Jun 2002 21:53:46 -0000 1.16 --- dhcp-sysconf.c 16 Jun 2002 00:57:32 -0000 1.17 *************** *** 120,124 **** * (See RFC 1812, section 4.3.3.6.) */ addr_val = average_latencies->next->data; ! lowest_latency = average_latencies->data; /* Now pick best router and use it as default. */ --- 120,125 ---- * (See RFC 1812, section 4.3.3.6.) */ addr_val = average_latencies->next->data; ! latency = list_ptr->data; ! lowest_latency = *latency; /* Now pick best router and use it as default. */ |