From 31ac0f46f4ee8849c019e237dd1e9a70c0d1c1de Mon Sep 17 00:00:00 2001 From: Suhas N Bhargav Date: Tue, 27 Jun 2023 12:27:27 +0530 Subject: [PATCH] etherip: Enable Etherip protocol number (97) in linux Change-Id: I59f8eefe9a53eb0ab77a3a8a912a7866f5c8c333 Signed-off-by: Suhas N Bhargav --- include/uapi/linux/in.h | 4 +++- tools/include/uapi/linux/in.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/in.h b/include/uapi/linux/in.h index 07a4cb149305..1c5639283f14 100644 --- a/include/uapi/linux/in.h +++ b/include/uapi/linux/in.h @@ -63,6 +63,8 @@ enum { #define IPPROTO_MTP IPPROTO_MTP IPPROTO_BEETPH = 94, /* IP option pseudo header for BEET */ #define IPPROTO_BEETPH IPPROTO_BEETPH + IPPROTO_ETHERIP = 97, /* ETHERIP protocol number */ +#define IPPROTO_ETHERIP IPPROTO_ETHERIP IPPROTO_ENCAP = 98, /* Encapsulation Header */ #define IPPROTO_ENCAP IPPROTO_ENCAP IPPROTO_PIM = 103, /* Protocol Independent Multicast */ @@ -325,7 +327,7 @@ struct sockaddr_in { #endif /* contains the htonl type stuff.. */ -#include +#include #endif /* _UAPI_LINUX_IN_H */ diff --git a/tools/include/uapi/linux/in.h b/tools/include/uapi/linux/in.h index 07a4cb149305..1c5639283f14 100644 --- a/tools/include/uapi/linux/in.h +++ b/tools/include/uapi/linux/in.h @@ -63,6 +63,8 @@ enum { #define IPPROTO_MTP IPPROTO_MTP IPPROTO_BEETPH = 94, /* IP option pseudo header for BEET */ #define IPPROTO_BEETPH IPPROTO_BEETPH + IPPROTO_ETHERIP = 97, /* ETHERIP protocol number */ +#define IPPROTO_ETHERIP IPPROTO_ETHERIP IPPROTO_ENCAP = 98, /* Encapsulation Header */ #define IPPROTO_ENCAP IPPROTO_ENCAP IPPROTO_PIM = 103, /* Protocol Independent Multicast */ @@ -325,7 +327,7 @@ struct sockaddr_in { #endif /* contains the htonl type stuff.. */ -#include +#include #endif /* _UAPI_LINUX_IN_H */ -- 2.34.1