pcap-null.c revision 127664
116125Swpaul/* 216125Swpaul * Copyright (c) 1994, 1995, 1996 316125Swpaul * The Regents of the University of California. All rights reserved. 416125Swpaul * 516125Swpaul * Redistribution and use in source and binary forms, with or without 616125Swpaul * modification, are permitted provided that: (1) source code distributions 716125Swpaul * retain the above copyright notice and this paragraph in its entirety, (2) 816125Swpaul * distributions including binary code include the above copyright notice and 916125Swpaul * this paragraph in its entirety in the documentation or other materials 1016125Swpaul * provided with the distribution, and (3) all advertising materials mentioning 1116125Swpaul * features or use of this software display the following acknowledgement: 1216125Swpaul * ``This product includes software developed by the University of California, 1316125Swpaul * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of 1416125Swpaul * the University nor the names of its contributors may be used to endorse 1516125Swpaul * or promote products derived from this software without specific prior 1616125Swpaul * written permission. 1716125Swpaul * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 1816125Swpaul * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 1916125Swpaul * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 2016125Swpaul */ 2116125Swpaul#ifndef lint 2216125Swpaulstatic const char rcsid[] _U_ = 2316125Swpaul "@(#) $Header: /tcpdump/master/libpcap/pcap-null.c,v 1.20.2.1 2003/11/15 23:26:45 guy Exp $ (LBL)"; 2416125Swpaul#endif 2516125Swpaul 2616125Swpaul#ifdef HAVE_CONFIG_H 2716125Swpaul#include "config.h" 2816125Swpaul#endif 2916125Swpaul 3016125Swpaul#include <sys/param.h> /* optionally get BSD define */ 3150479Speter 3216125Swpaul#include <string.h> 3316125Swpaul 3416125Swpaul#ifdef HAVE_OS_PROTO_H 3516125Swpaul#include "os-proto.h" 3616125Swpaul#endif 3716125Swpaul 3816125Swpaul#include "pcap-int.h" 3916125Swpaul 4068965Srustatic char nosup[] = "live packet capture not supported on this system"; 4116125Swpaul 4216125Swpaulpcap_t * 4316125Swpaulpcap_open_live(const char *device, int snaplen, int promisc, int to_ms, 4430378Scharnier char *ebuf) 45108317Sschweikh{ 4657673Ssheldonh (void)strlcpy(ebuf, nosup, PCAP_ERRBUF_SIZE); 47210723Sjoel return (NULL); 4816125Swpaul} 4916125Swpaul 5016125Swpaulint 5116125Swpaulpcap_platform_finddevs(pcap_if_t **alldevsp, char *errbuf) 5216125Swpaul{ 5316125Swpaul return (0); 5416125Swpaul} 5516125Swpaul