Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Feb 2010 00:46:17 +0000 (UTC)
From:      Kip Macy <kmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r203585 - user/kmacy/head_flowtable_v6/sys/net
Message-ID:  <201002070046.o170kHv2087955@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kmacy
Date: Sun Feb  7 00:46:17 2010
New Revision: 203585
URL: http://svn.freebsd.org/changeset/base/203585

Log:
  print hash and tuple on lookup

Modified:
  user/kmacy/head_flowtable_v6/sys/net/flowtable.c

Modified: user/kmacy/head_flowtable_v6/sys/net/flowtable.c
==============================================================================
--- user/kmacy/head_flowtable_v6/sys/net/flowtable.c	Sun Feb  7 00:38:31 2010	(r203584)
+++ user/kmacy/head_flowtable_v6/sys/net/flowtable.c	Sun Feb  7 00:46:17 2010	(r203585)
@@ -533,10 +533,6 @@ ipv4_mbuf_demarshal(struct flowtable *ft
 skipports:
 	ssin->sin_port = sport;
 	dsin->sin_port = dport;
-#ifdef FLOWTABLE_DEBUG
-	if (*flags & FL_DEBUG_ALL)
-		ipv4_flow_print_tuple(*flags, proto, ssin, dsin);
-#endif	
 	return (0);
 }
 
@@ -1041,6 +1037,11 @@ flowtable_lookup(struct flowtable *ft, s
 		ssin = (struct sockaddr_in *)ssa;
 		
 		hash = ipv4_flow_lookup_hash_internal(ssin, dsin, key, flags);
+#ifdef FLOWTABLE_DEBUG
+		if (*flags & FL_DEBUG_ALL){
+			printf("lookup: hash=0x%x ", hash);
+			ipv4_flow_print_tuple(*flags, proto, ssin, dsin);
+#endif		
 	}
 #endif	
 #ifdef INET6		



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002070046.o170kHv2087955>