Changeset 221 for branches/samba-3.3.x/source/lib/interface.c
- Timestamp:
- May 24, 2009, 7:17:10 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/lib/interface.c
r206 r221 152 152 153 153 /**************************************************************************** 154 Return a pointer to the in_addr of the first IPv4 interface. 154 Return a pointer to the in_addr of the first IPv4 interface that's 155 not 0.0.0.0. 155 156 **************************************************************************/ 156 157 … … 160 161 161 162 for (i=local_interfaces;i ;i=i->next) { 162 if (i->ip.ss_family == AF_INET) { 163 if ((i->ip.ss_family == AF_INET) && 164 (!is_zero_ip_v4(((struct sockaddr_in *)&i->ip)->sin_addr))) 165 { 163 166 break; 164 167 }
Note:
See TracChangeset
for help on using the changeset viewer.