1478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project/*
2478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project * Copyright (c) 1994, 1995, 1996
3478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project *	The Regents of the University of California.  All rights reserved.
4478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project *
5478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project * Redistribution and use in source and binary forms, with or without
6478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project * modification, are permitted provided that: (1) source code distributions
7478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project * retain the above copyright notice and this paragraph in its entirety, (2)
8478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project * distributions including binary code include the above copyright notice and
9478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project * this paragraph in its entirety in the documentation or other materials
10478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project * provided with the distribution, and (3) all advertising materials mentioning
11478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project * features or use of this software display the following acknowledgement:
12478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project * ``This product includes software developed by the University of California,
13478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
14478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project * the University nor the names of its contributors may be used to endorse
15478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project * or promote products derived from this software without specific prior
16478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project * written permission.
17478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
18478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
19478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project */
21478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project#ifndef lint
22478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Projectstatic const char rcsid[] _U_ =
23478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project    "@(#) $Header: /tcpdump/master/libpcap/pcap-null.c,v 1.21 2003/11/15 23:24:03 guy Exp $ (LBL)";
24478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project#endif
25478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project
26478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project#ifdef HAVE_CONFIG_H
27478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project#include "config.h"
28478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project#endif
29478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project
30478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project#include <sys/param.h>			/* optionally get BSD define */
31478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project
32478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project#include <string.h>
33478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project
34478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project#ifdef HAVE_OS_PROTO_H
35478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project#include "os-proto.h"
36478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project#endif
37478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project
38478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project#include "pcap-int.h"
39478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project
40478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Projectstatic char nosup[] = "live packet capture not supported on this system";
41478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project
42478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Projectpcap_t *
43478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Projectpcap_open_live(const char *device, int snaplen, int promisc, int to_ms,
44478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project    char *ebuf)
45478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project{
46478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project	(void)strlcpy(ebuf, nosup, PCAP_ERRBUF_SIZE);
47478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project	return (NULL);
48478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project}
49478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project
50478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Projectint
51478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Projectpcap_platform_finddevs(pcap_if_t **alldevsp, char *errbuf)
52478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project{
53478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project	return (0);
54478ab6c8b5bc982589be32eae1e5736efe721b58The Android Open Source Project}
55