From ec2b58ea4dc45079470efedaa632da25031d5adc Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Tue, 7 Sep 2021 11:19:57 +0200 Subject: conf, dhcp, ndp: Fix message about default MTU, make NDP consistent Signed-off-by: Stefano Brivio --- ndp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ndp.c') diff --git a/ndp.c b/ndp.c index 74445ad..a1d76c1 100644 --- a/ndp.c +++ b/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 */ -- cgit v1.2.3