- Timestamp:
- Jul 7, 2008 9:31:02 PM (16 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/config.h
r2039 r2112 600 600 # endif 601 601 # endif 602 #endif 603 604 605 /** 606 * Specify whether #pj_enum_ip_interface() function should exclude 607 * loopback interfaces. 608 * 609 * Default: 1 610 */ 611 #ifndef PJ_IP_HELPER_IGNORE_LOOPBACK_IF 612 # define PJ_IP_HELPER_IGNORE_LOOPBACK_IF 1 602 613 #endif 603 614 -
pjproject/trunk/pjlib/src/pj/ip_helper_generic.c
r2106 r2112 86 86 } 87 87 88 #if PJ_IP_HELPER_IGNORE_LOOPBACK_IF 88 89 if (it->ifa_flags & IFF_LOOPBACK) { 89 90 TRACE_((THIS_FILE, " loopback interface")); 90 91 continue; /* Skip loopback interface */ 91 92 } 93 #endif 92 94 93 95 if (ad==NULL) { 94 96 TRACE_((THIS_FILE, " NULL address ignored")); 95 continue; /* reported to happen on Linux 2.6.25.9 */ 97 continue; /* reported to happen on Linux 2.6.25.9 98 with ppp interface */ 96 99 } 97 100 … … 189 192 } 190 193 194 #if PJ_IP_HELPER_IGNORE_LOOPBACK_IF 191 195 if (itf->ifr_flags & IFF_LOOPBACK) { 192 196 TRACE_((THIS_FILE, " loopback interface")); 193 197 continue; /* Skip loopback interface */ 194 198 } 199 #endif 195 200 196 201 /* Ignore 0.0.0.0/8 address. This is a special address … … 260 265 } 261 266 267 #if PJ_IP_HELPER_IGNORE_LOOPBACK_IF 262 268 if (ifreq.ifr_flags & IFF_LOOPBACK) { 263 269 TRACE_((THIS_FILE, " loopback interface")); 264 270 continue; /* Skip loopback interface */ 265 271 } 272 #endif 266 273 267 274 /* Note: SIOCGIFADDR does not work for IPv6! */ -
pjproject/trunk/pjlib/src/pj/ip_helper_win32.c
r2039 r2112 41 41 #include <pj/string.h> 42 42 43 #ifndef PJ_IP_HELPER_IGNORE_LOOPBACK_IF44 # define PJ_IP_HELPER_IGNORE_LOOPBACK_IF 145 #endif46 47 43 typedef DWORD (WINAPI *PFN_GetIpAddrTable)(PMIB_IPADDRTABLE pIpAddrTable, 48 44 PULONG pdwSize, -
pjproject/trunk/pjsip-apps/src/samples/proxy.h
r2039 r2112 272 272 } 273 273 274 /* No need to add this, this should have been added above. 274 /* Add loopback address. */ 275 #if PJ_IP_HELPER_IGNORE_LOOPBACK_IF 275 276 global.name[global.name_cnt].host = pj_str("127.0.0.1"); 276 277 global.name[global.name_cnt].port = global.port; 277 278 global.name_cnt++; 278 */ 279 #endif 279 280 280 281 global.name[global.name_cnt].host = *pj_gethostname();
Note: See TracChangeset
for help on using the changeset viewer.