aboutgitcodebugslistschat
path: root/dhcpv6.c
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv6.c')
-rw-r--r--dhcpv6.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dhcpv6.c b/dhcpv6.c
index 6399c38..6e006dd 100644
--- a/dhcpv6.c
+++ b/dhcpv6.c
@@ -383,7 +383,7 @@ int dhcpv6(struct ctx *c, struct ethhdr *eh, size_t len)
mlen < sizeof(struct msg_hdr))
return -1;
- c->addr6_guest = ip6h->saddr;
+ c->addr6_ll_seen = ip6h->saddr;
mh = (struct msg_hdr *)(uh + 1);
mlen -= sizeof(struct msg_hdr);
@@ -483,6 +483,7 @@ int dhcpv6(struct ctx *c, struct ethhdr *eh, size_t len)
resp.hdr.xid = mh->xid;
tap_ip_send(c, &c->gw6, IPPROTO_UDP, (char *)&resp, n);
+ c->addr6_seen = c->addr6;
return 1;
}