Home page logo
/

nmap-dev logo Nmap Development mailing list archives

Syntaz error in nsock_pcap.c revision 31668
From: Robert Snyder <rwsnyder () ncsu edu>
Date: Tue, 6 Aug 2013 12:58:04 -0400

Simple enough.

gcc -c -I../../nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\"
-D_FORTIFY_SOURCE=2 -I../include -I../../libpcap -g -O2 -Wall
nsock_pcap.c -o nsock_pcap.o
nsock_pcap.c: In function ‘nsock_pcap_open’:
nsock_pcap.c:313: error: ‘i’ undeclared (first use in this function)
nsock_pcap.c:313: error: (Each undeclared identifier is reported only once
nsock_pcap.c:313: error: for each function it appears in.)
nsock_pcap.c:313: error: expected ‘;’ before ‘f’
make[1]: *** [nsock_pcap.o] Error 1
make: *** [nsock_build] Error 2

Fix line 313 in nmap/nsock/src/nsock_pcap.c, extra space between the i and
the f in the if statement:

312 #ifdef BIOCIMMEDIATE
313  i  f (mp->pcap_desc != -1) {  //change i f to if
314    int immediate = 1;
315
316    if (ioctl(mp->pcap_desc, BIOCIMMEDIATE, &immediate) < 0)
317      fatal("Cannot set BIOCIMMEDIATE on pcap descriptor");
318  }
319 #endif


-Robert
-- 
-- 
Robert Wesley Snyder
PhD Candidate
NCSU Department of Computer Science Bioinformatics Laboratory
_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
AlienVault