Bug 210933

Summary: net/dhcp6 ifid is not recognized as valid syntax in dhcp6c.conf
Product: Ports & Packages Reporter: lordsith49
Component: Individual Port(s)Assignee: Hiroki Sato <hrs>
Status: In Progress ---    
Severity: Affects Many People CC: KOT, apevnev, driesm, fixer, greg.brackley-freebsdbugzilla, hrs, marek, ms
Priority: --- Flags: driesm: maintainer-feedback? (hrs)
Version: Latest   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
dhcp6c.conf file none

Description lordsith49 2016-07-08 22:00:27 UTC
Created attachment 172261 [details]
dhcp6c.conf file

I believe ifid is supported in KAME DHCP6, or at least it is in the Linux version. Whenever I attempt to use it within a prefix-delegation I get the following error:

Jul  8 15:38:13 firewall dhcp6c[60585]: failed to decode base64 string
Jul  8 15:38:13 firewall dhcp6c[60585]: /usr/local/etc/dhcp6c.conf 29: syntax error
Jul  8 15:38:13 firewall dhcp6c[60585]: /usr/local/etc/dhcp6c.conf 29: fatal parse failure: exiting (1 errors)
Jul  8 15:38:13 firewall dhcp6c[60585]: failed to parse configuration file
Jul  8 15:38:13 firewall jonathan: /usr/local/etc/rc.d/dhcp6c: WARNING: failed to start dhcp6c

I've attached my config showing line 29 as the "ifid 1;" statement.
Comment 1 Hiroki Sato freebsd_committer freebsd_triage 2016-07-09 09:30:36 UTC
ifid option is supported only in a patched version which is used in Linux distributions, not in the original KAME DHCP6.  Do you want us to add this feature?
Comment 2 lordsith49 2016-07-11 00:09:38 UTC
I was browsing freshports.org recently and saw a January 4th commit to "Update ifid on interface restart, it may have changed" so I thought maybe it wasn't just a Linux patch.

Most of the help I found when I originally configured my DHCPv6 client was from Linux forums and blogs so it probably wouldn't hurt to have.  I'll defer to your judgement on the value of adding it.
Comment 3 Andrey Pevnev 2017-03-01 17:01:53 UTC
I'd like ifid support to be added since that way address won't change if I have to replace the NIC.
Comment 4 Dries Michiels freebsd_committer freebsd_triage 2018-03-06 14:24:29 UTC
Could this be implemented as an option for the port? I could try to tackle this if someone can tell me where I can find the patch files.
Comment 6 Dries Michiels freebsd_committer freebsd_triage 2019-07-13 22:04:37 UTC
Thanks! I reached out to the mailing list and there was a confirmation of hrs@ that he is working on an import for a base DHCPv6 client. I don't want to be inefficient and work on something thats possibly already being worked on. Thanks for the link though. I think we'll see it land before 13 RELEASE (possibly even sooner).