pfSense Forum

Development/Documentation => Development => Topic started by: jtl on February 01, 2018, 01:51:03 am

Title: Where to find source code of pfSense DHCP and DHCPv6 cleints
Post by: jtl on February 01, 2018, 01:51:03 am
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
Title: Re: Where to find source code of pfSense DHCP and DHCPv6 cleints
Post by: johnpoz on February 01, 2018, 04:36:22 am
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

Title: Re: Where to find source code of pfSense DHCP and DHCPv6 cleints
Post by: kpa on February 01, 2018, 09:38:50 am
The IPv6 DHCP client is most likely from FreeBSD ports:

https://www.freshports.org/net/dhcp6/ (https://www.freshports.org/net/dhcp6/)

https://svnweb.freebsd.org/ports/head/net/dhcp6/ (https://svnweb.freebsd.org/ports/head/net/dhcp6/)

Link is to FreeBSD SVN repo but Github has the same files.
Title: Re: Where to find source code of pfSense DHCP and DHCPv6 cleints
Post by: jtl on February 01, 2018, 01:02:31 pm
https://github.com/hrs-allbsd/wide-dhcpv6/tree/freebsd

I see

Many thanks!