SNMP: Add IPaddress scalar to clixon mib and fix ipv4 set translation

This commit is contained in:
Olof hagsand 2022-07-08 09:47:22 +02:00
parent 1b66dfe1b9
commit d9cdd669d2
2 changed files with 12 additions and 4 deletions

View file

@ -127,7 +127,8 @@ static const map_str2int snmp_orig_map[] = {
{"binary", ASN_OCTET_STR}, // 4
{"timeticks", ASN_TIMETICKS}, // 0x43 / 67
{"timestamp", ASN_TIMETICKS}, // 0x43 / 67
{"InetAddress", ASN_IPADDRESS}, // 0x40 / 64
{"InetAddress", ASN_IPADDRESS}, // 0x40 / 64 (Dont see this being used)
{"ipv4-address", ASN_IPADDRESS}, // 0x40 / 64 (This is used instead)
{"phys-address", CLIXON_ASN_PHYS_ADDR}, /* Clixon extended string type */
{"SnmpAdminString", CLIXON_ASN_ADMIN_STRING}, /* cf extension display-type 255T? */
{NULL, -1}