net/igmp-proxy: remove the notion of a "realif"

Actually the last in the plugin code!
This commit is contained in:
Franco Fichtner 2025-11-06 11:09:05 +01:00
parent 124194c2fc
commit e51e367336
2 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
PLUGIN_NAME= igmp-proxy
PLUGIN_VERSION= 1.5
PLUGIN_REVISION= 5
PLUGIN_REVISION= 6
PLUGIN_DEPENDS= igmpproxy
PLUGIN_COMMENT= IGMP-Proxy Service
PLUGIN_MAINTAINER= franco@opnsense.org

View file

@ -87,13 +87,13 @@ EOD;
foreach ($config['igmpproxy']['igmpentry'] as $igmpcf) {
unset($iflist[$igmpcf['ifname']]);
$realif = get_real_interface($igmpcf['ifname']);
$device = get_real_interface($igmpcf['ifname']);
if (empty($igmpcf['threshold'])) {
$threshld = 1;
} else {
$threshld = $igmpcf['threshold'];
}
$igmpconf .= "phyint {$realif} {$igmpcf['type']} ratelimit 0 threshold {$threshld}\n";
$igmpconf .= "phyint {$device} {$igmpcf['type']} ratelimit 0 threshold {$threshld}\n";
if ($igmpcf['address'] <> "") {
$item = explode(" ", $igmpcf['address']);
@ -104,8 +104,8 @@ EOD;
$igmpconf .= "\n";
}
foreach ($iflist as $ifn => $unused) {
$realif = get_real_interface($ifn);
$igmpconf .= "phyint {$realif} disabled\n";
$device = get_real_interface($ifn);
$igmpconf .= "phyint {$device} disabled\n";
}
$igmpconf .= "\n";