summaryrefslogtreecommitdiff
path: root/net/scotty/patches/patch-ae
blob: 34c389c9ce0543a67f517bb50acea357560e4a10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-ae,v 1.2 1998/08/07 11:10:55 agc Exp $

--- ../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) 
       {