summaryrefslogtreecommitdiffstats
path: root/etc/inc/util.inc
Commit message (Collapse)AuthorAgeFilesLines
* Just check the file_exists let pkill decide if its a vaild file or not.Ermal2012-12-281-1/+1
|
* code comment typo ('log_error' should have been 'log_auth')PiBa-NL2012-11-181-1/+1
|
* Add refcount_read to util.incPhil Davis2012-11-151-0/+13
| | | Add refcount_read so other code can easily find out how many things have the file system mounted.
* Make a function to get the current theme and use it everywhere rather than ↵jim-p2012-11-021-0/+23
| | | | duplicating code or missing functions. (Fixes forced themes using the wrong theme for login screen)
* Allow/deny access to DHCP by partial MAC matching.jim-p2012-09-131-2/+3
|
* Unlock on returnErmal2012-07-311-0/+2
|
* There is no need to remove the @ from function names. Also properly unlock ↵Ermal2012-07-311-27/+27
| | | | in case of exception. Size is constant and we know it no need for extra call to shmop. Put some more error checking just in case
* Make access to shared memory atomicPhil Davis2012-07-311-13/+30
| | | | Use lock and unlock to make sure that all incrementing and decrementing of the reference count in the shared memory section is atomic. This ensures that there are not unusual timing conditions that could see 2 callers trying to update the reference count at the same time, which could result in the count never returning to zero. If that happened, then the filesystems would never be restored to read-only. (this is really just relevant to nanobsd) (note that shmop_* calls in php do not do any locking themselves - callers must coordinate their own access to the shared memory section) I also made the number stored in the shared memory be an ordinary integer followed by null chars to pad out the rest of the shared memory section. This makes the numbers stored look normal, and ensures that there is no other rubbish left in memory after them to cause problems on reading.
* Fix negative testjim-p2012-07-301-2/+2
|
* Pad data when adding to refcount reference, to avoid some oddities with how ↵jim-p2012-07-301-2/+2
| | | | php handles such data. http://forum.pfsense.org/index.php/topic,51188.msg278141.html#msg278141
* Fix get_staticroutes() function to handle IPv6 subnets properlyr-duran2012-07-051-1/+3
|
* Do not directly print out a message when checking the interfaces, instead ↵Erik Fonnesbeck2012-07-021-2/+8
| | | | saving the list to use later. Display this list before the interface mismatch message. Fixes #2468 and fixes #2531
* Catch libraries from subdirectories of PBI lib dirs toojim-p2012-06-241-1/+1
|
* Setup library paths to include /usr/pbi/*/lib as a last resort to make sure ↵jim-p2012-06-231-0/+9
| | | | things can find libraries. We may eventually replace this with a better method as this can lead to conflicts, but for now it will allow packages to find their proper libraries.
* Make mac_format aware of cpzone but also friendly to previous code!Ermal2012-06-111-2/+2
|
* Revert "Make mac_format aware of multiple Captiveportal instances"Ermal2012-06-111-3/+2
| | | | This reverts commit 54df925b9ea447bdd10f88a886e2ef11d44c3059.
* Revert "Make sure mac_format is always defined"Ermal2012-06-111-1/+2
| | | | This reverts commit 56f9032170d3130c2066e5eebbe18b96398073ca.
* Make sure mac_format is always definedbcyrill2012-06-101-2/+1
|
* Make mac_format aware of multiple Captiveportal instancesbcyrill2012-06-091-2/+3
|
* Get rid of carpdev, it will never beErmal2012-06-071-1/+0
|
* Catch up with multiple events sending. Also do not blindly startup ↵Ermal2012-06-071-3/+16
| | | | check_reload_status check first
* Make lock files availble to all users for usage from php processErmal2012-06-061-1/+3
|
* Teach mwexec and mwexec_bg how to optionally clear signal masks, and use ↵jim-p2012-05-161-2/+17
| | | | that when launching ntp or ntpdate.
* cleanup: code for building arrays for autocompleted fieldsDarren Embry2012-05-101-0/+13
|
* prep work: function get_alias_list()Darren Embry2012-05-101-0/+33
| | | | | I wrote this function primarily to remove a lot of duplicate code that's there because of a lot of those autocomplete fields.
* Revert change to get_interface_list()'s $vfaces list for now. Interfaces in ↵Erik Fonnesbeck2012-04-221-3/+0
| | | | this list that are supposed to be listed on Interfaces: Assign need special logic on that page, which has not been added yet.
* Add message stating which interfaces are missing.Erik Fonnesbeck2012-04-201-0/+1
| | | | Suggestion from http://forum.pfsense.org/index.php/topic,48366.0.html
* Add some missing interface types in is_interface_mismatch() and ↵Erik Fonnesbeck2012-04-201-1/+4
| | | | get_interface_list()'s $vfaces. Fixes #2384
* Fix constant. LOG_ERROR should be LOG_ERRjim-p2012-04-121-1/+1
|
* Update etc/inc/util.incwhjvenyl2012-04-121-10/+4
|
* Add modified version of user https://github.com/bcyrill patch that requires ↵smos2012-04-121-1/+12
| | | | a IPv6 literal when used with a port.
* Revert "Also validate IPv6 literals."smos2012-04-121-3/+0
| | | | This reverts commit 21b586aa12ca35ccf54d4ddf66b0305e12e62a4d.
* Modify get_configured_ip_aliases_list to optionally return the full vip ↵Erik Fonnesbeck2012-04-111-2/+5
| | | | entry and use this information to get the subnet and not just the IP in filter_get_direct_networks_list.
* Also validate IPv6 literals.smos2012-04-111-0/+3
|
* Add alias support to static routes (needs some testing) Ticket #2239jim-p2012-04-111-0/+37
| | | | | | | | Conflicts: etc/inc/filter.inc etc/inc/util.inc usr/local/www/system_routes_edit.php
* use existing filter_expand_alias (well, via a wrapper) instead ofDarren Embry2012-04-051-11/+0
| | | | reinventing it
* Make vips vhid be unique per parent interface!Ermal2012-04-051-5/+5
|
* Load Balancer: allow port aliases in Pools and Virtual Servers. (PEV-394754)Darren Embry2012-04-051-0/+11
|
* load balancer: allow IPv4 subnets up to 64 addresses in Pools and Virtual ↵Darren Embry2012-04-051-0/+37
| | | | Servers (PEV-394754)
* Remove unused codeErmal2012-03-231-8/+6
|
* fix for: Spanning Tree interface priority options do not alter BridgeDarren Embry2012-03-211-0/+14
| | | | http://redmine.pfsense.org/issues/2261
* Use the latest functions from pfSense module for getting interface listErmal2012-03-081-3/+3
|
* Correct send_multiple_events to conform with new check_reload_status behaviourErmal2012-03-031-10/+3
|
* Fix gen_subnetv6_max(), used to display the end of available range in dhcp ↵Pierre POMES2012-02-261-43/+8
| | | | server ipv6
* While we're at it, allow hostnames for syslog servers, since that is also valid.jim-p2012-02-231-0/+10
|
* Allow users to enter a port number when adding a remote syslog server.jim-p2012-02-231-0/+12
|
* Select the newest of processes to make the command betterErmal2011-11-211-2/+2
|
* Combine is_subnet to check for both v4 and v6 subnetsWarren Baker2011-09-291-1/+12
|
* Add is_subnetv6 for checking of IPv6 subnetsWarren Baker2011-09-291-1/+18
|
* Implement correct gen_subnetv6_max function that you can throw random prefix ↵Seth Mos2011-08-251-21/+28
| | | | lengths in. Fixes Ticket #1725
OpenPOWER on IntegriCloud