Add is_dhcp_server_enabled() function which returns true or false if the dhcp server is enabled. This will start to remove code duplication.
Add get_interface_gateway()
MFC 12640The OUI 00:a0:8e belongs to Nokia so use a locally administered addresses instead.
see: http://www.mynetwatchman.com/pckidiot/chap04.htm
Correct spelling mistake
Ticket #1009
MFC make_dirs changes required by packages
Fix bridge support by adding the bridge item to the alias group
MFC enable_rrd_graphing()
MFC RRD cdrom changes
Do not spew booting items during reload_all_sync()
Correctly check if SpamD enablerrd is set.
stristr() may return > 1 (true)
Nuke a c/r if included.
Correctly enable / disable console lockout.
Ticket #920
MFC 11519Restore RRD files from tgz on boot. If this works on the first attempt I'm a code monkey. MFC: Soon, needs testing.
MFC later RRD changes since patch failed
MFC 11506Tweaked rra values for the databases so the graphs suck less. (especially the 14 days graph).
MFC 11470Don't force a rrd spamd.rrd create since not everyone has spamd installed. It correctly triggers when you have it installed though.
MFC 11444Fix crappy logic so it works on cdrom as well. We we're just lucky on embedded.
MFC 11438use -n so route won't try and resolve IPs
MFC 11429use route to figure out what interface an IP is on
Kill print lines (debugging) so bootup process looks "clean" again.
Verify connectivity for pfSense.com on firmware checks, too.
Correct path to $config['installedpackages']['spamdsettings']['config']['enablerrd']
MFC RRD fixes
Renice updaterrd.sh script to 20 to ensure that it does not step on any of the crucial other items.
Do not recreate spamd.rrd each time we are launched
Don't use !
Check that file exists, not !
Use spamd_gather_stats.php instead of spamd_gather.php
Sync RRD code with HEAD
Remove CDROM check from RRD graphing.
Turn off rrd on cdrom platform until:
Correctly probe for amount of bridged interfaces present in system
We're in 2006 now, toto
Add WAN to $iflist
Make sure $iflist is set
$iflist should contain an array of interfaces
Found-by: PHPEclipse
Remove unreachable code.
MFCs/PHP_SELF/SCRIPT_NAME/ - PHP_SELF == "" for some reason with lighty
Resolve pfsense.com before issuing a xmlrpc call, return false if it fails.
MFC traffic collector kill changes
Do not spam rrd status on bootup, it makes the bootup look out of place
We already reloaded, remove any reload indicators
We no longer run fast cgi on 64 meg machines, dont worry about shutting down.
Kill lighty under low memory situations.
Back out kill shell code. This is not the solution to the problem at hand.
Wack the terminal good after reload interfaces. This is a ugly hack but does cleanup all the known bugs in the console after a reload_interfaces() call
use 5 for rc.banner
Reset rc.banner instances, too
More trial and error trying to kill this stupid console respawn bug
Full path to kill
Kull -HUP 0 after reloading all to trigger console reload
MFC 10850Well, Doh!. Sending 15 ping packets in the script makes the function 15 slower.
Backout last commit
15 -> 5
If user has specified a new gateway as a hidden variable <system><use_rrd_gateway> then use it instead. Not everyones next hop gateway actually goes out a wan interface. In my case all my "real internet links" are 2 hops away.
varrun_path -> vardb_path
Switch RRD graphs to /var/db which is not blown away every bootup.
s/cron//
MFC Seths most excellent RRD graphing items
If /var/log/dmesg.boot is unavailable, then use dmesg -a
Core dumps are bad, mmmkay?
Reload webgui in low memory situations with check_reload_status
Avoid out of memory exhaustion on devices with less than 65 megs by temporarily unloading webConfigurator during reload operations.
Do not down and delete lan and wan interfaces, they are mandatory and cannot be deleted.
This may help with pfSense going offline for a brief time during reload operations.
Woops, correct enable auto login
Correctly enable / disable auto login for console ONLY
MFC 10300Handle both communication and XMLRPC related errors.Ticket #855
Revert lat commit
do not delete interface
Correct enable polling per interface
Do not turn on polling here, its the wrong place
Reverse arguments
Ticket #835
If the check for 3 octets failed, check the 1st two octets.
This is a complete hack but since we are so close to release we don't have much room to play here.
Do not alter loopback interface.
Woops, call sysctl!
Temporarily enable polling using kern.polling.enable=1
Remove uniqueArray() which returns a unique array (removes duplicates)
Use array_unique() which is built into php instead.
Add uniqueArray() which returns a unique array (removes duplicates)
Mount RW
MFC 9548Shift serial port toggle routine to pfsense-utils.inc. Call this function after configuration import to setup needed bits on system for serial console if need be. Shift console locjout routine to pfsense-utils.inc. Call this function from serial port code to setup if auto login / console lockout is enabled after config restore
Remove cursor: hand, that's a pre-IE6-ism that should be shot
MFC 9468Change cursor to hand when over tabs (since they're links)
Revert to 1.377
back out last commit
Add back safe_mkdir!?
Revert to $Id: pkg-utils.inc,v 1.64.2.6 2006/01/15 03:33:19 sullrich Exp $
Remove unused function
Correct warnings and errors found eclipse
Fix bugs found by eclipse