From e6e93ee790fafb93f26b8860ce45704a6526bb4a Mon Sep 17 00:00:00 2001 From: Diamantis Kourkouzelis Date: Mon, 28 Jun 2021 14:50:42 -0700 Subject: [PATCH 1/3] Trap type changes - Added UDP port 6784 for BFD and BFDv6 trap types - Added new LDP trap type Signed-off-by: Diamantis Kourkouzelis --- inc/saihostif.h | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/inc/saihostif.h b/inc/saihostif.h index 99e95714f..4404a7e13 100644 --- a/inc/saihostif.h +++ b/inc/saihostif.h @@ -359,17 +359,26 @@ typedef enum _sai_hostif_trap_type_t SAI_HOSTIF_TRAP_TYPE_BGPV6 = 0x00004004, /** - * @brief BFD traffic (UDP dst port == 3784 or UDP dst port == 4784) to local - * router IP address (default packet action is drop) + * @brief BFD traffic (UDP dst port == 3784 or UDP dst port == 4784 or + * UDP dst port == 6784) to local router IP address (default packet + * action is drop) */ SAI_HOSTIF_TRAP_TYPE_BFD = 0x00004005, /** - * @brief BFDV6 traffic (UDP dst port == 3784 or UDP dst port == 4784) to - * local router IP address (default packet action is drop) + * @brief BFD traffic (UDP dst port == 3784 or UDP dst port == 4784 or + * UDP dst port == 6784) to local router IP address (default packet + * action is drop) */ SAI_HOSTIF_TRAP_TYPE_BFDV6 = 0x00004006, + /** + * @brief LDP traffic (TCP src port == 646 or TCP dst port == 646) to local + * router IP address or, (UDP dst port == 646) to the 'all routers on this + * subnet' group multicast address (224.0.0.2) (default packet action is drop) + */ + SAI_HOSTIF_TRAP_TYPE_LDP = 0x00004007, + /** Local IP traps custom range start */ SAI_HOSTIF_TRAP_TYPE_LOCAL_IP_CUSTOM_RANGE_BASE = 0x00005000, From a1f21a161964655196e7dfb03a66a30e2088995c Mon Sep 17 00:00:00 2001 From: Diamantis Kourkouzelis Date: Tue, 29 Jun 2021 03:41:26 -0700 Subject: [PATCH 2/3] Added LDP to acronyms.txt Signed-off-by: Diamantis Kourkouzelis --- meta/acronyms.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/acronyms.txt b/meta/acronyms.txt index e44e962fa..815ae5191 100644 --- a/meta/acronyms.txt +++ b/meta/acronyms.txt @@ -66,6 +66,7 @@ L2 - Layer 2 L2MC - Layer 2 Multi Cast L3 - Layer 3 LAG - Link Aggregation Group +LDP - Label Distribution Protocol LPM - Longest Prefix Match LSP - Label Switched Path MAC - Medium Access Control From d61f4f7397911f39f658794fff50249eab2f2bb9 Mon Sep 17 00:00:00 2001 From: Diamantis Kourkouzelis Date: Fri, 16 Jul 2021 06:36:09 -0700 Subject: [PATCH 3/3] Addressing review comments Signed-off-by: Diamantis Kourkouzelis --- inc/saihostif.h | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/inc/saihostif.h b/inc/saihostif.h index 4404a7e13..1d93dba2a 100644 --- a/inc/saihostif.h +++ b/inc/saihostif.h @@ -359,25 +359,35 @@ typedef enum _sai_hostif_trap_type_t SAI_HOSTIF_TRAP_TYPE_BGPV6 = 0x00004004, /** - * @brief BFD traffic (UDP dst port == 3784 or UDP dst port == 4784 or - * UDP dst port == 6784) to local router IP address (default packet - * action is drop) + * @brief BFD traffic (UDP dst port == 3784 or UDP dst port == 4784) to local + * router IP address (default packet action is drop) */ SAI_HOSTIF_TRAP_TYPE_BFD = 0x00004005, /** - * @brief BFD traffic (UDP dst port == 3784 or UDP dst port == 4784 or - * UDP dst port == 6784) to local router IP address (default packet - * action is drop) + * @brief BFDV6 traffic (UDP dst port == 3784 or UDP dst port == 4784) to + * local router IP address (default packet action is drop) */ SAI_HOSTIF_TRAP_TYPE_BFDV6 = 0x00004006, + /** + * @brief Micro BFD traffic (UDP dst port == 6784) to local + * router IP address (default packet action is drop) + */ + SAI_HOSTIF_TRAP_TYPE_BFD_MICRO = 0x00004007, + + /** + * @brief Micro BFDV6 traffic (UDP dst port == 6784) to local + * router IP address (default packet action is drop) + */ + SAI_HOSTIF_TRAP_TYPE_BFDV6_MICRO = 0x00004008, + /** * @brief LDP traffic (TCP src port == 646 or TCP dst port == 646) to local * router IP address or, (UDP dst port == 646) to the 'all routers on this * subnet' group multicast address (224.0.0.2) (default packet action is drop) */ - SAI_HOSTIF_TRAP_TYPE_LDP = 0x00004007, + SAI_HOSTIF_TRAP_TYPE_LDP = 0x00004009, /** Local IP traps custom range start */ SAI_HOSTIF_TRAP_TYPE_LOCAL_IP_CUSTOM_RANGE_BASE = 0x00005000,