Your message dated Sat, 03 Nov 2018 09:01:53 +0000
with message-id <[email protected]>
and subject line Bug#911191: fixed in wide-dhcpv6 20080615-22
has caused the Debian Bug report #911191,
regarding wide-dhcpv6-client: patch adding support for a random interface id
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
911191: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911191
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: wide-dhcpv6-client
Version: 20080615-21
Severity: wishlist
Tags: patch, ipv6

Please find attached a patch that adds a new feature to
wide-dhcpv6-client, namely an option ("ifid-random") in the
prefix-interface section of dhcp6c.conf to generate a random interface
id on startup. This is useful if you wish to have the final 64 bits of
your IPv6 address change from time to time - a sort of very rough
equivalent of IPv6 Privacy Extensions. If you do not add "ifid-random"
to the config file, then nothing about the client's current behaviour
changes.

Note that if your prefix-interface section has both the current "ifid
X" option (where X is whatever number you want to manually assign as
your interface id) and the new "ifid-random" option, then the
interface id is randomized and "ifid X" is ignored.

Thanks,
Christopher Martin
--- a/cfparse.y
+++ b/cfparse.y
@@ -104,7 +104,7 @@
 
 %token INTERFACE IFNAME
 %token PROFILE PROFILENAME
-%token PREFIX_INTERFACE SLA_ID SLA_LEN IFID DUID_ID
+%token PREFIX_INTERFACE SLA_ID SLA_LEN IFID IFID_RAND DUID_ID
 %token ID_ASSOC IA_PD IAID IA_NA
 %token ADDRESS
 %token REQUEST SEND ALLOW PREFERENCE
@@ -1064,6 +1064,13 @@
 			l->num = (u_int64_t)$2;
 			$$ = l;
 		}
+	|	IFID_RAND EOS
+		{
+			struct cf_list *l;
+
+			MAKE_CFLIST(l, IFPARAM_IFID_RAND, NULL, NULL);
+			$$ = l;
+		}
 	;
 
 ianaconf_list:
--- a/cftoken.l
+++ b/cftoken.l
@@ -244,6 +244,7 @@
 <S_CNF>sla-id { DECHO; return (SLA_ID); }
 <S_CNF>sla-len { DECHO; return (SLA_LEN); }
 <S_CNF>ifid { DECHO; return (IFID); }
+<S_CNF>ifid-random { DECHO; return (IFID_RAND); }
 
 	/* duration */
 <S_CNF>infinity { DECHO; return (INFINITY); }
--- a/config.c
+++ b/config.c
@@ -521,6 +521,15 @@
 			}
 			break;
 		case IFPARAM_IFID:
+			if (use_default_ifid) {
+				for (i = sizeof(pif->ifid) - 1; i >= 0; i--)
+					pif->ifid[i] = (cfl->num >> 8*(sizeof(pif->ifid) - 1 - i)) & 0xff;
+				use_default_ifid = 0;
+			}
+			break;
+		case IFPARAM_IFID_RAND:
+			for (i = 0; i < pif->ifid_len ; i++)
+				cfl->num = cfl->num*2 + rand()%2;
 			for (i = sizeof(pif->ifid) -1; i >= 0; i--)
 				pif->ifid[i] = (cfl->num >> 8*(sizeof(pif->ifid) - 1 - i)) & 0xff;
 			use_default_ifid = 0;
--- a/config.h
+++ b/config.h
@@ -266,7 +266,7 @@
        DECL_PREFIX, DECL_PREFERENCE, DECL_SCRIPT, DECL_DELAYEDKEY,
        DECL_ADDRESS,
        DECL_RANGE, DECL_ADDRESSPOOL,
-       IFPARAM_SLA_ID, IFPARAM_SLA_LEN, IFPARAM_IFID,
+       IFPARAM_SLA_ID, IFPARAM_SLA_LEN, IFPARAM_IFID, IFPARAM_IFID_RAND,
        DHCPOPT_RAPID_COMMIT, DHCPOPT_AUTHINFO,
        DHCPOPT_DNS, DHCPOPT_DNSNAME,
        DHCPOPT_IA_PD, DHCPOPT_IA_NA, DHCPOPT_NTP,
--- a/dhcp6c.conf.5
+++ b/dhcp6c.conf.5
@@ -453,6 +453,15 @@
 prefix and the sla-id to form a complete interface address.  The
 default is to use the EUI-64 address of the
 .Ar interface .
+.It Xo
+.Ic ifid-random ;
+.Xc
+This statement instructs the client to generate a completely random
+interface id. This will override the
+.Ic ifid
+statement, if present. The resulting random interface id will be combined
+with the delegated prefix and the sla-id to form a complete interface
+address.
 .El
 .El
 .\"

--- End Message ---
--- Begin Message ---
Source: wide-dhcpv6
Source-Version: 20080615-22

