Changeset 158 for branches/samba-3.0/source/lib/interface.c
- Timestamp:
- Sep 30, 2008, 7:14:08 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/lib/interface.c
r22 r158 302 302 303 303 /**************************************************************************** 304 how many non-loopback interfaces do we have 305 **************************************************************************/ 306 int iface_count_nl(void) 307 { 308 int ret = 0; 309 struct interface *i; 310 311 for (i=local_interfaces;i;i=i->next) { 312 if (ip_equal(i->ip, loopback_ip)) { 313 continue; 314 } 315 ret++; 316 } 317 return ret; 318 } 319 320 /**************************************************************************** 304 321 return the Nth interface 305 322 **************************************************************************/
Note:
See TracChangeset
for help on using the changeset viewer.