Skip to content

Commit fc7e8a5

Browse files
vivekmoorthyVivek Ramamoorthy
andauthored
Add hostif trap for NTP (#1453)
* Add hostif traps for NTP. https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml?search=ntp Signed-off-by: Vivek Ramamoorthy <vivekmoorthy@google.com> * retrigger python LGTM Co-authored-by: Vivek Ramamoorthy <vivekmoorthy@google.com>
1 parent 6ac7306 commit fc7e8a5

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

inc/saihostif.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,18 @@ typedef enum _sai_hostif_trap_type_t
413413
*/
414414
SAI_HOSTIF_TRAP_TYPE_P4RT = 0x0000400b,
415415

416+
/**
417+
* @brief NTPCLIENT traffic (UDP/TCP src port == 123)
418+
* to local router IP address (default packet action is drop)
419+
*/
420+
SAI_HOSTIF_TRAP_TYPE_NTPCLIENT = 0x0000400c,
421+
422+
/**
423+
* @brief NTPSERVER traffic (UDP/TCP dst port == 123)
424+
* to local router IP address (default packet action is drop)
425+
*/
426+
SAI_HOSTIF_TRAP_TYPE_NTPSERVER = 0x0000400d,
427+
416428
/** Local IP traps custom range start */
417429
SAI_HOSTIF_TRAP_TYPE_LOCAL_IP_CUSTOM_RANGE_BASE = 0x00005000,
418430

meta/acronyms.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ NAPT - Network Address Port Translation
8585
NHLFE - Next Hop Label Forwarding Entry
8686
NPU - Numeric Processing Unit
8787
NRZ - Non Return to Zero
88+
NTPCLIENT - Network Time Protocol Client
89+
NTPSERVER - Network Time Protocol Server
8890
NVGRE - Network Virtualization using Generic Routing Encapsulation
8991
OAM - Operations Administration and Maintenance
9092
OUI - Organizationally Unique Identifier

0 commit comments

Comments
 (0)