• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Where to find source code of pfSense DHCP and DHCPv6 cleints

Scheduled Pinned Locked Moved Development
4 Posts 3 Posters 973 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    jtl
    last edited by Feb 1, 2018, 7:51 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 FTTP

    1 Reply Last reply Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator
      last edited by Feb 1, 2018, 10:36 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
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.7.2, 24.11

      1 Reply Last reply Reply Quote 0
      • K
        kpa
        last edited by Feb 1, 2018, 3:38 PM

        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.

        1 Reply Last reply Reply Quote 0
        • J
          jtl
          last edited by Feb 1, 2018, 7:02 PM

          https://github.com/hrs-allbsd/wide-dhcpv6/tree/freebsd

          I see

          Many thanks!

          pfSense 2.4.2 - virtualized with PCIe passthrough on whitebox - 150/150 FTTP

          1 Reply Last reply Reply Quote 0
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received