8000 Layers subpackage doesn't build under Windows · Issue #2 · google/gopacket · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Layers subpackage doesn't build under Windows #2
Closed
@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1.  Using Windows 7, attempt to build layers subpackage or use in command

What is the expected output? What do you see instead?
The build fails since the below constants used in enums.go are not defined 
under windows.  

ProtocolFamilyIPv4        ProtocolFamily = C.PF_INET
ProtocolFamilyIPv6BSD     ProtocolFamily = 24
ProtocolFamilyIPv6FreeBSD ProtocolFamily = 28
ProtocolFamilyIPv6Darwin  ProtocolFamily = 30
ProtocolFamilyIPv6Linux   ProtocolFamily = 10

These constants are defined in socket_h.go for non-windows OS (see directive on 
line 7: +build linux,cgo darwin,cgo).

What version of the product are you using? On what operating system?
Go 1.1.1, Windows 7 64-bit

Please provide any additional information below.
I worked around the issue by creating a new file that defined these constants 
under windows (attached).  Not sure if this is the optimal solution.  

Thank you very much for this package - highly useful!

Original issue reported on code.google.com by martinez...@gmail.com on 11 Jul 2013 at 4:18

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0