Nmap Development mailing list archives
[PATCH & Question] bpf_u_int32 AmigaOS only?
From: Kris Katterjohn <kjak () ispwest com>
Date: Tue, 22 Aug 2006 19:06:56 -0500
Why is bpf_u_int32 only used under AmigaOS (set_pcap_filter() in tcpip.cc)? The pcap headers define it and it compiled fine with it on my Linux box. I assume there's a reason? Here's a patch that always uses bpf_u_int32 instead of 'unsigned int' under everything but Amiga. The patch is a diff against 4.20ALPHA4 Thanks, Kris Katterjohn --- x/tcpip.cc 2006-07-04 18:05:03.000000000 -0500 +++ y/tcpip.cc 2006-08-22 18:59:33.000000000 -0500 @@ -2089,11 +2089,7 @@ void set_pcap_filter(const char *device, va_list ap; char buf[3072]; struct bpf_program fcode; -#ifndef __amigaos__ - unsigned int localnet, netmask; -#else bpf_u_int32 localnet, netmask; -#endif char err0r[256]; // Cast below is becaue OpenBSD apparently has a version that takes a _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- [PATCH & Question] bpf_u_int32 AmigaOS only? Kris Katterjohn (Aug 22)
