diff --git a/.chloggen/netflow-additional-ethertypes.yaml b/.chloggen/netflow-additional-ethertypes.yaml new file mode 100644 index 0000000000000..f25605e5fb208 --- /dev/null +++ b/.chloggen/netflow-additional-ethertypes.yaml @@ -0,0 +1,24 @@ +# Use this changelog template to create an entry for release notes. + +# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' +change_type: enhancement + +# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) +component: receiver/netflow + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: Adds additional common EtherTypes for `network.type`. + +# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. +issues: [40219] + +subtext: + +# If your change doesn't affect end users or the exported elements of any package, +# you should instead start your pull request title with [chore] or use the "Skip Changelog" label. +# Optional: The change log or logs in which this entry should be included. +# e.g. '[user]' or '[user, api]' +# Include 'user' if the change is relevant to end users. +# Include 'api' if there is a change to a library API. +# Default: '[user]' +change_logs: [user] diff --git a/receiver/netflowreceiver/parser.go b/receiver/netflowreceiver/parser.go index e8758842180ad..50f78f7b4f2d9 100644 --- a/receiver/netflowreceiver/parser.go +++ b/receiver/netflowreceiver/parser.go @@ -17,11 +17,19 @@ import ( var ( - // https://en.wikipedia.org/wiki/EtherType + // https://www.iana.org/assignments/ieee-802-numbers/ieee-802-numbers.xhtml#ieee-802-numbers-1 etypeNames = map[uint32]string{ 0x806: "arp", 0x800: "ipv4", + 0x814c: "snmp", 0x86dd: "ipv6", + 0x8847: "mpls", + 0x888e: "eapol", + 0x88cc: "lldp", + 0x88e5: "macsec", + 0x88f5: "mvrp", + 0x88f7: "ptp", + 0xa0ed: "6lowpan", } // https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml