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

    Editing core files

    Development
    3
    8
    4.6k
    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.
    • T
      thekod
      last edited by

      How should one build a package to update files that are actually a part of pfsense, for instance, some of the core php files, contained in /usr/local/www?  Should I make diffs, and submit them to the coreteam for addition to the cvs, or should I make a package that overwrites the files I want to change or what?

      1 Reply Last reply Reply Quote 0
      • S
        sullrich
        last edited by

        Depends on what kind of changes that you are speaking of.  Can you be more specific?

        1 Reply Last reply Reply Quote 0
        • T
          thekod
          last edited by

          as requested in a current bounty, i'd like to add an option on the system settings page to use pings to determine online status of dhcp leases, and add the code to actually do it…unless the core team thinks it would be better to set that option on a per lease basis, i can do that too. Either way, gotta edit core files.

          1 Reply Last reply Reply Quote 0
          • T
            thekod
            last edited by

            Is this just something that's not supposed to happen?

            1 Reply Last reply Reply Quote 0
            • S
              sullrich
              last edited by

              You are considering writing a custom daemon for this?  What are you trying to accomplish?

              1 Reply Last reply Reply Quote 0
              • T
                thekod
                last edited by

                I don't need to write a custom daemon, just change the command that's run to determine status of a dhcp lease, as requested in http://forum.pfsense.org/index.php/topic,12012.0.html.  I didn't even realize it was an issue until I got a managed switch, now I'm experiencing the same thing, devices that don't connect often drop out of the arp tables, therefore show up as offline.  I've got the code written and everything, I just want to know how to submit the edits!  :)

                1 Reply Last reply Reply Quote 0
                • E
                  eri--
                  last edited by

                  Yes arp entries will drop in ~5mins if no traffic comes from them.
                  I think you can create a package to just do this customization since to me since like not necessary feature to add in the base system.
                  (personal opinion though)

                  1 Reply Last reply Reply Quote 0
                  • S
                    sullrich
                    last edited by

                    I agree with Ermal.  What would be a better inclusion for the base code is to allow the default ARP setting to be changed from 5 minutes to something else.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.