diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1997-03-06 16:38:07 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1997-03-06 16:38:07 +0000 |
commit | e158218aabc360d94311c0547a2af39ee90bf782 (patch) | |
tree | 13c28b80174a41077205a7c41cacbf00fe3f53f1 /net/scotty/files/patch-ae | |
parent | Change MAINTAINER to wosch (diff) |
Improve the IP-discover application.
Fix INADDR_LOOPBACK starvation.
Don't react to pings that come back from another address than what we
pinged.
Notes
Notes:
svn path=/head/; revision=5897
Diffstat (limited to 'net/scotty/files/patch-ae')
-rw-r--r-- | net/scotty/files/patch-ae | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net/scotty/files/patch-ae b/net/scotty/files/patch-ae new file mode 100644 index 000000000000..3acac9b44a79 --- /dev/null +++ b/net/scotty/files/patch-ae @@ -0,0 +1,19 @@ +--- ../tnm/ntping/ntping.c Thu Sep 19 10:59:13 1996 ++++ ../tnm/ntping/ntping.c Thu Mar 6 17:32:03 1997 +@@ -749,7 +749,15 @@ + return; + } + +- dprintf (stderr, "* .. got host %s .. ", job->hname); ++ dprintf (stderr, "* .. got host %s .. %x %x ", job->hname, ++ sfrom.sin_addr.s_addr, job->sa.sin_addr.s_addr ); ++ ++ if ( type == ping && sfrom.sin_addr.s_addr != job->sa.sin_addr.s_addr) ++ { ++ dprintf (stderr, "* non-matching IP# was: %x should be:%x.\n", ++ sfrom.sin_addr.s_addr, job->sa.sin_addr.s_addr ); ++ return; ++ } + + switch (type) + { |