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

      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
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        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

          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

            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
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.