Skip to content

Conversation

wader
Copy link

@wader wader commented May 18, 2022

Is produced by modern version of tcpdump.

the-tcpdump-group/tcpdump#850

@@ -85,7 +85,7 @@ const (

// LinkType is an enumeration of link types, and acts as a decoder for any
// link type it supports.
type LinkType uint8
type LinkType uint16
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

link type 276 does not fit in uint8

var errorDecodersForLinkType [256]errorDecoderForLinkType
var LinkTypeMetadata [256]EnumMetadata
var errorDecodersForLinkType [277]errorDecoderForLinkType
var LinkTypeMetadata [277]EnumMetadata
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be 65536?

@wader
Copy link
Author

wader commented May 20, 2022

Duplicate of #933

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant