kernel/network: Reply with a ICMPv6 neighbor advertisment

Send a neighbor advertisment when we have received a neighbor
solicitation.

Change-Id: Ie552a8e81d3f06b2dbfaab83ad5a30bac8962224
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6037
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
This commit is contained in:
Christof Meerwald 2023-01-26 19:24:31 +00:00 committed by Adrien Destugues
parent 62ee13a983
commit 88864ff1f9

View File

@ -701,7 +701,7 @@ ndp_receive_solicitation(net_buffer* buffer, bool* reuseBuffer)
// send a reply (by reusing the buffer we got)
gBufferModule->trim(buffer, sizeof(neighbor_discovery_header));
header.icmp6_type = ND_NEIGHBOR_SOLICIT;
header.icmp6_type = ND_NEIGHBOR_ADVERT;
header.icmp6_code = 0;
header.icmp6_checksum = 0;
header.flags = ND_NA_FLAG_SOLICITED;