1335640Shselasky/* 2335640Shselasky * Copyright (c) 1994, 1995, 1996 3335640Shselasky * The Regents of the University of California. All rights reserved. 4335640Shselasky * 5335640Shselasky * Redistribution and use in source and binary forms, with or without 6335640Shselasky * modification, are permitted provided that: (1) source code distributions 7335640Shselasky * retain the above copyright notice and this paragraph in its entirety, (2) 8335640Shselasky * distributions including binary code include the above copyright notice and 9335640Shselasky * this paragraph in its entirety in the documentation or other materials 10335640Shselasky * provided with the distribution, and (3) all advertising materials mentioning 11335640Shselasky * features or use of this software display the following acknowledgement: 12335640Shselasky * ``This product includes software developed by the University of California, 13335640Shselasky * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of 14335640Shselasky * the University nor the names of its contributors may be used to endorse 15335640Shselasky * or promote products derived from this software without specific prior 16335640Shselasky * written permission. 17335640Shselasky * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 18335640Shselasky * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 19335640Shselasky * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 20335640Shselasky */ 21335640Shselasky 22335640Shselasky#ifdef HAVE_CONFIG_H 23335640Shselasky#include <config.h> 24335640Shselasky#endif 25335640Shselasky 26335640Shselasky#include <string.h> 27335640Shselasky 28335640Shselasky#include "pcap-int.h" 29335640Shselasky 30335640Shselaskystatic char nosup[] = "live packet capture not supported on this system"; 31335640Shselasky 32335640Shselaskypcap_t * 33335640Shselaskypcap_create_interface(const char *device _U_, char *ebuf) 34335640Shselasky{ 35356341Scy (void)pcap_strlcpy(ebuf, nosup, PCAP_ERRBUF_SIZE); 36335640Shselasky return (NULL); 37335640Shselasky} 38335640Shselasky 39335640Shselaskyint 40356341Scypcap_platform_finddevs(pcap_if_list_t *devlistp _U_, char *errbuf _U_) 41335640Shselasky{ 42335640Shselasky /* 43335640Shselasky * There are no interfaces on which we can capture. 44335640Shselasky */ 45335640Shselasky return (0); 46335640Shselasky} 47335640Shselasky 48335640Shselasky#ifdef _WIN32 49335640Shselaskyint 50335640Shselaskypcap_lookupnet(const char *device _U_, bpf_u_int32 *netp _U_, 51335640Shselasky bpf_u_int32 *maskp _U_, char *errbuf) 52335640Shselasky{ 53356341Scy (void)pcap_strlcpy(errbuf, nosup, PCAP_ERRBUF_SIZE); 54335640Shselasky return (-1); 55335640Shselasky} 56335640Shselasky#endif 57335640Shselasky 58335640Shselasky/* 59335640Shselasky * Libpcap version string. 60335640Shselasky */ 61335640Shselaskyconst char * 62335640Shselaskypcap_lib_version(void) 63335640Shselasky{ 64335640Shselasky return (PCAP_VERSION_STRING); 65335640Shselasky} 66