1. 11 Jan, 2015 3 commits
    • Phil Davis's avatar
      Fix console set interface IP address · 83d40310
      Phil Davis authored
      Problem as per forum https://forum.pfsense.org/index.php?topic=83651.0
      The problem comes whenever services_dhcpd_configure is called - the global $config gets reset from the actual current config, and any pending changes in the current process are lost.
      It was introduced by commit 86ce2df
      in which services_dhcpdv4_configure() does:
      
      require_once('pkg-utils.inc')
      
      and pkg-utils.inc does various stuff like:
      
      if(file_exists("/cf/conf/use_xmlreader"))
      require_once("xmlreader.inc");
      else
      require_once("xmlparse.inc");
      
      which seems to cause a reset of the $config variable, thus losing the pending changes the user has entered at the console.
      
      The top-level code in rc.initial.setlanip really does not need to (and should not) implement any changes along the way - it should collect all the answers from the user, then write_config and then make all the necessary calls to routines to implement the changes on the running system. This fixes it - defer any calls to services_dhcpd_configure() until after all questions are answered and write_config has happened.
      83d40310
    • Phil Davis's avatar
      Set interface address from consol tidy output · d6516133
      Phil Davis authored
      While trying to see why this is not working for me (forum https://forum.pfsense.org/index.php?topic=83651.0 ) I have fixed some little things:
      1) Get the new-lines right so the output of the restarting looks neat
      2) Fix a comparison that had just a single equal sign - it did not break anything real because the subsequent code was just text output to the console. Now that text output does take notice of the correctly-evaluated condition, and $interface is not overwritten.
      
      The issue in the forum post, about the interface IP address config not actually changing, is still the case, at least for me.
      
      IMO these little tidy ups might as well be committed. They make this code better!
      d6516133
    • Phil Davis's avatar
      Allow blank source port in diag_testport · c9fc7a45
      Phil Davis authored
      Reported by forum https://forum.pfsense.org/index.php?topic=86146.0
      Also, if there are input validation errors, save the user-entered data and re-display it, making it easier for the user to just correct the data in error and press Test again. It was blanking out all the entered data.
      c9fc7a45
  2. 09 Jan, 2015 6 commits
  3. 08 Jan, 2015 2 commits
  4. 07 Jan, 2015 2 commits
  5. 06 Jan, 2015 1 commit
  6. 04 Jan, 2015 1 commit
  7. 02 Jan, 2015 8 commits
  8. 01 Jan, 2015 4 commits
  9. 31 Dec, 2014 5 commits
  10. 30 Dec, 2014 1 commit
  11. 29 Dec, 2014 7 commits