mirror of
https://github.com/nmap/nmap.git
synced 2026-02-07 05:56:34 +00:00
Update libpcap to 1.7.3, partially addressing #34
This commit is contained in:
@@ -14,11 +14,6 @@
|
||||
* (+961 3 485243)
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static const char rcsid[] _U_ =
|
||||
"@(#) $Header: /tcpdump/master/libpcap/pcap-septel.c,v 1.4 2008-04-14 20:40:58 guy Exp $";
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
@@ -199,9 +194,9 @@ septel_inject(pcap_t *handle, const void *buf _U_, size_t size _U_)
|
||||
* See also pcap(3).
|
||||
*/
|
||||
static pcap_t *septel_activate(pcap_t* handle) {
|
||||
/* Initialize some components of the pcap structure. */
|
||||
/* Initialize some components of the pcap structure. */
|
||||
handle->linktype = DLT_MTP2;
|
||||
|
||||
|
||||
handle->bufsize = 0;
|
||||
|
||||
/*
|
||||
@@ -249,9 +244,9 @@ static int septel_stats(pcap_t *p, struct pcap_stat *ps) {
|
||||
struct pcap_septel *handlep = p->priv;
|
||||
/*handlep->stat.ps_recv = 0;*/
|
||||
/*handlep->stat.ps_drop = 0;*/
|
||||
|
||||
|
||||
*ps = handlep->stat;
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -259,13 +254,8 @@ static int septel_stats(pcap_t *p, struct pcap_stat *ps) {
|
||||
int
|
||||
septel_findalldevs(pcap_if_t **devlistp, char *errbuf)
|
||||
{
|
||||
unsigned char *p;
|
||||
const char description[512]= "Intel/Septel device";
|
||||
char name[512]="septel" ;
|
||||
int ret = 0;
|
||||
pcap_add_if(devlistp,name,0,description,errbuf);
|
||||
|
||||
return (ret);
|
||||
return (pcap_add_if(devlistp,"septel",0,
|
||||
"Intel/Septel device",errbuf));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user