SNMP 2.0.0
Loading...
Searching...
No Matches
SNMP::Port Struct Reference

Helper struct to handle UDP ports. More...

#include <src/SNMP.h>

Static Public Attributes

static constexpr uint16_t SNMP = 161
 
static constexpr uint16_t Trap = 162
 

Detailed Description

Helper struct to handle UDP ports.

SNMP uses 2 well-known UDP ports.

  • Manager uses port 161 to communicate with an agent.
  • Agent uses port 162 to send trap messages to the manager.

Definition at line 23 of file SNMP.h.

Member Data Documentation

◆ SNMP

uint16_t SNMP::Port::SNMP = 161
staticconstexpr

SNMP default UDP port.

Definition at line 24 of file SNMP.h.

◆ Trap

uint16_t SNMP::Port::Trap = 162
staticconstexpr

SNMP default UDP port for TRAP, INFORMREQUEST and SNMPV2TRAP messages.

Definition at line 25 of file SNMP.h.


The documentation for this struct was generated from the following file: