diff options
author | smos <seth.mos@dds.nl> | 2012-02-25 13:32:12 +0100 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2012-02-25 13:32:12 +0100 |
commit | d500e296d8d04ef3d74304755cb532d4a188b046 (patch) | |
tree | c7df32ff6837d45828d26dc3307c424afa2dffd9 /etc/inc | |
parent | 12215bfb9c269d4d2ab94e2837829efb769674e6 (diff) | |
download | pfsense-d500e296d8d04ef3d74304755cb532d4a188b046.zip pfsense-d500e296d8d04ef3d74304755cb532d4a188b046.tar.gz |
Adding gateway support for 6rd support, does not add route yet.
Adds to ticket #2117
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/gwlb.inc | 12 | ||||
-rw-r--r-- | etc/inc/interfaces.inc | 3 |
2 files changed, 14 insertions, 1 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index 21b31d4..2956e5d 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -421,7 +421,17 @@ function return_gateways_array($disabled = false) { $gateway['dynamic'] = false; $gateway['ipprotocol'] = "inet6"; $gateway['gateway'] = get_interface_gateway_v6($ifname, $gateway['dynamic']); - $gateway['interface'] = get_real_interface($ifname); + /* XXX Add stf and friends in the future ? */ + switch($ifcfg['ipaddrv6']) { + case "6rd": + $gateway['interface'] = "srd0"; + $gateway['dynamic'] = "default"; + $gateway['gateway'] = "::1"; + break; + default: + $gateway['interface'] = get_real_interface($ifname); + break; + } $gateway['friendlyiface'] = $ifname; $gateway['name'] = "{$friendly}_v6"; $gateway['attribute'] = "system"; diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 02cad83..3f32be3 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -4108,6 +4108,9 @@ function interface_has_gatewayv6($friendly) { case "dhcp6": return true; break; + case "6rd": + return true; + break; default: if (substr($ifname['if'], 0, 5) == "ovpnc") return true; |