mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 13:20:39 +00:00
fix error in ipv4 llmnr dns data
This commit is contained in:
parent
e527a5be3f
commit
6bcbafa869
@ -456,7 +456,7 @@ static void send_llmnr_request_ipv4(void){
|
||||
// udp packet
|
||||
net_store_16(udp_header, 0, 5355); // source port
|
||||
net_store_16(udp_header, 2, 5355); // destination port
|
||||
net_store_16(udp_header, 4, sizeof(udp_header) + sizeof(llmnr_packet));
|
||||
net_store_16(udp_header, 4, sizeof(udp_header) + sizeof(llmnr_packet) + sizeof(dns_data));
|
||||
net_store_16(udp_header, 6, 0); // no checksum
|
||||
memcpy(&network_buffer[pos], udp_header, sizeof(udp_header));
|
||||
pos += sizeof(udp_header);
|
||||
|
Loading…
x
Reference in New Issue
Block a user