]> git.ipfire.org Git - people/ms/dnsmasq.git/blobdiff - src/option.c
Allow router advertisements to have the "off-link" bit set.
[people/ms/dnsmasq.git] / src / option.c
index c7add88de7ac8a1f77667edcc27182b2381f6e0c..f99c3f59e9d37ba9eb7584df3ca5379bc62c173e 100644 (file)
@@ -2699,6 +2699,8 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
                  new->flags |= CONTEXT_RA_ROUTER | CONTEXT_RA;
                else if (strcmp(a[leasepos], "ra-stateless") == 0)
                  new->flags |= CONTEXT_RA_STATELESS | CONTEXT_DHCP | CONTEXT_RA;
+               else if (strcmp(a[leasepos], "off-link") == 0)
+                 new->flags |= CONTEXT_RA_OFF_LINK;
                else if (leasepos == 1 && inet_pton(AF_INET6, a[leasepos], &new->end6))
                  new->flags |= CONTEXT_DHCP; 
                else if (strstr(a[leasepos], "constructor:") == a[leasepos])