aboutgitcodebugslistschat
path: root/ndp.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-09-07 11:19:57 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-09-09 15:40:04 +0200
commitec2b58ea4dc45079470efedaa632da25031d5adc (patch)
tree8590159cb26a4db0fc943d657093f6e8bbbe6345 /ndp.c
parent8e9333616ac3dd37dfb2261f08dd0b16018d0686 (diff)
downloadpasst-ec2b58ea4dc45079470efedaa632da25031d5adc.tar
passt-ec2b58ea4dc45079470efedaa632da25031d5adc.tar.gz
passt-ec2b58ea4dc45079470efedaa632da25031d5adc.tar.bz2
passt-ec2b58ea4dc45079470efedaa632da25031d5adc.tar.lz
passt-ec2b58ea4dc45079470efedaa632da25031d5adc.tar.xz
passt-ec2b58ea4dc45079470efedaa632da25031d5adc.tar.zst
passt-ec2b58ea4dc45079470efedaa632da25031d5adc.zip
conf, dhcp, ndp: Fix message about default MTU, make NDP consistent
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'ndp.c')
-rw-r--r--ndp.c2
1 files changed, 1 insertions, 1 deletions
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 */