ffeee16d82
Wed Sep 03 2003 Phil Knirsch <pknirsch@redhat.com> 20020927-9.1 - rebuilt Wed Sep 03 2003 Phil Knirsch <pknirsch@redhat.com> 20020927-9 - Start icmp_seq from 0 instead of 1 (Conform with debian and Solaris #100609). Thu Jul 31 2003 Phil Knirsch <pknirsch@redhat.com> 20020927-8 - One more update to ifenslave.c Mon Jun 16 2003 Phil Knirsch <pknirsch@redhat.com> 20020927-7 - Updated ifenslave.c and README.bonding to latest version. Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> - rebuilt Thu May 15 2003 Phil Knirsch <pknirsch@redhat.com> 20020927-5 - Bumped release and rebuilt Thu May 15 2003 Phil Knirsch <pknirsch@redhat.com> 20020927-4 - Fixed DNS lookup problems (#68212). - Added warning if binding problem failed on subinterface (#81640). Tue May 13 2003 Phil Knirsch <pknirsch@redhat.com> 20020927-3 - Removed bonding tarball and replaced it with ifenslave.c and README - FHS compliance for all tools, now to be found in /bin with compat symlinks to old places.
34 lines
1.0 KiB
Diff
34 lines
1.0 KiB
Diff
--- iputils/ping.c.addrcache 2002-09-20 17:08:11.000000000 +0200
|
|
+++ iputils/ping.c 2003-05-15 16:41:19.000000000 +0200
|
|
@@ -1124,6 +1124,12 @@
|
|
{
|
|
struct hostent *hp;
|
|
static char buf[4096];
|
|
+ static __u32 addr_cache = 0;
|
|
+
|
|
+ if ( addr == addr_cache )
|
|
+ return buf;
|
|
+
|
|
+ addr_cache = addr;
|
|
|
|
if ((options & F_NUMERIC) ||
|
|
!(hp = gethostbyaddr((char *)&addr, 4, AF_INET)))
|
|
--- iputils/ping6.c.addrcache 2002-09-20 17:08:11.000000000 +0200
|
|
+++ iputils/ping6.c 2003-05-15 16:41:19.000000000 +0200
|
|
@@ -893,7 +893,14 @@
|
|
*/
|
|
char * pr_addr(struct in6_addr *addr)
|
|
{
|
|
- struct hostent *hp = NULL;
|
|
+ static struct hostent *hp = NULL;
|
|
+ static struct in6_addr addr_cache = {{{0,0,0,0}}};
|
|
+
|
|
+ if ( addr->s6_addr32[0] == addr_cache.s6_addr32[0] &&
|
|
+ addr->s6_addr32[1] == addr_cache.s6_addr32[1] &&
|
|
+ addr->s6_addr32[2] == addr_cache.s6_addr32[2] &&
|
|
+ addr->s6_addr32[3] == addr_cache.s6_addr32[3] )
|
|
+ return hp ? hp->h_name : pr_addr_n(addr);
|
|
|
|
if (!(options&F_NUMERIC))
|
|
hp = gethostbyaddr((__u8*)addr, sizeof(struct in6_addr), AF_INET6);
|