OPNSense/core d8a559esrc/opnsense/scripts/interfaces dhcp6c_script.sh

interfaces: show the prefix shift in the log message

Move the other force message to the respective if which is more or
less what we had before.  This is important for making clear what
the impact of #9521 to renewals actually is.
DeltaFile
+2-4src/opnsense/scripts/interfaces/dhcp6c_script.sh
+2-41 files

OPNSense/core 0400201. plist, src/etc/inc interfaces.inc

interfaces: generalise the rtsold_script as well

The bulk of this started in 732e4b3388b but Martin was involved
here too over the years.
DeltaFile
+77-0src/opnsense/scripts/interfaces/rtsold_script.sh
+2-53src/etc/inc/interfaces.inc
+1-0plist
+80-533 files

OPNSense/core 4f49d7dsrc/etc/inc interfaces.inc

interfaces: embed dhcp6c options into config file

So we can read them from a soon-to-be generalised rtsold script.
DeltaFile
+22-17src/etc/inc/interfaces.inc
+22-171 files

OPNSense/core 5aecd26src/etc/inc interfaces.inc, src/www interfaces.php

interface: multi-dhcp6c support and custom PD association #7647

This splits off rtsold and dhcp6c into separate processes
which frees us from the restrictions of faked iterative IDs
for PD associations.  For NA we simply default to 0 now.

I'm not entirely sure why we settled for a single deamon of
dhcp6c back in the day, but there are certianly downsides to
it and I don't see something that wasn't fixed in the meantime
that makes this not work.

Add two debugging files which still need to be steered via the
debug setting.
DeltaFile
+27-60src/etc/inc/interfaces.inc
+58-4src/www/interfaces.php
+85-642 files

OPNSense/core 7335ca5. plist, src/etc/inc interfaces.inc

interfaces: generalise the dhcp6c_script using the new IFNAME variable

The file was conceptually created in d36f0f4f62557 and before was a single
command line script... so add appropriate copyrights from that time onward.

Many thanks to Martin for pinoeering this back in the day!
DeltaFile
+86-0src/opnsense/scripts/interfaces/dhcp6c_script.sh
+2-67src/etc/inc/interfaces.inc
+1-0plist
+89-673 files

OPNSense/core fafe519src/etc/inc interfaces.inc

interaces: use ifctl -u mode to check if force is needed #9521

We do force-reload in SOLICIT/REQUEST, but in REBIND and RENEW
cases we do want to check if the prefix information changed.

This may produce one spurious forced renew when the old prefix
disappears, but avoids reloading in average cases where the
existing prefix is (or existing prefixes are) kept.
DeltaFile
+12-3src/etc/inc/interfaces.inc
+12-31 files

OPNSense/core 47e9221src/etc/inc interfaces.inc

interfaces: oversight in settings migration
DeltaFile
+1-1src/etc/inc/interfaces.inc
+1-11 files

OPNSense/core 30fa60b. plist, src/etc/inc interfaces.inc

interfaces: generalise the dhcp6c_script using the new IFNAME variable

The file was conceptually created in d36f0f4f62557 and before was a single
command line script... so add appropriate copyrights from that time onward.

Many thanks to Martin for pinoeering this back in the day!
DeltaFile
+86-0src/opnsense/scripts/interfaces/dhcp6c_script.sh
+2-67src/etc/inc/interfaces.inc
+1-0plist
+89-673 files

OPNSense/core dc4537fsrc/etc/inc interfaces.inc, src/www interfaces.php

interface: multi-dhcp6c support and custom PD association #7647

This splits off rtsold and dhcp6c into separate processes
which frees us from the restrictions of faked iterative IDs
for PD associations.  For NA we simply default to 0 now.

I'm not entirely sure why we settled for a single deamon of
dhcp6c back in the day, but there are certianly downsides to
it and I don't see something that wasn't fixed in the meantime
that makes this not work.

Add two debugging files which still need to be steered via the
debug setting.
DeltaFile
+27-60src/etc/inc/interfaces.inc
+58-4src/www/interfaces.php
+85-642 files

OPNSense/core ffa1579src/etc/inc interfaces.inc

interaces: use ifctl -u mode to check if force is needed #9521

We do force-reload in SOLICIT/REQUEST, but in REBIND and RENEW
cases we do want to check if the prefix information changed.

