aregm / nff-go

NFF-Go -Network Function Framework for GO (former YANFF)
BSD 3-Clause "New" or "Revised" License
1.38k stars 156 forks source link

Why ARP.Operation gives results other than 1 or 2? #701

Closed sitilge closed 4 years ago

sitilge commented 4 years ago

For example, when receiving a broadcast ARP packet, the ARP.Operation returns values like 256 or 512. Is it a normal behavior?

Edit: nevermind, had to swap bytes.