Skip to content

Commit

Permalink
Trap type changes (opencomputeproject#1258) (#2)
Browse files Browse the repository at this point in the history
Added UDP port 6784 for BFD and BFDv6 trap types
Added new LDP trap type

Co-authored-by: Diamantis Kourkouzelis <[email protected]>
  • Loading branch information
2 people authored and TACappleman committed Oct 1, 2021
1 parent f6b2dc3 commit 5726dd8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions inc/saihostif.h
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,25 @@ typedef enum _sai_hostif_trap_type_t
*/
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 = 0x00004009,

/** Local IP traps custom range start */
SAI_HOSTIF_TRAP_TYPE_LOCAL_IP_CUSTOM_RANGE_BASE = 0x00005000,

Expand Down
1 change: 1 addition & 0 deletions meta/acronyms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5726dd8

Please sign in to comment.