I have a mib2c-based project that needs to be able to know whether an INDEX is IMPLIED - this allows the decision to use ASN_PRIV_IMPLIED_OCTET_STR to be:
if ( ($node->{type} == "OCTETSTR") && (@{ $node->{ranges} } == 1) ) { my $range = $node->{ranges}->[0]; if ( $range->{high} == $range->{low} ) { $fixedSize = 1; } } if ( $node->{implied} ) { $fixedSize = 1; } if ( $fixedSize ) { # use ASN_PRIV_IMPLIED_OCTET_STR } This could be an improvement to the existing mib2c-generated table code, although I didn't implement that part. My patch for this is in the patch tracker: https://sourceforge.net/tracker/index.php?func=detail&aid=2272347&group_id=12694&atid=312694 If you want to browse the diff with more context, you can see it at http://review.fenron.com/r/7/diff/ Bill ------------------------------------------------------------------------------ _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders