Skip to content

Commit

Permalink
net/tayga, register virtual interface (#1826)
Browse files Browse the repository at this point in the history
  • Loading branch information
maurice-w committed May 20, 2020
1 parent 5c004ca commit 8532906
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
4 changes: 2 additions & 2 deletions net/tayga/Makefile
@@ -1,6 +1,6 @@
PLUGIN_NAME= tayga
PLUGIN_VERSION= 1.0
PLUGIN_COMMENT= Tayga IPv6 64NAT
PLUGIN_VERSION= 1.1
PLUGIN_COMMENT= Tayga NAT64
PLUGIN_DEPENDS= tayga
PLUGIN_MAINTAINER= m.muenz@gmail.com

Expand Down
4 changes: 4 additions & 0 deletions net/tayga/pkg-descr
Expand Up @@ -7,6 +7,10 @@ networks where dedicated NAT64 hardware would be overkill.
Plugin Changelog
================

1.1

* Register Tayga virtual interface

1.0

* Support for IPv6 prefix and IPv4 pool
Expand Down
16 changes: 16 additions & 0 deletions net/tayga/src/etc/inc/plugins.inc.d/tayga.inc
Expand Up @@ -61,3 +61,19 @@ function tayga_xmlrpc_sync()
$result['description'] = gettext('Tayga');
return array($result);
}

function tayga_interfaces()
{
$interfaces = array();
if (!tayga_enabled()) {
return $interfaces;
}
$oic = array('enable' => true);
$oic['if'] = 'nat64';
$oic['descr'] = 'Tayga';
$oic['type'] = 'none';
$oic['virtual'] = true;
$oic['networks'] = array();
$interfaces['tayga'] = $oic;
return $interfaces;
}
Expand Up @@ -23,7 +23,7 @@
<Required>Y</Required>
</v6destination>
<v6prefix type="NetworkField">
<default>2001:db8:1:ffff::/96</default>
<default>64:ff9b::/96</default>
<Required>Y</Required>
</v6prefix>
<v4pool type="NetworkField">
Expand Down

0 comments on commit 8532906

Please sign in to comment.