You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the following snippet, the LinkType().LayerType() method always returns a value of 0 for all layer types. It should return type=1 for example, when the link type is "Ethernet" or 113 when the linkType of the pcapgo.Reader is "Linux Cooked SLL"
I guess I can workaround by performing a type conversion of LinkType to LayerType as their underlying types are compatible. This works for me for now as I can pass this layerType to the NewPacketSource method when decoding individual packets.
In the following snippet, the LinkType().LayerType() method always returns a value of 0 for all layer types. It should return type=1 for example, when the link type is "Ethernet" or 113 when the linkType of the pcapgo.Reader is "Linux Cooked SLL"
The text was updated successfully, but these errors were encountered: