mirror of
https://github.com/nmap/nmap.git
synced 2025-12-23 16:09:02 +00:00
Update libpcap to 1.9.0 (no patches applied yet)
This commit is contained in:
@@ -20,12 +20,14 @@
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <pcap.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "optimize.h"
|
||||
|
||||
void
|
||||
bpf_dump(const struct bpf_program *p, int option)
|
||||
{
|
||||
@@ -50,8 +52,7 @@ bpf_dump(const struct bpf_program *p, int option)
|
||||
}
|
||||
for (i = 0; i < n; ++insn, ++i) {
|
||||
#ifdef BDEBUG
|
||||
extern int bids[];
|
||||
if (bids[i] > 0)
|
||||
if (i < NBIDS && bids[i] > 0)
|
||||
printf("[%02d]", bids[i] - 1);
|
||||
else
|
||||
printf(" -- ");
|
||||
|
||||
Reference in New Issue
Block a user