1127664Sbms/* -*- Mode: c; tab-width: 8; indent-tabs-mode: 1; c-basic-offset: 8; -*- */
2127664Sbms/*
3127664Sbms * Copyright (c) 1994, 1995, 1996, 1997, 1998
4127664Sbms *	The Regents of the University of California.  All rights reserved.
5127664Sbms *
6127664Sbms * Redistribution and use in source and binary forms, with or without
7127664Sbms * modification, are permitted provided that the following conditions
8127664Sbms * are met:
9127664Sbms * 1. Redistributions of source code must retain the above copyright
10127664Sbms *    notice, this list of conditions and the following disclaimer.
11127664Sbms * 2. Redistributions in binary form must reproduce the above copyright
12127664Sbms *    notice, this list of conditions and the following disclaimer in the
13127664Sbms *    documentation and/or other materials provided with the distribution.
14127664Sbms * 3. All advertising materials mentioning features or use of this software
15127664Sbms *    must display the following acknowledgement:
16127664Sbms *	This product includes software developed by the Computer Systems
17127664Sbms *	Engineering Group at Lawrence Berkeley Laboratory.
18127664Sbms * 4. Neither the name of the University nor of the Laboratory may be used
19127664Sbms *    to endorse or promote products derived from this software without
20127664Sbms *    specific prior written permission.
21127664Sbms *
22127664Sbms * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23127664Sbms * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24127664Sbms * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25127664Sbms * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26127664Sbms * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27127664Sbms * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28127664Sbms * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29127664Sbms * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30127664Sbms * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31127664Sbms * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32127664Sbms * SUCH DAMAGE.
33127664Sbms */
34127664Sbms
35127664Sbms#ifdef HAVE_CONFIG_H
36127664Sbms#include "config.h"
37127664Sbms#endif
38127664Sbms
39127664Sbms#include <pcap.h>
40127664Sbms
41127664Sbms/*
42127664Sbms * Get a list of all interfaces that are up and that we can open.
43127664Sbms * Returns -1 on error, 0 otherwise.
44127664Sbms * The list, as returned through "alldevsp", may be null if no interfaces
45127664Sbms * were up and could be opened.
46127664Sbms *
47127664Sbms * This is the implementation used on platforms that have no support for
48127664Sbms * packet capture.
49127664Sbms */
50127664Sbmsint
51276768Sdelphijpcap_findalldevs_interfaces(pcap_if_t **alldevsp, char *errbuf)
52127664Sbms{
53127664Sbms	/*
54127664Sbms	 * Succeed, but don't return any interfaces; we return only those
55127664Sbms	 * we can open, and we can't open any if there's no support
56127664Sbms	 * for packet capture.
57127664Sbms	 */
58127664Sbms	*alldevsp = NULL;
59127664Sbms	return (0);
60127664Sbms}
61