Home
last modified time | relevance | path

Searched refs:trap_msg (Results 1 – 1 of 1) sorted by relevance

/third_party/lwip/src/apps/snmp/
Dsnmp_traps.c175 struct snmp_msg_trap trap_msg; in snmp_send_trap() local
183 trap_msg.snmp_version = 0; in snmp_send_trap()
188 if (snmp_get_local_ip_for_dst(snmp_traps_handle, &td->dip, &trap_msg.sip)) { in snmp_send_trap()
190 trap_msg.enterprise = snmp_get_device_enterprise_oid(); in snmp_send_trap()
192 trap_msg.enterprise = eoid; in snmp_send_trap()
195 trap_msg.gen_trap = generic_trap; in snmp_send_trap()
197 trap_msg.spc_trap = specific_trap; in snmp_send_trap()
199 trap_msg.spc_trap = 0; in snmp_send_trap()
202 MIB2_COPY_SYSUPTIME_TO(&trap_msg.ts); in snmp_send_trap()
205 tot_len = snmp_trap_varbind_sum(&trap_msg, varbinds); in snmp_send_trap()
[all …]