[systemd-devel] [PATCH] networkd: Introduce tun/tap device

Tom Gundersen teg at jklm.no
Thu Jul 3 16:27:25 PDT 2014


On Fri, Jul 4, 2014 at 12:21 AM, Moviuro <moviuro at gmail.com> wrote:
> On Thursday 03 July 2014 23:59:03 you wrote:
>> On Monday 30 June 2014 22:23:30 Susant Sahani wrote:
>> > This patch introduces TUN/TAP device creation support
>> > to networkd.
>> >
>> > Example conf to create a tap device:
>> >
>> > file: tap.netdev
>> > ------------------
>> > [NetDev]
>> > Name=tap-test
>> > Kind=tap
>> >
>> > [Tap]
>> > OneQueue=true
>> > MultiQueue=true
>> > PacketInfo=true
>> > ------------------
>>
>> The man page at :
>> http://www.freedesktop.org/software/systemd/man/systemd.netdev.html
>> Does not mention tun and tap as netdev kinds:
>> 'The netdev kind. Currently, "bridge", "bond", "vlan", "macvlan", "vxlan",
>> "ipip", "gre", "sit", "vti", "veth", and "dummy" are supported. This option
>> is compulsory.'

Good catch. Thanks!

> The according patch would be (correct me if I'm wrong, first time asking to
> patch on a ML) (git clone-d systemd, did the little modification, asked for
> git diff):

To get proper authorship, and avoid line-breaking you should:

# git add -p
# git commit -m "man: some description"
# git send-email HEAD^ --to=systemd-devel at lists.freedesktop.org

I redid this manually though, so no need to resend.

Cheers,

Tom

> diff --git a/man/systemd.netdev.xml b/man/systemd.netdev.xml
> index c90bd8f..4755262 100644
> --- a/man/systemd.netdev.xml
> +++ b/man/systemd.netdev.xml
> @@ -162,7 +162,8 @@
>                                                  <literal>bond</literal>,
> <literal>vlan</literal>,
>                                                  <literal>macvlan</literal>,
> <literal>vxlan</literal>,
>                                                  <literal>ipip</literal>,
> <literal>gre</literal>,
> -                                                <literal>sit</literal>,
> <literal>vti</literal>,
> +                                                <literal>sit</literal>,
> <literal>tap</literal>,
> +                                                <literal>tun</literal>,
> <literal>vti</literal>,
>                                                  <literal>veth</literal>, and
> <literal>dummy</literal>
>                                                  are supported. This option is
> compulsory.</para>
>                                          </listitem>
>
> Regards,
> --
> Moviuro
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>


More information about the systemd-devel mailing list