[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r4035 - GNUnet/src/transports
From: |
grothoff |
Subject: |
[GNUnet-SVN] r4035 - GNUnet/src/transports |
Date: |
Sat, 23 Dec 2006 20:22:38 -0800 (PST) |
Author: grothoff
Date: 2006-12-23 20:22:36 -0800 (Sat, 23 Dec 2006)
New Revision: 4035
Modified:
GNUnet/src/transports/tcp.c
Log:
f
Modified: GNUnet/src/transports/tcp.c
===================================================================
--- GNUnet/src/transports/tcp.c 2006-12-24 04:16:31 UTC (rev 4034)
+++ GNUnet/src/transports/tcp.c 2006-12-24 04:22:36 UTC (rev 4035)
@@ -184,10 +184,22 @@
(YES == isBlacklisted(&haddr->ip,
sizeof(IPaddr))) ||
(YES != isWhitelisted(&haddr->ip,
- sizeof(IPaddr))) )
+ sizeof(IPaddr))) ) {
+#if DEBUG_TCP
+ EncName enc;
+
+ hash2enc(hello->senderIdentity.hashPubKey,
+ &enc);
+ GE_LOG(ectx,
+ GE_DEBUG | GE_DEVELOPER | GE_BULK,
+ "Rejecting HELLO from `%s' at address %u.%u.%u.%u:%u\n",
+ &enc,
+ PRIP(ntohl(*(int*)&haddr->ip)),
+ ntohs(haddr->port));
+#endif
return SYSERR; /* obviously invalid */
- else
- return OK;
+ }
+ return OK;
}
/**
@@ -207,9 +219,11 @@
static int once = 0;
if (once == 0) {
once = 1;
+#if DEBUG_TCP
GE_LOG(ectx,
GE_DEBUG | GE_USER | GE_BULK,
"TCP port is 0, will only send using TCP.\n");
+#endif
}
return NULL; /* TCP transport is configured SEND-only! */
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r4035 - GNUnet/src/transports,
grothoff <=