[Bug 956147] Review Request: wide-dhcpv6 - DHCPv6 Prefix Delegation client that works on PPP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Product: Fedora
https://bugzilla.redhat.com/show_bug.cgi?id=956147

--- Comment #12 from David Beveridge <dave@xxxxxxxxxxx> ---
root@localhost ~/rpmbuild/SPECS # cat
../SOURCES/wide-dhcpv6-0008-Make-sla-len-somewhat-automatic.patch 
--- wide-dhcpv6-20080615/prefixconf.c.orig    2013-05-14 22:26:46.433767395
+1000
+++ wide-dhcpv6-20080615/prefixconf.c    2013-05-14 23:17:49.229676947 +1000
@@ -451,6 +451,17 @@
     ifpfx->paddr.sin6_len = sizeof(struct sockaddr_in6);
 #endif
     ifpfx->paddr.sin6_addr = prefix->addr;
+
+    /* 
+         * dave (bevhost) thinks this should fix it rather than 
+         * generate the error below "invalid prefix length" 
+         * this way the sla-len can be left out of the config file 
+         * and calculated when the prefix is received
+         */
+    if (prefix->plen + pconf->ifid_len + pconf->sla_len > 128) {
+        pconf->sla_len = 128 - pconf->ifid_len - prefix->plen;
+    }
+
     ifpfx->plen = prefix->plen + pconf->sla_len;
     /*
      * XXX: our current implementation assumes ifid len is a multiple of 8

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=pbq6HkxsH8&a=cc_unsubscribe
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review





[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]