summaryrefslogtreecommitdiffstats
path: root/etc/inc/util.inc
Commit message (Collapse)AuthorAgeFilesLines
* Protect from strange situations on bootup by testing for is_array(). Do not ↵Ermal2010-11-021-11/+17
| | | | add anymore the 127.0.0.2 route its not needed anymore. Also during bootup bring up all interfaces so the assignment process can deal with them(Possibly should be done in another code flow!).
* Make isvalidpid() know about pidfile the same as the other *pid functions ↵Ermal2010-10-291-5/+4
| | | | do.(consistency)
* Make safe_mkdir() create directories recursivelyRenato Botelho2010-09-221-1/+1
|
* If we fail to send an event to check_reload_status consider its not running ↵Ermal2010-09-221-7/+13
| | | | and try restarting it.
* Return list with WAN and LAN interfaces in the configured order rather than ↵Erik Fonnesbeck2010-09-151-47/+14
| | | | giving special treatment, as is already done with the OPTx interfaces.
* Revert "Reorder the way this list (get_configured_interface_list) is ↵Erik Fonnesbeck2010-09-151-7/+9
| | | | | | generated to make it more beautiful." This reverts commit 144d0e793de61366340758b28f169c3afeeba922.
* Reorder the way this list (get_configured_interface_list) is generated to ↵gnhb2010-09-161-9/+7
| | | | | | make it more beautiful. I know you guys said don't bother, but it's just cosmetic, and it took 10 seconds.
* Do stricter validation of host names and domain names.Erik Fonnesbeck2010-09-141-2/+2
|
* Use the new events mechanisms to dispatch events.Ermal2010-09-071-3/+31
|
* Use exec() for is_process_running since system() displays command output(not ↵Ermal2010-08-311-1/+2
| | | | sure why). Also handle captiveportal specially and use proper function to start/stop it.
* Ticket #485. Correct code and use pkill/pgrep to match or kill process. ↵Ermal2010-08-311-12/+6
| | | | Since these utilities know how to handle pidfiles and exact matches on process names.
* Add l2tp where missing. Also add l2tp and igb to altq capable interfaces.Ermal2010-08-161-2/+2
|
* Add sysctl functions that support getting/setting multiple values in a ↵Erik Fonnesbeck2010-08-041-0/+61
| | | | single call.
* use more efficient is_macaddr from bblacey on forumChris Buechler2010-07-271-16/+2
|
* This code returned the size in kilobytes, while the part usually used ↵Erik Fonnesbeck2010-07-011-1/+2
| | | | returns megabytes.
* Be more strict when doing checks for empty values.Ermal2010-06-221-2/+2
|
* Add array_merge_recursive_unique which was called in xmlrpc.php but did not ↵jim-p2010-06-111-0/+51
| | | | yet exist. Fixes #645
* Do not show ipfw0 for assignment.Ermal2010-05-251-1/+2
|
* Various fixes to usage of ip2long, long2ip, and negated subnet masks, mostly ↵Erik Fonnesbeck2010-05-201-8/+18
| | | | affecting 64-bit. Ticket #459
* Ticket #544. Restore locking, seems w+ migh already lock the file sometimes. ↵Ermal2010-05-131-5/+5
| | | | While there improve the locking to a read/write locking schema. Make the default locking a read only lock and if explicitly specified a write locking can be specified through LOCK_EX optional parameter to lock(). During config manipulation do the filesystem mounting in rw, if needed, before doing any locking to avoid possible problems and also to be consistent through out the code on the method used. Also update calls to config to lock exclusively where required.
* Ensure the URL table file is not empty at this step.jim-p2010-05-121-1/+1
|
* Add a new alias type, urltable, which downloads a file of IP/CIDR addresses ↵jim-p2010-04-211-0/+16
| | | | and loads them into a pf persist table instead of importing the addresses directly into a traditional alias. This allows for using huge tables of addresses that would otherwise break the GUI and/or fail to load into pf. Part of ticket #512
* Remove bogus char. Spotted-by:gnoahb@Ermal2010-03-291-1/+1
|
* Restore tun interface because it is still used by openvpn.Ermal2010-03-291-1/+1
|
* Changes to make PPP work again. mpd5 fails to establish a ppp link withoutgnhb2010-03-291-1/+1
| | | | | | | | | | | | | | *some* username and password, so defaults are set if user enters nothing. Removed interface_ppp_configure call from interfaces_ppp_edit.php. It was useless there with the new structure, and it caused all PPP links to attempt to connect when user presses "Save" even before they are assigned to LAN/WAN, etc. Also, fix up pfsense-utils.inc and status_interfaces.php to display more info on status_interfaces.php. Changed util.inc to allow cua* interfaces to be recognized as real interfaces as pfSense got "interface mismatch" at boot and forced user to reassign. Maybe someone else has a better way to do this.
* Use alias style when creating aliases in wizards.Ermal2010-03-191-1/+0
|
* Ticket #417. Fix installation on embedded by using a refcount system for the ↵Ermal2010-03-171-1/+5
| | | | mount command.
* Generalize.Ermal2010-03-171-3/+3
|
* Use procatat instead of ps as the latter always prints a header, alsothompsa2010-03-121-1/+1
| | | | use full paths.
* '\b' is not the word boundary on BSD, its actually '[[:<:]]' and '[[:>:]]',thompsa2010-03-121-1/+1
| | | | change these functions to use better syntax and not grep at all.
* Return the data after unreference, it might be needed.Ermal Luçi2010-03-091-0/+2
|
* Use shmop module to implement reference count calls.Ermal Luçi2010-03-081-0/+29
|
* Adding support for using IP ranges aliases. If you input an IP Range such as ↵jim-p2010-03-071-0/+121
| | | | 192.168.0.1-192.168.0.254, it will instead turn that into a number of CIDR networks which will completely fill the range.
* Till the flock issue is fixed open the races doors, place your bets please!Ermal Luçi2010-03-051-3/+3
|
* Do not show pppoe/pptp/l2tp interfaces for assignment.Ermal Luçi2010-03-051-0/+3
|
* Change method of displaying wireless clone interfaces on the assignment page.Erik Fonnesbeck2010-02-231-3/+4
|
* Move most of the code for dealing with wireless clone interface names to ↵Erik Fonnesbeck2010-02-231-10/+4
| | | | separate functions.
* Missing a part of the last change. Also use bssid for the first wireless clone.Erik Fonnesbeck2010-02-131-1/+1
|
* For now, don't count any wireless clones as mismatches unless the base ↵Erik Fonnesbeck2010-02-121-4/+10
| | | | interface doesn't exist.
* Allow secondary wireless clones in interface list.Erik Fonnesbeck2010-02-121-1/+1
|
* Ticket #309. Correctly fix the problems of intermediate config lost because ↵Ermal Luçi2010-02-011-0/+8
| | | | of inclusion of config.inc. This might have speed impacts to be measured.
* Ticket #315. Do not show the cloned wireless devices for assignment.Ermal Luçi2010-01-291-1/+1
|
* if gzsig is missing, return error verifying signature rather than invalid ↵Chris Buechler2010-01-131-1/+1
| | | | signature.
* Resolves #279. Do not show vlans as parent interfaces for other vlans.Ermal Luçi2010-01-121-2/+3
|
* fix typoChris Buechler2010-01-031-2/+2
|
* Restore interface list for vlan interfaces.Seth Mos2010-01-021-3/+2
|
* Fix var names/Ermal Luçi2009-12-301-1/+1
|
* Ticket #261 Do not consider ports as hostnames. This changes the is_port ↵Ermal Luçi2009-12-301-8/+10
| | | | function to consider ':'(ranges) as ports. This seems a previous feature i do not agree with much, but users decide right?!
* Replace some occurrence of /tmp with the propper global variable in attempt ↵Ermal Luçi2009-12-281-2/+4
| | | | to minimize the search for what changes /tmp permissions.
* remove notice that unnecessarily appears on every clean installChris Buechler2009-12-261-1/+0
|
OpenPOWER on IntegriCloud