scroot / gopacket

Automatically exported from code.google.com/p/gopacket
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

PCAP_NETMASK_UNKNOWN is not defined in old pcap.h #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Setup gopacket on Windows
2. Install WinPcap developer package 4.1.2
3. patch #13
4. build a golang program

What is the expected output? What do you see instead?
{{{
# code.google.com/p/gopacket/pcap
38: error: 'PCAP_NETMASK_UNKNOWN' undeclared (first use in this function)
}}}

What version of the product are you using? On what operating system?
`go get code.google.com/p/gopacket`
on go1.2.2.windows-amd64.msi, cygwin x86_64-w64-mingw32

Please provide any additional information below.

PCAP_NETMASK_UNKNOWN is not defined in old pcap.h. In winpcap, pcap.h does not 
have PCAP_NETMASK_UNKNOWN. That #define is referenced in (p *Handle) 
SetBPFFilter(expr string) (err error)

Original issue reported on code.google.com by Hiroaki.Kawai@gmail.com on 16 Jun 2014 at 4:59

GoogleCodeExporter commented 9 years ago
Defined with an ifdef in pcap.go.

Original comment by gconnell@google.com on 16 Jun 2014 at 4:54