Netgate SG-1000 microFirewall

Author Topic: Where to find source code of pfSense DHCP and DHCPv6 cleints  (Read 135 times)

0 Members and 1 Guest are viewing this topic.

Offline jtl

  • Jr. Member
  • **
  • Posts: 41
  • Karma: +0/-0
    • View Profile
Where to find source code of pfSense DHCP and DHCPv6 cleints
« 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
pfSense 2.4.2 - virtualized with PCIe passthrough on whitebox - 150/150 FTTH

Online johnpoz

  • Hero Member
  • *****
  • Posts: 15124
  • Karma: +1412/-206
  • Not a pfSense employee, they cannot fire me...
    • View Profile
Re: Where to find source code of pfSense DHCP and DHCPv6 cleints
« Reply #1 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

- An intelligent man is sometimes forced to be drunk to spend time with his fools.
- Please don't PM me for personal help
- if you want to say thanks applaud or https://www.freebsdfoundation.org/donate/
1x SG-2440 2.4.2-RELEASE-p1 (work)
1x SG-4860 2.4.2-RELEASE-p1 (home)

Offline kpa

  • Hero Member
  • *****
  • Posts: 1230
  • Karma: +138/-6
    • View Profile
Re: Where to find source code of pfSense DHCP and DHCPv6 cleints
« Reply #2 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://svnweb.freebsd.org/ports/head/net/dhcp6/

Link is to FreeBSD SVN repo but Github has the same files.

Offline jtl

  • Jr. Member
  • **
  • Posts: 41
  • Karma: +0/-0
    • View Profile
pfSense 2.4.2 - virtualized with PCIe passthrough on whitebox - 150/150 FTTH