Home
last modified time | relevance | path

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

/freebsd/contrib/bsnmp/snmpd/
H A Daction.c153 snmpd_engine.engine_boots = 1; in init_snmpd_engine()
154 snmpd_engine.engine_time = 1; in init_snmpd_engine()
155 snmpd_engine.max_msg_size = 1500; /* XXX */ in init_snmpd_engine()
157 snmpd_engine.engine_id[0] = ((OID_freeBSD & 0xff000000) >> 24) | 0x80; in init_snmpd_engine()
158 snmpd_engine.engine_id[1] = (OID_freeBSD & 0xff0000) >> 16; in init_snmpd_engine()
159 snmpd_engine.engine_id[2] = (OID_freeBSD & 0xff00) >> 8; in init_snmpd_engine()
160 snmpd_engine.engine_id[3] = OID_freeBSD & 0xff; in init_snmpd_engine()
161 snmpd_engine.engine_id[4] = 128; in init_snmpd_engine()
162 snmpd_engine.engine_len = 5; in init_snmpd_engine()
167 if (strlen(hostid) > SNMP_ENGINE_ID_SIZ - snmpd_engine.engine_len) { in init_snmpd_engine()
[all …]
H A Dtrap.c493 memcpy(pdu->engine.engine_id, snmpd_engine.engine_id, in snmp_create_v3_trap()
494 snmpd_engine.engine_len); in snmp_create_v3_trap()
495 pdu->engine.engine_len = snmpd_engine.engine_len; in snmp_create_v3_trap()
496 pdu->engine.engine_boots = snmpd_engine.engine_boots; in snmp_create_v3_trap()
497 pdu->engine.engine_time = snmpd_engine.engine_time; in snmp_create_v3_trap()
498 pdu->engine.max_msg_size = snmpd_engine.max_msg_size; in snmp_create_v3_trap()
503 pdu->context_engine_len = snmpd_engine.engine_len; in snmp_create_v3_trap()
504 memcpy(pdu->context_engine, snmpd_engine.engine_id, in snmp_create_v3_trap()
505 snmpd_engine.engine_len); in snmp_create_v3_trap()
H A Dmain.c103 struct snmp_engine snmpd_engine; variable
312 pdu->engine.engine_len = snmpd_engine.engine_len; in snmp_pdu_auth_user()
313 memcpy(pdu->engine.engine_id, snmpd_engine.engine_id, in snmp_pdu_auth_user()
314 snmpd_engine.engine_len); in snmp_pdu_auth_user()
316 pdu->engine.engine_boots = snmpd_engine.engine_boots; in snmp_pdu_auth_user()
317 pdu->engine.engine_time = snmpd_engine.engine_time; in snmp_pdu_auth_user()
327 if (usm_user->user_engine_len != snmpd_engine.engine_len || in snmp_pdu_auth_user()
328 memcmp(usm_user->user_engine_id, snmpd_engine.engine_id, in snmp_pdu_auth_user()
329 snmpd_engine.engine_len) != 0) in snmp_pdu_auth_user()
350 if (pdu->engine.engine_boots != snmpd_engine.engine_boots || in snmp_pdu_auth_user()
[all …]
H A Dsnmpd.h291 extern struct snmp_engine snmpd_engine;