Skip to content

Commit c7036be

Browse files
committed
dhcp: allow radvd to use /128 CARP VIP as source
The check is for the subnet use, not the CARP source check in between. PR: https://forum.opnsense.org/index.php?topic=44634.0
1 parent c92114e commit c7036be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/etc/inc/plugins.inc.d/dhcpd.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ function dhcpd_radvd_configure($verbose = false, $blacklist = [])
251251
}
252252

253253
foreach (config_read_array('virtualip', 'vip') as $vip) {
254-
if ($vip['interface'] != $dhcpv6if || !is_ipaddrv6($vip['subnet']) || $vip['subnet_bits'] == '128') {
254+
if ($vip['interface'] != $dhcpv6if || !is_ipaddrv6($vip['subnet'])) {
255255
continue;
256256
}
257257

@@ -263,7 +263,7 @@ function dhcpd_radvd_configure($verbose = false, $blacklist = [])
263263
continue;
264264
}
265265

266-
if (!empty($vip['nobind'])) {
266+
if ($vip['subnet_bits'] == '128' || !empty($vip['nobind'])) {
267267
continue;
268268
}
269269

0 commit comments

Comments
 (0)