Add more packet info to nflog packet wakeup events
This patch completes the onWakeupEvent() binder interface of
INetdEventListener with some L2, L3, L4 packet information:
- ethertype
- destination hardware address
- destination ip address if any
- ip protocol if any
- src and dst ports if any
Also for consistency applying globally the transformation:
be16toh -> ntohs
be32toh -> ntohl
htobe16toh -> htons
htobe32toh -> htonl
Bug: 66869042
Test: runtest -x system/netd/server/netd_unit_test.cpp
+ manual testing by monitoring $ dumpsys connmetrics list
Change-Id: I33ef54d5af2e5e667006d853f56f3fe2e82b6a0b
9 files changed