Bug #7379
closedVirtual IPs/Proxy ARP: Not defined pid file on starting choparp.
100%
Description
Not defined pid file on starting choparp. The pfSense may not kill the program to reconfiguration.
--- interfaces.inc.orig 2017-03-12 18:56:36.471976000 +0300
@ -2248,7 +2248,9
+++ interfaces.inc 2017-03-12 19:32:14.875358000 +0300@
@ -2264,7 +2266,9
if (!is_ipaddr($paaifip)) {
return;
}
- $args = get_real_interface($interface) . " auto";
+ $vipif = get_real_interface($interface);
+ $args = "-p {$g['varrun_path']}/choparp_{$vipif}.pid ";
+ $args .= $vipif . " auto";
foreach ($paa[$interface] as $paent) {
if (isset($paent['subnet'])) {
$args .= " " . escapeshellarg("{$paent['subnet']}/{$paent['subnet_bits']}");@
if (!is_ipaddr($paaifip)) {
continue;
}
- $args = get_real_interface($paif) . " auto";
+ $vipif = get_real_interface($interface);
+ $args = "-p {$g['varrun_path']}/choparp_{$vipif}.pid ";
+ $args .= $vipif . " auto";
foreach ($paents as $paent) {
if (isset($paent['subnet'])) {
$args .= " " . escapeshellarg("{$paent['subnet']}/{$paent['subnet_bits']}");