summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/uapi/linux/l2tp.h4
-rw-r--r--net/l2tp/l2tp_core.h1
-rw-r--r--net/l2tp/l2tp_netlink.c3
3 files changed, 2 insertions, 6 deletions
diff --git a/include/uapi/linux/l2tp.h b/include/uapi/linux/l2tp.h
index ae888606b3ec..41bf79a4b165 100644
--- a/include/uapi/linux/l2tp.h
+++ b/include/uapi/linux/l2tp.h
@@ -60,7 +60,7 @@ struct sockaddr_l2tpip6 {
60/* 60/*
61 * Commands. 61 * Commands.
62 * Valid TLVs of each command are:- 62 * Valid TLVs of each command are:-
63 * TUNNEL_CREATE - CONN_ID, pw_type, netns, ifname, ipinfo, udpinfo, udpcsum, vlanid 63 * TUNNEL_CREATE - CONN_ID, pw_type, netns, ifname, ipinfo, udpinfo, udpcsum
64 * TUNNEL_DELETE - CONN_ID 64 * TUNNEL_DELETE - CONN_ID
65 * TUNNEL_MODIFY - CONN_ID, udpcsum 65 * TUNNEL_MODIFY - CONN_ID, udpcsum
66 * TUNNEL_GETSTATS - CONN_ID, (stats) 66 * TUNNEL_GETSTATS - CONN_ID, (stats)
@@ -105,7 +105,7 @@ enum {
105 L2TP_ATTR_SESSION_ID, /* u32 */ 105 L2TP_ATTR_SESSION_ID, /* u32 */
106 L2TP_ATTR_PEER_SESSION_ID, /* u32 */ 106 L2TP_ATTR_PEER_SESSION_ID, /* u32 */
107 L2TP_ATTR_UDP_CSUM, /* u8 */ 107 L2TP_ATTR_UDP_CSUM, /* u8 */
108 L2TP_ATTR_VLAN_ID, /* u16 */ 108 L2TP_ATTR_VLAN_ID, /* u16 (not used) */
109 L2TP_ATTR_COOKIE, /* 0, 4 or 8 bytes */ 109 L2TP_ATTR_COOKIE, /* 0, 4 or 8 bytes */
110 L2TP_ATTR_PEER_COOKIE, /* 0, 4 or 8 bytes */ 110 L2TP_ATTR_PEER_COOKIE, /* 0, 4 or 8 bytes */
111 L2TP_ATTR_DEBUG, /* u32, enum l2tp_debug_flags */ 111 L2TP_ATTR_DEBUG, /* u32, enum l2tp_debug_flags */
diff --git a/net/l2tp/l2tp_core.h b/net/l2tp/l2tp_core.h
index 7dbfb55ab3b5..49fd5e05538c 100644
--- a/net/l2tp/l2tp_core.h
+++ b/net/l2tp/l2tp_core.h
@@ -54,7 +54,6 @@ struct l2tp_session_cfg {
54 * control of LNS. */ 54 * control of LNS. */
55 int debug; /* bitmask of debug message 55 int debug; /* bitmask of debug message
56 * categories */ 56 * categories */
57 u16 vlan_id; /* VLAN pseudowire only */
58 u16 l2specific_type; /* Layer 2 specific type */ 57 u16 l2specific_type; /* Layer 2 specific type */
59 u8 cookie[8]; /* optional cookie */ 58 u8 cookie[8]; /* optional cookie */
60 int cookie_len; /* 0, 4 or 8 bytes */ 59 int cookie_len; /* 0, 4 or 8 bytes */
diff --git a/net/l2tp/l2tp_netlink.c b/net/l2tp/l2tp_netlink.c
index e4785f6966f6..8ea1deefbc37 100644
--- a/net/l2tp/l2tp_netlink.c
+++ b/net/l2tp/l2tp_netlink.c
@@ -591,9 +591,6 @@ static int l2tp_nl_cmd_session_create(struct sk_buff *skb, struct genl_info *inf
591 } 591 }
592 if (info->attrs[L2TP_ATTR_IFNAME]) 592 if (info->attrs[L2TP_ATTR_IFNAME])
593 cfg.ifname = nla_data(info->attrs[L2TP_ATTR_IFNAME]); 593 cfg.ifname = nla_data(info->attrs[L2TP_ATTR_IFNAME]);
594
595 if (info->attrs[L2TP_ATTR_VLAN_ID])
596 cfg.vlan_id = nla_get_u16(info->attrs[L2TP_ATTR_VLAN_ID]);
597 } 594 }
598 595
599 if (info->attrs[L2TP_ATTR_DEBUG]) 596 if (info->attrs[L2TP_ATTR_DEBUG])