This may produce one spurious forced renew when the old prefix
disappears, but avoids reloading in average cases where the
existing prefix is (or existing prefixes are) kept.
DeltaFile
+12-3src/etc/inc/interfaces.inc
+12-31 files

OPNSense/core c9b791csrc/etc/inc interfaces.inc

interaces: use ifctl -u mode to check if force is needed #9521

We do force-reload in SOLICIT/REQUEST, but in REBIND and RENEW
cases we do want to check if the prefix information changed.

This may produce one spurious forced renew when the old prefix
disappears, but avoids reloading in average cases where the
existing prefix is (or existing prefixes are) kept.
DeltaFile
+10-2src/etc/inc/interfaces.inc
+10-21 files

OPNSense/core 0ab87e3src/etc/inc interfaces.inc

interaces: use ifctl -u mode to check if force is needed #9521

We do force-reload in SOLICIT/REQUEST, but in REBIND and RENEW
cases we do want to check if the prefix information changed.

This may produce one spurious forced renew when the old prefix
disappears, but avoids reloading in average cases where the
existing prefix is (or existing prefixes are) kept.
DeltaFile
+10-2src/etc/inc/interfaces.inc
+10-21 files

OPNSense/core cf683bbsrc/etc/inc interfaces.inc

interaces: use ifctl -u mode to check if force is needed #9521

We do force-reload in SOLICIT/REQUEST, but in REBIND and RENEW
cases we do want to check if the prefix information changed.

This may produce one spurious forced renew when the old prefix
disappears, but avoids reloading in average cases where the
existing prefix is (or existing prefixes are) kept.
DeltaFile
+8-2src/etc/inc/interfaces.inc
+8-21 files

OPNSense/core be50e00src/etc/inc interfaces.inc, src/www interfaces.php

interface: multi-dhcp6c support and custom PD association #7647

This splits off rtsold and dhcp6c into separate processes
which frees us from the restrictions of faked iterative IDs
for PD associations.  For NA we simply default to 0 now.

I'm not entirely sure why we settled for a single deamon of
dhcp6c back in the day, but there are certianly downsides to
it and I don't see something that wasn't fixed in the meantime
that makes this not work.

Add two debugging files which still need to be steered via the
debug setting.
DeltaFile
+27-60src/etc/inc/interfaces.inc
+58-4src/www/interfaces.php
+85-642 files

OPNSense/core c31d943src/etc/inc interfaces.inc

interfaces: force renewal on most dhcp6c actions #9521
DeltaFile
+7-9src/etc/inc/interfaces.inc
+7-91 files

OPNSense/core a9c1485src/etc/inc interfaces.inc

interfaces: also dump ifconfig from the last renewal for debugging #9521
DeltaFile
+3-0src/etc/inc/interfaces.inc
+3-01 files

OPNSense/core 9801766src/etc/inc interfaces.inc, src/www interfaces.php

interface: multi-dhcp6c support and custom PD association #7647

This splits off rtsold and dhcp6c into separate processes
which frees us from the restrictions of faked iterative IDs
for PD associations.  For NA we simply default to 0 now.

I'm not entirely sure why we settled for a single deamon of
dhcp6c back in the day, but there are certianly downsides to
it and I don't see something that wasn't fixed in the meantime
that makes this not work.
DeltaFile
+24-60src/etc/inc/interfaces.inc
+58-4src/www/interfaces.php
+82-642 files

OPNSense/core 1e4952asrc/opnsense/scripts/kea kea_prefix_watcher.py

dhcp/kea: exit prefix watcher if no lease file exists
DeltaFile
+5-0src/opnsense/scripts/kea/kea_prefix_watcher.py
+5-01 files

OPNSense/core ca8447csrc/etc/inc/plugins.inc.d dhcrelay.inc

dhcrelay: change bracing back for clarity

Logic is the same as && takes precedence but let's keep it like
it originally was.
DeltaFile
+3-2src/etc/inc/plugins.inc.d/dhcrelay.inc
+3-21 files

OPNSense/core 6990381src/etc/inc/plugins.inc.d dhcrelay.inc

dhcrelay: relax the check for present addresses #9369

(cherry picked from commit 0dd29398d934338f3326aa03386a62784e52da61)
(cherry picked from commit ce93c8bf05b0753fe51dc57a226a08562b2f7cd5)
(cherry picked from commit dba27bb13902472c664efcb5b3e63e8a274995ce)
(cherry picked from commit 1162de70486aa9e907880507f95c45ae3a110eb6)
DeltaFile
+27-25src/etc/inc/plugins.inc.d/dhcrelay.inc
+27-251 files

