Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Function listags() in xmlparse.inc and xmlreader.inc are different

    Scheduled Pinned Locked Moved Development
    2 Posts 2 Posters 1.6k 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.
    • A
      andrewinhawaii
      last edited by

      I'm parsing my way through the code base and I have noticed a few things that might require some clean up.  One of them is the listtags() function that appears in both /etc/inc/xmlparse.inc and /etc/inc/xmlreader.inc.  It appears that the list of array names is different between the two versions of this function (eg. allowedhostname, build_port_path).  Perhaps it would be best to consolidate the two functions into one, and move it /etc/inc/globals.inc or /etc/inc/util.inc?

      Another potential for clean up appears to be the incomplete move from "/cf/conf/config.xml" to {$g['conf_path']}/config.xml (eg. /etc/inc/config.inc and /etc/inc/config.lib.inc).  Or even "/conf/config.xml" still in /usr/local/www/status.php and /sbin/dhclient-script which appear to be the reason for the symbolic link /conf -> /cf/conf. 

      Of course, I may be barking up the wrong tree and if so, I'm sorry.  I hope to help out with the code even though my specialty is embedded firmware and drivers.

      Andrew

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

        Those surely need synchronization.
        Though its a more cleanup that needs to be done.
        There really is no reason to use so many tags for the same thing and just need to unify those tags to just one 'item'.

        But surely someone needs to do the heavy work and upgrade code behind.

        The others are leftovers missed from devs. Its better to report this issues through redmine.pfsense.org.

        1 Reply Last reply
        Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
        Privacy Policy · Cookie Policy