Project

General

Profile

Bug #9357

rc.newwanipv6 called regardless of REASON

Added by Flole Systems about 2 months ago. Updated 14 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
02/27/2019
Due date:
% Done:

0%

Estimated time:
Affected Version:
Affected Architecture:

Description

The dhcp6c_wan_script.sh does not honor the REASON-Variable set by the dhcp6c process. Even though it is RENEW and the interface lease was renewed way ahead of the IP expiry, the newwanipv6 script is called causing filter reload and so on. I would expect that REASON environment-variable is evaluated and then checked if we have a RENEW (lease extended) or really a REBIND (lease expired and needed to get a new one, we lost the IP on the interface for some time in this case so calling newwanipv6 is fine in this case).

For me every filter-reload causes some UDP-Packetloss, so I am trying to get "useless" reloads down to a minimum.

History

#1 Updated by Flole Systems about 2 months ago

We probably need something like a "copy" of /usr/local/sbin/pfSense-dhclient-script here, just for IPv6

#2 Updated by Flole Systems 14 days ago

A dirty patch I am using for now is adding these lines in /var/etc/dhcp6c_wan_script.sh

if [ "$REASON" == "RENEW" ]; then
exit
fi

(Just posting this here so I don't forget what I did when I have to re-do it again cause it got overwritten)

Also available in: Atom PDF