Hi Sashiko,
Thanks for the review.
Should RX_MAC and TX_MAC be copied here? In this file they are text
strings meant for the ip link commands:
No. This is a regression I introduced in v2. RX_MAC and TX_MAC are the
text strings used for the ip link commands, so copying ETH_ALEN bytes
from them copies only the first six ASCII characters, "00:00:".
The root cause is that I reused the ASCII macros intended for the ip
link commands as packet bytes. The test only checks the UDP destination
port, so it still passed with the wrong Ethernet addresses. In v3 I will
restore the binary literals and add an Ethernet MAC check so this
regression is caught.
Should the condition be retries-- > 0 instead?
This check is pre-existing and not introduced by this series. I will
send a separate patch for it rather than mixing it into this fix.
Thanks,
Rongzheng
pw-bot: cr