Where to find source code of pfSense DHCP and DHCPv6 cleints
-
Hello
I'm interested in the source code for the IPv4 and IPv6 DHCP clients (dhclient, dhcp6c) as used in pfSense for working on some changes.
Where can I obtain the source code for both?
Thanks
-
freebsd.. There was an issue a few years in the dhcp client that set a low ttl I had filed a bug with freebsd to get it fixed.. That is where I got it from.. Pfsense is run on freebsd, so it would use the dhcp client in the version of freebsd its currently on which is FreeBSD 11.1-RELEASE-p6 for 2.4.2 p1
for dhclient believe its here
https://github.com/freebsd/freebsd/tree/master/sbin/dhclient -
The IPv6 DHCP client is most likely from FreeBSD ports:
https://www.freshports.org/net/dhcp6/
https://svnweb.freebsd.org/ports/head/net/dhcp6/
Link is to FreeBSD SVN repo but Github has the same files.
-
https://github.com/hrs-allbsd/wide-dhcpv6/tree/freebsd
I see
Many thanks!