Mercurial > hg > freeDiameter
diff freeDiameter/endpoints.c @ 559:85ba85b4739c
Cleanups
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Wed, 15 Sep 2010 18:35:31 +0900 |
parents | 16224de837fd |
children | 237cf6339546 |
line wrap: on
line diff
--- 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.");