Leave a trace that rtsold did fire the dhcp6c client so troubleshooting is easier
Actually the / here is not needed.
add option to send prefix hint for requesting desired prefix length for delegation
This change adds an option on the interfaces page for sending a prefix hint for the selected delegation size. If enabled, a "prefix" field requesting :: with the appropriate prefix length (64 - dhcp6-ia-pd-len) is added to the "id-assoc pd" entry in the dhcp6c config file. This hint is required for requesting prefixes shorter than /64 from Comcast.
Add also a special case so the correct ip is returned for the case when WAN is v4 PPP type and v6 is DHCP but with option fetch v6 info from v4.
When using DHCPv6 and only requesting a prefix the communication on the WAN interface will be over link-local so return the link-local address of the interface in this case rather than nothing.
Optimize a bit to try and convrt back to friendly interface only when needed
Resolves #2627. When WANv4 is PPP and v6 is DHCP but the option get v6 info from v4 is ticked the real interface is different. For WANv4 is pppXX and for v6 is the real underlying interface. Take this into consideration during interface_bring_down to properly cleanup things
Correctly remove IPv6 addresses from the interface rather than just erroring out. The same trick that works for IPv4 of not specifying address does not work with v6
Even if called with wrong parameters try to do something rather than return here.
Reduce diff with master
Cleanup some code that is not needed anymore
Use pfSense module functions for finding interface v6 addresses. The addresses will be not in friendly format as returned by getnameinfo
Fix #1047
Remove duplicate polling set
Implement an option to allow using the IPv4 connectivity interface for sending the dhcpv6 information. Usually useful for ppp[oe] type links and some ISP
Handle IPv6 in ip_in_interface_alias_subnet()
Do not break ppp type interfaces on v6
For ppp interfaces the real interface is not present anymore in the xml config section of the interface. Due to this do some more work on extracting the real interface when ipv4 is pppoe/ppp/... and ipv6 configuration files will use the wrong interface to request information from provider. Reported-by: http://forum.pfsense.org/index.php/topic,64483.0.html
Fixes #2495. On trigering of rc.newwanip remove all ipaliases from the interface since they will be readded later on. This will also make sure to have the correct address order
Remove duplicated line that makes dhcp6c not run correctly
Add a checkbox that can be used to request only a IPv6 prefix without a IPv6 address. Some ISPs DHCP6 servers will fail the request if both are requested and only a Prefix is allowed.
Add a field to allow rejecting DHCP leases from a specific upstream DHCP server.
Do not do the same tricks here that are done on get_real_interface but just call the function directly
Provide full path to route binary
Correct the command for setting the 6rd gw
Wait 1 second before starting the other dhcp6c since pkill does not wait for the process to exit
Add the 6rd gateway information
Replace all linklocal checks by is_linklocal()
Nuke interface_track6_dhcp6_configure()
This function does 2 unecessary things:
. Remove the IP address from interface set as Track, what is wrong and should be done by dhcp6c. Set a fixed IP when track6-interface is SLAAC, what never happens since it's impossible to track a SLAAC interface
Revert "Fixes for track6 interfaces:"
It's not the correct fix
This reverts commit e8307ae03e2769bd0ebaa4b9441ac797b50a3800.
Pull code from the calling place rather than the interfaces.inc
Merge pull request #626 from phil-davis/master
Restore default route after HOTPLUG linkup
Fixes for track6 interfaces:
. Do not remove link-local when it's already correct. Let dhcp6c deal with tracked interface IP
Add includes to interfaces.inc
There were some includes needed when calling into here from rc.linkup - somehow everything else that calls interface_configure(p1, "true", p3) has already included these.
Fix IPv6 Prefix ID default value
. Always initialize it to 0 when it's undefined. Remove unecessary initializations and checks. Bump config version to 9.5. Write an upgrade config function to initialize old configs properly
Correct issue reported on: http://forum.pfsense.org/index.php/topic,61239.0.html
Make fe80: addresses check case insensitive
Configure static arp inside interface_configure() since it removes all interface addresses and the static arps are removed together. It fixes #2939
Fix whitespaces and indent
Give the process time to exit before running a new one
Escape the argument to avoid potential issues
No need for the ::(separators) they will be there
Check lower bound as well
The default gateway for 6rd type is $prefix|$wanv4::$wanv4gw. Also add support for variable length v4 prefix for 6rd
To actually use the linklocal of :1 delete the auto assigned linklocal
Remove even this seems dhclient is smart enough to avoid this by itself
Remove functions that are not used now with once mode of rtsold
Simplify a bit logic
Fix typo
Use full patch
Run rtsold only for one reply since it will spam with dhcp6c processes otherwise. Also remove ambiguity by using curlies in functions
Fix missed ;
Bring down even rtsold process
The workflow is rtsold calls dhcp6c which calls rc.newwanipv6 to make the configuration more consistent
Do not run this during startup since it will be called anyhow
Initialize array
Remove not used call
When reconfiguring interfaces with dhcp types set try to kill any previous dhcp process of the interface already running
Do not cleanup states on this call
Remove useless function calls
Unset the ip from the cache to retrieve the right ip
Correct get_interface_subnetv6 and use get_interface_ipv6 during dhcp config generation. Also initialize some arrays to avoid warnings
Try to remove as much as possible _stf special case through the code
Use get_interface_ipv6 on rc.newwanipv6 to and teach it to flush the cache on optional parameter. Also teach get_real_interface about the tedios ipv6 tunnel interfaces and return them when ipv6 family is specified
Handle _stf interface in convertion from real to friendly. Also do no cal lpfSense_module function if not used
Use realif on dhcp6 pid filename since find_dhcp6c_process() looks for it and cannot kill it
Use empty which is more strict
Be consistent on vlan checks
Fix logic inversion from 126ff5b264
Check if MTU is already with correct value before change it
When parent is not assigned, reset it and all vlans without mtu set to default
When reset parent to default mtu, deal with all VLANs too
Set vlanifs early and use it on more places to simplify logic
Consider parent mtu when it's set instead of default one
Simplify a bit the logic
Pass parent interface to link_interface_to_vlans
Fix typo on var name
Fix typo s/assgined/assigned/
Be consistent on the check
Solve the issue when changing vlan parent mtu and leaving its childs with older mtu.
More fixes
Remove debug code
Correct code to apply the mtu correctly
Correctly handle mtu changing between vlans
Change parent only if its mtu is smaller
Skip vlan checks for being configured vlan as well
Only treat interesting interfaces
Make this work better and not always go over things for setting mtu
Hopefully is correct now
Set mtu to the correct interface
Correct which mtu value is used to be correct
Sprinkle some XXX just for being consistent
Correct this behaviour of properly honoring the configured mtu
Tune up a bit dhclient-script and call the kill state command only once its enough
You can have multiple 6rd tunnels now days
Remove old ip information even from the tracking interface as well so that track6 config code does not get confused. Fixes #2627
Remove old ip information so that track6 config does not get confused. Fixes #2627
Save ppp info and realif on interfaces.apply to be able to cleanup old configuration when changing interface type. Fixes #2758
Make parent interface and all VLANs use the same MTU. Fixes #2786