We believe that the bug you reported is fixed in the latest version of
wide-dhcpv6, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Roger Shimizu <[email protected]> (supplier of updated wide-dhcpv6 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 03 Nov 2018 17:26:10 +0900
Source: wide-dhcpv6
Binary: wide-dhcpv6-server wide-dhcpv6-client wide-dhcpv6-client-udeb 
wide-dhcpv6-relay
Architecture: source
Version: 20080615-22
Distribution: unstable
Urgency: medium
Maintainer: Roger Shimizu <[email protected]>
Changed-By: Roger Shimizu <[email protected]>
Description:
 wide-dhcpv6-client - DHCPv6 client for automatic IPv6 hosts configuration
 wide-dhcpv6-client-udeb - DHCPv6 client for automatic IPv6 hosts configuration 
(udeb)
 wide-dhcpv6-relay - DHCPv6 relay for automatic IPv6 hosts configuration
 wide-dhcpv6-server - DHCPv6 server for automatic IPv6 hosts configuration
Closes: 905740 911191
Changes:
 wide-dhcpv6 (20080615-22) unstable; urgency=medium
 .
   [ Helmut Grohne ]
   * Fix FTCBFS: (Closes: #905740)
     - Fix build/host confusion introduced in #893988.
     - Let dh_auto_configure pass --host to ./configure.
 .
   [ Roger Shimizu ]
   * debian/patches:
     - Refresh 0017 patch.
     - Add patch to support for a random interface id.
       Thanks to Christopher Martin (Closes: #911191).
Checksums-Sha1:
 9a0d13ac91f65d8a06d0ca00f882f512f2af8e3e 2189 wide-dhcpv6_20080615-22.dsc
 96b8a3383e6e80aedfce0a6bf96a642b63fcaa17 67224 
wide-dhcpv6_20080615-22.debian.tar.xz
 bd53de0426193bfc1753bf8087ad4c33319eeedb 5894 
wide-dhcpv6_20080615-22_source.buildinfo
Checksums-Sha256:
 b35fb49e202e3eb56b2548dc91859412c4132d7cf01c9d8851b3e397a859669c 2189 
wide-dhcpv6_20080615-22.dsc
 ee6f8e0060c71aadda444132768f8c4dfab5fa7993f35faffbb25bd31677610d 67224 
wide-dhcpv6_20080615-22.debian.tar.xz
 265fcd761f560796ecd7cbb43f4d8c05f8f5efb49dc86244fd06437261733430 5894 
wide-dhcpv6_20080615-22_source.buildinfo
Files:
 f7941637fbc92301ed6c3d28ec3b969f 2189 net optional wide-dhcpv6_20080615-22.dsc
 5e40a641ff20c8c0aceea269c1f1921e 67224 net optional 
wide-dhcpv6_20080615-22.debian.tar.xz
 7fa9f07fc72e7bb09c1935216d2e2301 5894 net optional 
wide-dhcpv6_20080615-22_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJLBAEBCgA1FiEECjKtvoA5m+cWOFnspHhrDacDNKgFAlvdXJQXHHJvZ2Vyc2hp
bWl6dUBnbWFpbC5jb20ACgkQpHhrDacDNKhmoQ/8CnT3mGoy/8Zqy6THMQsBXzV/
hSkMnoZzAVdL6qz2u6RI+6HbaKFqk7PVWvTtXevmW2ABcT6dcwbxLcLoV+POnO/s
vZmAX/KZHF//Kj1T/mUd86itfMp/7PUv8ykJ6WmCsdbEALZTUMqha15UvFkclehb
u+C/r7RGVj4eSHBN2lUXOWOxZchBljewcmVVIpdeJV0/v8tBAAcGMrLpblw7TxOi
3Nbx0mo1pKmwkVeYrgLAsxqWNEcTlFfyXE42dbUgOIE6dh9kxYytYA+DhYisnWOW
SUUpdrC3XPX98gQesfptWrLgmS2dBoWh6n3feeyGLoGlDUHafFdPAnh4EcLC8HP2
c8roRNAbBBvACTnTz4ZIjZBUfMx582YrelClEPD1hLeYddyPkYZpYrAZ81NvutfO
mz/ezf3zRh2CP9UO7uZ69aMxrmAL+WsMoUoTpHn8PtPgJfvNYzhtVb6sBAJkw6Xc
pRqlQsV15FvmSOdTqR0GYU+8HIJHadf7Tc8R0df3zlfobbCYl7xNX4bhs12saqVF
LdRNXr4H0ezcbyBiFmVBuh82uH2+1frtuB/DSjxKN6YAhhcrJ2ycBFvG2EfNU7U9
wF9JQ8BOCDvXmOEHGYCgRxh7AsKbmKL1S/hwXvyJ3ZW/WTHam+BvBpDwFcyXZR5D
0q7SrfXQ6GIJKt2sESs=
=h14o
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to