| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| | |
|
|/
|
| |
See Bug #5306.
|
|
|
|
| |
- change $do_ping default value to 'true' (which emulates the previous default behavior) to avoid any unexpected results
|
|
|
|
| |
- Reworked based on recent comments from @rbgarga
|
|
|
|
| |
- incorporate suggestions from @rbgarga with slight modification
|
|
|
|
|
|
|
|
|
| |
/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()
|
| |
|
|\ |
|
| | |
|
| | |
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\ |
|
| | |
|
| | |
|
| |
| |
| | |
Used in System->Advanced->Networking to display the current DUID in the placeholder for setting the DUID.
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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...
|
| |
|
| |
|
|
|
| |
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().
|
|\ |
|
| |
| |
| | |
By using sprintf() we can allow for some language where the label text does not fit at the start of the sentence.
|
|/ |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
// 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
|
|
|
|
| |
rather than overwrite the file
|
| |
|
|
|
|
|
|
| |
effect.
Found while testing Ticket #6272.
|
|
|
|
|
|
| |
Hexadecimal numbers without the '0' padding are also valid, e.g:
a:b:c:d:e:f
|
|
|
|
|
|
|
|
| |
Until 2.3.x pfSense carried a patch that changed the behavior of 'route
change' command, making it add the route when it fails to change.
On 2.4 this patch was removed and will not be added back. This change
adjust PHP code to deal with route add / change and make it work
without the patch
|
|
|
|
|
|
|
|
|
| |
Verify if addresses are valid IP address before convert them to make
numeric comparison.
While here, adjust indent.
Inspired by: @phil-davis patch at PR #3189
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This allows the caller to do a single "atomic" call to unlink_if_exists.
If it returns true, then they know that the file existed and that it has
been unlinked successfully.
This should help avoid race conditions where multiple code paths try
sequences like:
if (file_exists("somefile") {
unlink("somefile");
do_other_stuff();
}
in the case where we really only want do_other_stuff() to happen for the
code path that is the first one to actually unlink the file.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
- ip6_to_bin() and bin_to_ip6() are copies obtained from pear-Net_IPv6
since the version available in the class is protected and we don't
want to add more patches to thirdy part software. If upstream accept
to change them to public we can retire them
- bin_to_compressed_ip6 is just a short way to conver binary direct to
a compressed IPv6 address
Reported at: https://forum.pfsense.org/index.php?topic=117601.0
|
| |
|
|
|
|
| |
No functional change - just making style consistent
|
| |
|
| |
|
| |
|
|\ |
|