Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hostif trap for NTP #1453

Merged
merged 2 commits into from
Apr 5, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions inc/saihostif.h
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,18 @@ typedef enum _sai_hostif_trap_type_t
*/
SAI_HOSTIF_TRAP_TYPE_P4RT = 0x0000400b,

/**
* @brief NTPCLIENT traffic (UDP/TCP src port == 123)
* to local router IP address (default packet action is drop)
*/
SAI_HOSTIF_TRAP_TYPE_NTPCLIENT = 0x0000400c,
vivekmoorthy marked this conversation as resolved.
Show resolved Hide resolved

/**
* @brief NTPSERVER traffic (UDP/TCP dst port == 123)
* to local router IP address (default packet action is drop)
*/
SAI_HOSTIF_TRAP_TYPE_NTPSERVER = 0x0000400d,

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

Expand Down
2 changes: 2 additions & 0 deletions meta/acronyms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ NAPT - Network Address Port Translation
NHLFE - Next Hop Label Forwarding Entry
NPU - Numeric Processing Unit
NRZ - Non Return to Zero
NTPCLIENT - Network Time Protocol Client
NTPSERVER - Network Time Protocol Server
NVGRE - Network Virtualization using Generic Routing Encapsulation
OAM - Operations Administration and Maintenance
OUI - Organizationally Unique Identifier
Expand Down