117683Spst/* 226175Sfenner * Copyright (c) 1994, 1995, 1996 317683Spst * The Regents of the University of California. All rights reserved. 417683Spst * 517683Spst * Redistribution and use in source and binary forms, with or without 617683Spst * modification, are permitted provided that: (1) source code distributions 717683Spst * retain the above copyright notice and this paragraph in its entirety, (2) 817683Spst * distributions including binary code include the above copyright notice and 917683Spst * this paragraph in its entirety in the documentation or other materials 1017683Spst * provided with the distribution, and (3) all advertising materials mentioning 1117683Spst * features or use of this software display the following acknowledgement: 1217683Spst * ``This product includes software developed by the University of California, 1317683Spst * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of 1417683Spst * the University nor the names of its contributors may be used to endorse 1517683Spst * or promote products derived from this software without specific prior 1617683Spst * written permission. 1717683Spst * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 1817683Spst * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 1917683Spst * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 2017683Spst */ 2117683Spst#ifndef lint 22127664Sbmsstatic const char rcsid[] _U_ = 23214518Srpaulo "@(#) $Header: /tcpdump/master/libpcap/pcap-null.c,v 1.22 2008-04-04 19:37:45 guy Exp $ (LBL)"; 2417683Spst#endif 2517683Spst 2675107Sfenner#ifdef HAVE_CONFIG_H 2775107Sfenner#include "config.h" 2875107Sfenner#endif 2975107Sfenner 3017683Spst#include <sys/param.h> /* optionally get BSD define */ 3117683Spst 3217683Spst#include <string.h> 3317683Spst 3417683Spst#ifdef HAVE_OS_PROTO_H 3517683Spst#include "os-proto.h" 3617683Spst#endif 3717683Spst 3817683Spst#include "pcap-int.h" 3917683Spst 4017683Spststatic char nosup[] = "live packet capture not supported on this system"; 4117683Spst 4217683Spstpcap_t * 43252281Sdelphijpcap_create_interface(const char *device, char *ebuf) 4417683Spst{ 45214518Srpaulo (void)strlcpy(ebuf, nosup, PCAP_ERRBUF_SIZE); 4617683Spst return (NULL); 4717683Spst} 4817683Spst 4917683Spstint 50127664Sbmspcap_platform_finddevs(pcap_if_t **alldevsp, char *errbuf) 5117683Spst{ 5217683Spst return (0); 5317683Spst} 54