summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/util.inc
Commit message (Collapse)AuthorAgeFilesLines
* Refactor get_configured_interface_list remove unused parameterPhil Davis2017-04-161-4/+1
|
* Refactor get_configured_interface_list_by_realif remove unused parameterPhil Davis2017-04-161-4/+1
|
* Refactor get_configured_interface_with_descr remove unused parameterPhil Davis2017-04-161-4/+1
|
* Merge pull request #3685 from phil-davis/sort-if-namesjim-p2017-04-031-3/+6
|\
| * Add user option to sort interface namesPhil Davis2017-03-301-3/+6
| |
* | Merge pull request #3635 from doktornotor/patch-24jim-p2017-04-031-1/+1
|\ \
| * | Add QinQ interfaces to the list of interfaces not to check (Bug #4669)doktornotor2017-03-101-1/+1
| | |
* | | Merge pull request #3614 from doktornotor/patch-16jim-p2017-04-031-7/+0
|\ \ \ | |_|/ |/| |
| * | Remove dummy config_lock() and config_unlock() functionsdoktornotor2017-03-051-7/+0
| |/ | | | | Been no-op for ages (https://github.com/pfsense/pfsense/commit/0027de0a544438f146cfc94f005fd6f4ba9f94d7).
* | Refactor is_port_or functionsPhil Davis2017-03-271-6/+9
| |
* | Add underscores to is_port* function namesPhil Davis2017-03-271-5/+5
| |
* | Provide functions for checking port range alias combinationsPhil Davis2017-03-261-1/+11
| |
* | Merge pull request #3642 from phil-davis/icmp-type-skip-redmine-7372Steve Beaver2017-03-201-0/+17
|\ \
| * | Fix #7372 Cannot filter ICMP Type SKIPPhil Davis2017-03-121-0/+17
| |/
* | Merge pull request #3529 from Chrisc-c-c/Fix-List-Sort-OrderSteve Beaver2017-03-201-1/+2
|\ \ | |/ |/|
| * Fix incorrect sorting for various dropdown lists.Chris Rowe2017-02-121-1/+2
| |
* | Add a function to normalize CR and CRLF-style newlines to Unix LFdoktornotor2017-02-231-0/+6
|/ | | See Bug #5306.
* 5th trylukehamburg2017-02-091-1/+1
| | | | - change $do_ping default value to 'true' (which emulates the previous default behavior) to avoid any unexpected results
* 4th attempt!lukehamburg2017-02-091-3/+7
| | | | - Reworked based on recent comments from @rbgarga
* 3rd try!lukehamburg2017-02-081-9/+8
| | | | - incorporate suggestions from @rbgarga with slight modification
* 2nd try. . .lukehamburg2017-02-081-11/+14
| | | | | | | | | /etc/inc/util.inc: - arp_get_mac_by_ip() updated to support IPv6 - attempt at code streamline /usr/local/www/services_dhcp_edit.php: - streamline code, now just a simple call to arp_get_mac_by_ip()
* Introduce is_intrange() to validate a range of integers delimited by ':' or '-'Renato Botelho2017-01-241-0/+29
|
* Merge pull request #3414 from phil-davis/ipv6-compressRenato Botelho2017-01-231-4/+19
|\
| * Force compress for where_is_ipaddr_configuredPhil Davis2017-01-221-2/+2
| |
| * Always force compress when calling Net_IPv6Phil Davis2017-01-221-2/+17
| |
* | Remove unused variable $cfglckkeyconsumersRenato Botelho2017-01-231-5/+3
|/
* Make sure file exists before try to open itRenato Botelho2017-01-101-2/+3
|
* Fix styleRenato Botelho2017-01-101-38/+38
|
* format_DUID array_walkPhil Davis2017-01-091-3/+5
|
* format_DUID use str_padPhil Davis2017-01-091-3/+1
|
* format_DUID reviewPhil Davis2017-01-091-6/+3
|
* Helper format_duid() for DUID inputPhil Davis2017-01-081-1/+29
|
* Return partial MAC address matching support to is_macaddr(). Fixes #7088jim-p2017-01-051-3/+9
|
* Merge pull request #3304 from marjohn56/masterjim-p2017-01-021-0/+63
|\
| * Changes as requestedmarjohn562016-12-271-6/+6
| |
| * tidymarjohn562016-12-231-7/+3
| |
| * Added get_duid_from_file() functionmarjohn562016-12-221-0/+31
| | | | | | Used in System->Advanced->Networking to display the current DUID in the placeholder for setting the DUID.
| * User Defined DUIDmarjohn562016-12-211-0/+36
| | | | | | | | | | | | | | User may define a DUID to use in System->Advanced->Networking. The entered DUID is validated for composition and length, if valid it is stored in the config.xml. On call of wan_dhcp6_configure() the DUID is written to file to be read by dhcp6c on launch.
* | Fix #3560 correctly handle disabled static routesPhil Davis2016-12-271-1/+5
|/ | | | | | | | | | | | | | | | | | | | | 1) util.inc - add parameter to get_staticroutes() so the caller can choose to see all static routes or only the ones that are currently enabled. 2) filter.inc - just process enabled static routes when making direct networks list, tonathosts etc. 3) services.inc - only include enabled static routes when making confogs for DHCP(6) Relay. 4) unbound.inc - only include enable static routes in unbound_acls_config 5) rc.newroutedns - only trigger if there is an enabled static route. Note: GUI validation has been left as-is. e.g. in system_gateways we don not allow to delete a gateway if there is a disabled static route using it... If people want to delete "higher level" stuff, then they need to first delete the disabled static route(s). Otherwise it will get rather "risky" having disabled static routes in the config that refer to gateways that no longer exist, or have a subnet range that now matches a local interafce or...
* validateipaddr update return value commentsPhil Davis2016-12-201-3/+3
|
* validateipaddr use constants from globals.incPhil Davis2016-12-201-7/+7
|
* validateipaddr return address familyPhil Davis2016-12-201-7/+13
| | | Enhanced the return values from validateipaddr() so the caller can know if the validated address is IPv4 or IPv6 (or an alias if that check was requested). That makes it a better replacement for is_ipaddr().
* Merge pull request #3281 from phil-davis/patch-7Renato Botelho2016-12-161-6/+6
|\
| * validateipaddr enhance flexibility for translationPhil Davis2016-12-161-6/+6
| | | | | | By using sprintf() we can allow for some language where the label text does not fit at the start of the sentence.
* | validateipaddr code formatPhil Davis2016-12-161-2/+2
|/
* Fix commentSteve Beaver2016-12-151-1/+1
|
* Added a function validateipaddr() use as:Steve Beaver2016-12-151-0/+61
| | | | | | | | | | | | // Validate a network address // $addr: the address to validate // $type: IPV4|IPV6|IPV4V6 // $label: the label used by the GUI to display this value. Required to compose an error message // $err_msg: pointer to the callers error message array so that error messages can be added to it here // $alias: are aliases permitted for this address? function validateipaddr(&$addr, $type, $label, &$err_msg, $alias=false) This is indented to provide a single method of validating IP addresses of all types and composing a suitable error message
* Revise update_filter_relaod_status() function to append status messages ↵Steve Beaver2016-11-211-6/+10
| | | | rather than overwrite the file
* Check if pidfile is valid before try to send signalRenato Botelho2016-10-311-2/+3
|
* Update the variable with the round() return otherwise it does not has any ↵Luiz Otavio O Souza2016-10-231-1/+1
| | | | | | effect. Found while testing Ticket #6272.
OpenPOWER on IntegriCloud