OPNSense/core ce93c8bsrc/etc/inc/plugins.inc.d dhcrelay.inc

dhcrelay: invert the logic to make it work as intended; closes #9369
DeltaFile
+2-2src/etc/inc/plugins.inc.d/dhcrelay.inc
+2-21 files

OPNSense/core 0dd2939src/etc/inc/plugins.inc.d dhcrelay.inc

dhcrelay: relax the check for present addresses #9369

get_interface_ip(v6) is much too specific for what we're trying to
validate against here.  Instead use the existing ifconfig data and
simply make sure if any address from the family is set.  In the IPv6
link-local case that might be strange, but the effect on working
setups is zero in either case.

It could be considered removing this validation which originates from
the legacy code and just let the daemon fail to start, but the log
message is much nicer and effective for debugging purposes.
DeltaFile
+2-2src/etc/inc/plugins.inc.d/dhcrelay.inc
+2-21 files

OPNSense/core 1162de7src/etc/inc/plugins.inc.d dhcrelay.inc

dhcrelay: do not scan for carp if everything is disabled anyway
DeltaFile
+11-11src/etc/inc/plugins.inc.d/dhcrelay.inc
+11-111 files

OPNSense/core dba27bbsrc/etc/inc/plugins.inc.d dhcrelay.inc

dhcrelay: safeguards for carp tracking

PHP would throw errors. We have empty array key and perhaps
a mismatch on VHID lookup to fix.
DeltaFile
+6-4src/etc/inc/plugins.inc.d/dhcrelay.inc
+6-41 files

OPNSense/core 308d18esrc/sbin opnsense-log

system: add "backend" and "php" shortcuts to opnsense-log
DeltaFile
+8-0src/sbin/opnsense-log
+8-01 files

OPNSense/core a1b1aecsrc/etc/inc system.inc

system: provide resolv.conf overrides via /etc/resolv.conf.local #7264
DeltaFile
+3-0src/etc/inc/system.inc
+3-01 files

OPNSense/core fd9a04esrc/opnsense/mvc/app/controllers/OPNsense/Core/Api TunablesController.php, src/opnsense/mvc/app/library/OPNsense/Core Config.php

mvc: fix faulty $forceList behaviour and add a test; closes #9617
DeltaFile
+19-3src/opnsense/mvc/tests/app/library/OPNsense/Core/ConfigTest.php
+6-1src/opnsense/mvc/tests/app/library/OPNsense/Core/ConfigConfig/backup/array.xml
+2-2src/opnsense/mvc/app/library/OPNsense/Core/Config.php
+1-1src/opnsense/mvc/app/controllers/OPNsense/Core/Api/TunablesController.php
+28-74 files

OPNSense/core a9df70dsrc/opnsense/mvc/tests/app/library/OPNsense/Core ConfigTest.php, src/opnsense/mvc/tests/app/library/OPNsense/Core/ConfigConfig/backup array.xml

tests: add a test for #9617
DeltaFile
+10-2src/opnsense/mvc/tests/app/library/OPNsense/Core/ConfigTest.php
+6-1src/opnsense/mvc/tests/app/library/OPNsense/Core/ConfigConfig/backup/array.xml
+16-32 files

OPNSense/core c0e339fsrc/etc/inc system.inc

system: fix vsprintf() error on stray % invoke; closes #9618

(cherry picked from commit 8d3a96e956ea30aa58df406ec7a6f2c38c17dcca)
DeltaFile
+1-1src/etc/inc/system.inc
+1-11 files

OPNSense/core 5b8c2a8src/etc/inc interfaces.inc, src/www interfaces.php

interface: multi-dhcp6c support and custom PD association #7647

This splits off rtsold and dhcp6c into separate processes
which frees us from the restrictions of faked iterative IDs
for PD associations.  For NA we simply default to 0 now.

I'm not entirely sure why we settled for a single deamon of
dhcp6c back in the day, but there are certianly downsides to
it and I don't see something that wasn't fixed in the meantime
that makes this not work.
DeltaFile
+24-60src/etc/inc/interfaces.inc
+58-4src/www/interfaces.php
+82-642 files