mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 08:37:22 +00:00
Use correct endianess when storing the network protocol type in a received
ethernet packet
This commit is contained in:
parent
1cc83677a3
commit
900ff4aa27
@ -764,7 +764,7 @@ static int bnep_handle_ethernet_packet(bnep_channel_t *channel, bd_addr_t addr_d
|
||||
pos += sizeof(bd_addr_t);
|
||||
BD_ADDR_COPY(ethernet_packet + pos, addr_source);
|
||||
pos += sizeof(bd_addr_t);
|
||||
net_store_16(ethernet_packet, pos, 2);
|
||||
bt_store_16(ethernet_packet, pos, network_protocol_type);
|
||||
pos += 2;
|
||||
memcpy(ethernet_packet + pos, payload, size);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user