1
0
Fork 0
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:
Stefano Brivio 2021-09-07 11:19:57 +02:00
parent 8e9333616a
commit ec2b58ea4d
3 changed files with 16 additions and 4 deletions

2
ndp.c
View file

@ -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 */