Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge with existing TUN and change to TUN/TAP (tuntap) when possible to avoid code duplications.
- Loading branch information
Showing
26 changed files
with
649 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<interface> | ||
<name>tap0</name> | ||
<tap> | ||
<address>42:42:42:42:42</address> | ||
<owner>0</owner> | ||
<group>0</group> | ||
</tap> | ||
</interface> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
<interface> | ||
<name>tun0</name> | ||
|
||
<tun> | ||
<persistent>true</persistent> | ||
<owner>0</owner> | ||
<group>0</group> | ||
</tun> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
<!-- | ||
tun service definitions | ||
--> | ||
<service name="tun" interface="org.opensuse.Network.TUN" object-class="netif-tun"> | ||
<description> | ||
This link-layer service is provided by all TUN devices. | ||
|
||
TUN devices can be created through the org.opensuse.Network.TUN.Factory | ||
factory interface. | ||
</description> | ||
|
||
<define name="configuration" class="dict"> | ||
<owner type="uint32"/> | ||
<group type="uint32"/> | ||
</define> | ||
|
||
<!-- The same properties are returned in interface state reports --> | ||
<define name="properties" type="tun:configuration"/> | ||
|
||
<method name="changeDevice"> | ||
<arguments> | ||
<config type="tun::configuration"> | ||
<meta:mapping document-node="/tun" skip-unless-present="true" /> | ||
</config> | ||
</arguments> | ||
</method> | ||
|
||
<method name="deleteDevice"> | ||
<!-- no arguments, no return code --> | ||
</method> | ||
</service> | ||
|
||
<service name="tun-factory" interface="org.opensuse.Network.TUN.Factory" | ||
object-class="netif-list"> | ||
<method name="newDevice"> | ||
<arguments> | ||
<name type="string"/> | ||
<config type="tun:configuration"> | ||
<meta:mapping document-node="/tun"/> | ||
</config> | ||
</arguments> | ||
<return> | ||
<!-- this is really an object handle --> | ||
<string/> | ||
</return> | ||
</method> | ||
</service> | ||
|
||
<!-- | ||
tap service definitions | ||
--> | ||
<service name="tap" interface="org.opensuse.Network.TAP" object-class="netif-tap"> | ||
<description> | ||
This link-layer service is provided by all TAP devices. | ||
|
||
TAP devices can be created through the org.opensuse.Network.TAP.Factory | ||
factory interface. | ||
</description> | ||
|
||
<define name="configuration" class="dict" extends="tun:configuration"> | ||
<address type="ethernet-address"/> | ||
</define> | ||
|
||
<!-- The same properties are returned in interface state reports --> | ||
<define name="properties" type="tap:configuration"/> | ||
|
||
<method name="changeDevice"> | ||
<arguments> | ||
<config type="tap:configuration"> | ||
<meta:mapping document-node="/tap" skip-unless-present="true" /> | ||
</config> | ||
</arguments> | ||
</method> | ||
|
||
<method name="deleteDevice"> | ||
<!-- no arguments, no return code --> | ||
</method> | ||
</service> | ||
|
||
<service name="tap-factory" interface="org.opensuse.Network.TAP.Factory" | ||
object-class="netif-list"> | ||
<method name="newDevice"> | ||
<arguments> | ||
<name type="string"/> | ||
<config type="tap:configuration"> | ||
<meta:mapping document-node="/tap"/> | ||
</config> | ||
</arguments> | ||
<return> | ||
<!-- this is really an object handle --> | ||
<string/> | ||
</return> | ||
</method> | ||
</service> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.