Franco Fichtner
a45daec4ab
dhcpd: take into account that multple ia-pd can be delegated #7484
2024-05-27 20:18:20 +02:00
Franco Fichtner
b53fe7c1d9
dhcpd: make private consumers actually private where it matters
2024-04-05 12:06:31 +02:00
Franco Fichtner
d86702262b
dhcp: fix previous, restructure for clarity
2023-09-18 20:53:57 +02:00
Maurice Walker
3582242d0f
Add scope to link-local DHCPv6 static mapping when creating route for delegated prefix
2023-09-18 20:48:29 +02:00
Franco Fichtner
96460cf330
dhcp: tighten expire logic for delegated prefix routes
...
We need to expire existing routes as well in order to get rid
of the old gateway, because deleting with the new gateway given
will not delete the existing route to another one.
Also bring back (and actually use) the active binding check
before storing an address or prefix for processing.
Use "null" to designate that these are expired, later overwritten
if an active lease is there.
2023-06-15 09:40:14 +02:00
Franco Fichtner
23c913918e
dhcp: avoid parse_duid() duplication
...
We know this works so clean this up properly now.
2023-06-14 14:52:54 +02:00
Franco Fichtner
617d0f62a1
dhcp: improve prefix script readability and flow
...
Assign copyright due to fundamntal work since 2022 here.
2023-06-14 14:43:54 +02:00
Franco Fichtner
c868a2e4bf
dhcp: fix includes
2023-06-12 14:54:29 +02:00
Franco Fichtner
a738136847
dhcp: use static mapping to find a gateway to delegated prefix
...
PR: https://forum.opnsense.org/index.php?topic=34416.0
2023-06-12 13:14:05 +02:00
Franco Fichtner
0b04cc5efc
system: deal with shell_exec() vs. trim() by wrapping all into shell_safe()
2023-01-31 09:01:12 +01:00
Franco Fichtner
5ce587cee8
dhcp: we seem to keep repairing this script... #5876
...
'prefix' was never a key so this got never executed for whatever reason.
It remains broken in other projects and the question is if this script
really has any useful value.
2022-07-20 11:15:07 +02:00
Franco Fichtner
2d2b025a5f
dhcp: fix weirdness in prefix crawler
...
PHP complains about unknown access, but the script is
even weirder with unused $active, storing null values
etc.
2022-06-16 13:23:01 +02:00
Franco Fichtner
68454bd30c
src: style sweep
2022-03-10 08:38:04 +01:00
Franco Fichtner
e00a9a2031
dhcp: use opnsense-log -n for prefix reads
2022-03-10 08:32:17 +01:00
Ad Schellevis
71a8da452c
DHCPDv6: stream read log and leases files for "dhcpd update prefixes" action, see https://forum.opnsense.org/index.php?topic=27319.msg132541#msg132541
2022-03-04 19:42:48 +01:00
Franco Fichtner
b342645e7c
dhcp: add missing copyright
...
File created in 092462dc10d1a4 by Seth Mos in 2012.
2022-02-14 08:48:41 +01:00
Franco Fichtner
6c12235b07
dhcp: typo
2022-02-03 07:47:45 +01:00
Franco Fichtner
ef9a2e9330
dhcp: quick pass over prefixes.php to support non-clog finally
2022-02-02 09:07:50 +01:00
Michael Steenbeek
7ad3d8dff6
Replace some trivial double quotes with single ones
2018-11-23 14:36:44 +01:00
Michael Steenbeek
19ce1c57a4
Replace uncommon <> notation with !=
2018-11-23 14:36:44 +01:00
Franco Fichtner
639bc741c7
dhcp: prefix delete is either a prerequisite, or...
...
an opportunistic delete so mute the failure in the log.
2018-01-10 19:00:40 +01:00
Franco Fichtner
018bea397a
dhcp: second half of @marjohn56's changes; closes #2077
2018-01-10 18:48:57 +01:00
Franco Fichtner
c62f01f993
dhcp: address issue found by @marjohn56
...
PR: https://github.com/opnsense/core/pull/2077
2018-01-10 18:22:36 +01:00