changeset 559:85ba85b4739c

Cleanups
author Sebastien Decugis <sdecugis@nict.go.jp>
date Wed, 15 Sep 2010 18:35:31 +0900
parents 5938566235f9
children d300c5213e45
files INSTALL.FreeBSD freeDiameter/endpoints.c
diffstat 2 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/INSTALL.FreeBSD	Wed Sep 15 18:35:25 2010 +0900
+++ b/INSTALL.FreeBSD	Wed Sep 15 18:35:31 2010 +0900
@@ -50,7 +50,6 @@
 8) Compile, optionnaly test
    # make
    # make test
-  Note: on FreeBSD <= 8.1 on amd64, SCTP does not work properly, causing testsctp & testcnx to fail.
 
 9) Install
    # make install
--- a/freeDiameter/endpoints.c	Wed Sep 15 18:35:25 2010 +0900
+++ b/freeDiameter/endpoints.c	Wed Sep 15 18:35:31 2010 +0900
@@ -74,7 +74,7 @@
 				if (IN_IS_ADDR_UNSPECIFIED(&ptr.sin->sin_addr) 
 				 || IN_IS_ADDR_LOOPBACK(&ptr.sin->sin_addr)
 				    /* the next one filters both EXPERIMENTAL, BADCLASS and MULTICAST. */
-				 || (((ptr.sin->sin_addr.s_addr) & ntohl(0xe0000000)) == ntohl(0xe0000000))
+				 || ((ntohl(ptr.sin->sin_addr.s_addr) & 0xe0000000) == 0xe0000000)
 				 || (ptr.sin->sin_addr.s_addr == INADDR_BROADCAST)) {
 					if (TRACE_BOOL(ANNOYING + 1)) {
 						TRACE_DEBUG(ANNOYING, "  DEBUG:fd_ep_add_merge  Address was ignored, not added.");
"Welcome to our mercurial repository"