Skip to content
Commit 4987c7ba authored by Lukasz Majewski's avatar Lukasz Majewski Committed by Jukka Rissanen
Browse files

test: af_packet: Do not change proto to network order when creating socket



The setup_socket() function calls socket() with proto changed to network
order. In this case functions with zsock_* prefix are called instead of
zpacket_*. The problem is with 'packet_is_supported()' method from
sockets_packet.c, which returns false when ETH_P_ALL proto is converted
with htons().

This patch fixes this issue by removing the htons() call.

Signed-off-by: default avatarLukasz Majewski <lukma@denx.de>
Suggested-by: default avatarJukka Rissanen <jukka.rissanen@linux.intel.com>
parent 6e7a2ecf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment