Unpack udp payload and parse DNS contents, and formats it for logging purposes
Avoid parsing packets twice : in the previous approach packets where already parsed and we parsed them again using NewDecodingLayerParser. As this method reused variables, it introduced bugs where simple dns requests would be interpreted as Bonjour packets.
NB: The Dot1Q extraction is commented for the moment as it is not used yet.
What does this PR do ?
NewDecodingLayerParser
. As this method reused variables, it introduced bugs where simple dns requests would be interpreted as Bonjour packets.NB: The Dot1Q extraction is commented for the moment as it is not used yet.
cc @KSerrania @oxlay for review :eyes: