Skip to content

Commit 65b32f8

Browse files
WojDrewPaolo Abeni
authored andcommitted
uapi: move IPPROTO_L2TP to in.h
IPPROTO_L2TP is currently defined in l2tp.h, but most of ip protocols are defined in in.h file. Move it there in order to keep code clean. Acked-by: Guillaume Nault <[email protected]> Signed-off-by: Wojciech Drewek <[email protected]> Signed-off-by: Tony Nguyen <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
1 parent ed48cfe commit 65b32f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/uapi/linux/in.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ enum {
6868
#define IPPROTO_PIM IPPROTO_PIM
6969
IPPROTO_COMP = 108, /* Compression Header Protocol */
7070
#define IPPROTO_COMP IPPROTO_COMP
71+
IPPROTO_L2TP = 115, /* Layer 2 Tunnelling Protocol */
72+
#define IPPROTO_L2TP IPPROTO_L2TP
7173
IPPROTO_SCTP = 132, /* Stream Control Transport Protocol */
7274
#define IPPROTO_SCTP IPPROTO_SCTP
7375
IPPROTO_UDPLITE = 136, /* UDP-Lite (RFC 3828) */

include/uapi/linux/l2tp.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
#include <linux/in.h>
1414
#include <linux/in6.h>
1515

16-
#define IPPROTO_L2TP 115
17-
1816
/**
1917
* struct sockaddr_l2tpip - the sockaddr structure for L2TP-over-IP sockets
2018
* @l2tp_family: address family number AF_L2TPIP.

0 commit comments

Comments
 (0)