summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2012-02-25 13:32:12 +0100
committersmos <seth.mos@dds.nl>2012-02-25 13:32:12 +0100
commitd500e296d8d04ef3d74304755cb532d4a188b046 (patch)
treec7df32ff6837d45828d26dc3307c424afa2dffd9 /etc/inc
parent12215bfb9c269d4d2ab94e2837829efb769674e6 (diff)
downloadpfsense-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.inc12
-rw-r--r--etc/inc/interfaces.inc3
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;
OpenPOWER on IntegriCloud