Ignore:
Timestamp:
May 20, 2009, 6:46:53 PM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/lib/interface.c

    r141 r204  
    132132
    133133/****************************************************************************
    134  How many interfaces do we have (v4 only) ?
    135 **************************************************************************/
    136 
    137 int iface_count_v4(void)
     134 How many non-loopback IPv4 interfaces do we have ?
     135**************************************************************************/
     136
     137int iface_count_v4_nl(void)
    138138{
    139139        int ret = 0;
     
    141141
    142142        for (i=local_interfaces;i;i=i->next) {
     143                if (is_loopback_addr(&i->ip)) {
     144                        continue;
     145                }
    143146                if (i->ip.ss_family == AF_INET) {
    144147                        ret++;
Note: See TracChangeset for help on using the changeset viewer.