mirror of
https://passt.top/passt
synced 2025-06-06 16:06:19 +02:00
conf, dhcp, ndp: Fix message about default MTU, make NDP consistent
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
8e9333616a
commit
ec2b58ea4d
3 changed files with 16 additions and 4 deletions
2
ndp.c
2
ndp.c
|
@ -116,7 +116,7 @@ int ndp(struct ctx *c, struct ethhdr *eh, size_t len)
|
|||
memcpy(p, &c->addr6, 8); /* prefix */
|
||||
p += 16;
|
||||
|
||||
if (c->mtu) {
|
||||
if (c->mtu != -1) {
|
||||
*p++ = 5; /* type */
|
||||
*p++ = 1; /* length */
|
||||
p += 2; /* reserved */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue