Bug 210933 - net/dhcp6 ifid is not recognized as valid syntax in dhcp6c.conf
Summary: net/dhcp6 ifid is not recognized as valid syntax in dhcp6c.conf
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: Hiroki Sato
Depends on:
Reported: 2016-07-08 22:00 UTC by lordsith49
Modified: 2020-03-21 07:54 UTC (History)
7 users (show)

See Also:
driesm: maintainer-feedback? (hrs)

dhcp6c.conf file (862 bytes, text/plain)
2016-07-08 22:00 UTC, lordsith49
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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 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 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 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).