Deleted Added
sdiff udiff text old ( 135446 ) new ( 143731 )
full compact
1/*
2 * Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
3 * Copyright (C) 1999-2003 Internet Software Consortium.
4 *
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 * PERFORMANCE OF THIS SOFTWARE.
16 */
17
18/* $Id: ifiter_ioctl.c,v 1.19.2.5.2.15 2004/11/10 22:22:49 marka Exp $ */
19
20/*
21 * Obtain the list of network interfaces using the SIOCGLIFCONF ioctl.
22 * See netintro(4).
23 */
24
25#if defined(SIOCGLIFCONF) && defined(SIOCGLIFADDR)
26#ifdef ISC_PLATFORM_HAVEIF_LADDRCONF

--- 307 unchanged lines hidden (view full) ---

334 ISC_MSGSET_IFITERIOCTL,
335 ISC_MSG_MAKESCANSOCKET,
336 "making interface "
337 "scan socket: %s"),
338 strbuf);
339 result = ISC_R_UNEXPECTED;
340 goto socket6_failure;
341 }
342 result = iter->result6 = getbuf6(iter);
343 if (result != ISC_R_NOTIMPLEMENTED && result != ISC_R_SUCCESS)
344 goto ioctl6_failure;
345 }
346#endif
347 if ((iter->socket = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
348 isc__strerror(errno, strbuf, sizeof(strbuf));
349 UNEXPECTED_ERROR(__FILE__, __LINE__,
350 isc_msgcat_get(isc_msgcat,
351 ISC_MSGSET_IFITERIOCTL,

--- 664 unchanged lines hidden ---