comparison 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
comparison
equal deleted inserted replaced
558:5938566235f9 559:85ba85b4739c
72 case AF_INET: 72 case AF_INET:
73 if (! (flags & EP_ACCEPTALL)) { 73 if (! (flags & EP_ACCEPTALL)) {
74 if (IN_IS_ADDR_UNSPECIFIED(&ptr.sin->sin_addr) 74 if (IN_IS_ADDR_UNSPECIFIED(&ptr.sin->sin_addr)
75 || IN_IS_ADDR_LOOPBACK(&ptr.sin->sin_addr) 75 || IN_IS_ADDR_LOOPBACK(&ptr.sin->sin_addr)
76 /* the next one filters both EXPERIMENTAL, BADCLASS and MULTICAST. */ 76 /* the next one filters both EXPERIMENTAL, BADCLASS and MULTICAST. */
77 || (((ptr.sin->sin_addr.s_addr) & ntohl(0xe0000000)) == ntohl(0xe0000000)) 77 || ((ntohl(ptr.sin->sin_addr.s_addr) & 0xe0000000) == 0xe0000000)
78 || (ptr.sin->sin_addr.s_addr == INADDR_BROADCAST)) { 78 || (ptr.sin->sin_addr.s_addr == INADDR_BROADCAST)) {
79 if (TRACE_BOOL(ANNOYING + 1)) { 79 if (TRACE_BOOL(ANNOYING + 1)) {
80 TRACE_DEBUG(ANNOYING, " DEBUG:fd_ep_add_merge Address was ignored, not added."); 80 TRACE_DEBUG(ANNOYING, " DEBUG:fd_ep_add_merge Address was ignored, not added.");
81 } 81 }
82 return 0; 82 return 0;
"Welcome to our mercurial repository"