tests: net: socket: af_packet: fix TSN socket recv IP pkt
test_packet_sockets_dgram create ETH_P_TSN sockets but send and recv ETH_P_IP packet. Fix it by sending ETH_P_TSN packet. Signed-off-by: Fengming Ye <frank.ye@nxp.com>
This commit is contained in:
parent
68527f5506
commit
a3034d1802
1 changed files with 1 additions and 1 deletions
|
@ -328,7 +328,7 @@ ZTEST(socket_packet, test_packet_sockets_dgram)
|
|||
|
||||
memset(&dst, 0, sizeof(dst));
|
||||
dst.sll_family = AF_PACKET;
|
||||
dst.sll_protocol = htons(ETH_P_IP);
|
||||
dst.sll_protocol = htons(ETH_P_TSN);
|
||||
memcpy(dst.sll_addr, lladdr1, sizeof(lladdr1));
|
||||
|
||||
ret = zsock_sendto(sock2, data_to_send, sizeof(data_to_send), 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue