]> git.proxmox.com Git - mirror_iproute2.git/commit - ip/ipl2tp.c
iproute2: add l2spec_type param to l2tp add session
authorJames Chapman <jchapman@katalix.com>
Tue, 26 Mar 2013 06:49:22 +0000 (06:49 +0000)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 27 Mar 2013 20:20:58 +0000 (13:20 -0700)
commitdd10baa50dbf12629d1cf7d2988fdcab2a16e2b7
tree5402c04af361f6df447ee4c9e8a103f429e7621e
parent5f21823922ca1aabb47fb837260e541db34de79a
iproute2: add l2spec_type param to l2tp add session

When unmanaged L2TP sessions are created using "ip l2tp add session",
there is no option to allow the session's Layer2SpecificHeader type to
be selected - the kernel's default setting is always used. For
interopability with some vendor equipment, it might be necessary to
use a different setting. So add a new l2spec_type parameter to the "ip
l2tp add session" parameter list, allowing operators to set a specific
Layer2SpecificHeader type. The kernel already exposes the setting as a
netlink attribute so it is straightforward to add support for it in
iproute2.

This change allows unmanaged L2TP sessions to be configured between
Linux and some Cisco equipment by specifying "l2spec_type none" in "ip
l2tp add session" command parameters.

Signed-off-by: James Chapman <jchapman@katalix.com>
ip/ipl2tp.c