Changeset 2112 for pjproject/trunk/pjlib/src/pj/ip_helper_generic.c
- Timestamp:
- Jul 7, 2008 9:31:02 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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! */
Note: See TracChangeset
for help on using the changeset viewer.