Error during make

Vern Paxson vern at icir.org
Mon Sep 23 09:15:14 PDT 2002


>  When I tried to compile the 0.8a1 version. There is
> also some error with DNS_MGr.cc file. The error is
> shown as the following:

Please try the appended patch and let me know if it works.

		Vern


--- CURRENT/bro-pub-0.8a1/DNS_Mgr.cc	Sat Sep 14 16:57:14 2002
+++ ./DNS_Mgr.cc	Mon Sep 23 09:12:20 2002
@@ -1,4 +1,4 @@
-// $Header: /home/ram/u0/vern/bro/RCS/DNS_Mgr.cc,v 1.27 2002/09/14 23:57:01 vern Exp $
+// $Header: /home/ram/u0/vern/bro/RCS/DNS_Mgr.cc,v 1.27 2002/09/14 23:57:01 vern Exp vern $
 //
 // Copyright (c) 1996-1999
 //      The Regents of the University of California.  All rights reserved.
@@ -658,7 +658,7 @@
 
 void DNS_Mgr::AddResult(DNS_Mgr_Request* dr, struct nb_dns_result* r)
 	{
-	hostent* h = (r && r->h_errno == 0) ? r->hostent : 0;
+	struct hostent* h = (r && r->h_errno == 0) ? r->hostent : 0;
 
 	DNS_Mapping* new_dm;
 	DNS_Mapping* prev_dm;
@@ -758,13 +758,17 @@
 
 	for ( int i = 0; i < al1->Length(); ++i )
 		{
-		uint32 al1_i = al1->Index(i)->InternalUnsigned();
+		addr_type al1_i = al1->Index(i)->AsAddr();
 
 		int j;
 		for ( j = 0; j < al2->Length(); ++j )
 			{
-			uint32 al2_j = al2->Index(j)->InternalUnsigned();
+			addr_type al2_j = al2->Index(j)->AsAddr();
+#ifdef BROv6
+			if ( addr_eq(al1_i, al2_j) )
+#else
 			if ( al1_i == al2_j )
+#endif
 				break;
 			}
 
@@ -780,7 +784,7 @@
 	{
 	for ( int i = 0; i < al->Length(); ++i )
 		{
-		uint32 al_i = al->Index(i)->InternalUnsigned();
+		addr_type al_i = al->Index(i)->AsAddr();
 		fprintf(f, "%s%s", i > 0 ? "," : "", dotted_addr(al_i));
 		}
 	}



More information about the Bro mailing list