Home
last modified time | relevance | path

Searched refs:smiType (Results 1 – 25 of 34) sorted by relevance

12

/dports/net-mgmt/libsmi/libsmi-0.4.8/tools/
H A Ddump-types.c55 SmiType *smiType; member
297 newType->smiType = smiType; in addToTypeTree()
352 && smiType->name in findInTypeTree()
353 && root->smiType && root->smiType == smiType) { in findInTypeTree()
409 if (smiType == typeNode->smiType) { in getTypeName()
416 if (smiType == typeNode->smiType) { in getTypeName()
597 smiType; in dumpTypes()
598 smiType = smiGetNextType(smiType)) { in dumpTypes()
606 if (smiType) { in dumpTypes()
621 if (smiType) { in dumpTypes()
[all …]
H A Ddump-smi.c262 typeName = smiType ? smiType->name : NULL; in getTypeString()
482 smiType; smiType = smiGetNextType(smiType)) { in createImportList()
510 if (smiType && (smiType->decl == SMI_DECL_IMPLICIT_TYPE)) { in createImportList()
511 smiType = smiGetParentType(smiType); in createImportList()
513 if (smiType) { in createImportList()
613 smiType; smiType = smiGetNextType(smiType)) { in createImportList()
1115 smiType; smiType = smiGetNextType(smiType)) { in fprintTypeDefinitions()
1223 smiType; smiType = smiGetNextType(smiType)) { in fprintTextualConventions()
1266 invalid = !smiType ? 0 : invalidType(smiType->basetype); in fprintObjects()
1349 getTypeString(smiType->basetype, smiType)); in fprintObjects()
[all …]
H A Ddump-sppi.c136 typeName = smiType ? smiType->name : NULL; in getTypeString()
330 if (smiType && (smiType->decl == SMI_DECL_IMPLICIT_TYPE)) { in createImportList()
331 smiType = smiGetParentType(smiType); in createImportList()
333 if (smiType) { in createImportList()
406 smiType; smiType = smiGetNextType(smiType)) { in createImportList()
974 smiType; smiType = smiGetNextType(smiType)) { in fprintTypeDefinitions()
999 smiType; smiType = smiGetNextType(smiType)) { in fprintTextualConventions()
1132 getTypeString(smiType->basetype, smiType)); in fprintObjects()
1142 if (! assignement && smiType && smiType->name && in fprintObjects()
1151 if (! assignement && smiType && smiType->name && in fprintObjects()
[all …]
H A Ddump-sizes.c59 getAbsMinEnum(SmiType *smiType) in getAbsMinEnum() argument
77 getAbsMaxEnum(SmiType *smiType) in getAbsMaxEnum() argument
486 len = smiGetMaxSize(smiType); in ber_len_val_octs()
489 len = (smiGetMaxSize(smiType) + smiGetMinSize(smiType)) / 2; in ber_len_val_octs()
492 len = smiGetMinSize(smiType); in ber_len_val_octs()
510 len = (smiGetMaxSize(smiType) + smiGetMinSize(smiType)) / 2; in ber_len_val_bits()
531 val = (getAbsMaxEnum(smiType) + getAbsMinEnum(smiType)) / 2; in ber_len_val_enum()
552 val = (getAbsMaxInteger32(smiType) + getAbsMinInteger32(smiType)) / 2; in ber_len_val_int32()
573 val = (getMaxUnsigned32(smiType) + getMinUnsigned32(smiType)) / 2; in ber_len_val_uint32()
594 val = (getAbsMaxInteger64(smiType) + getAbsMinInteger64(smiType)) / 2; in ber_len_val_int64()
[all …]
H A Ddump-xsd.c499 if( smiType->format && in fprintRestriction()
1109 SmiType *smiType; in fprintIndexAttr() local
1112 if( !smiType ) { in fprintIndexAttr()
1118 smiType->name : in fprintIndexAttr()
1371 SmiType *smiType; in fprintElement() local
1442 if( smiType->name ) { in fprintElement()
1533 SmiType *smiType; in fprintImplicitTypes() local
1541 if( smiType ) { in fprintImplicitTypes()
1939 smiType; in fprintTypedefs()
1940 i++, smiType = smiGetNextType(smiType)) { in fprintTypedefs()
[all …]
H A Ddump-corba.c553 if (smiType) { in createImportList()
989 smiType; in fprintTypedefs()
990 smiType = smiGetNextType(smiType)) { in fprintTypedefs()
1001 if (smiType && ! smiType->name) { in fprintTypedefs()
1023 if (! smiType) { in fprintAttribute()
1277 if (smiType) { in fprintNotificationVBTypes()
1450 if (smiType) { in fprintDefVals()
1481 smiType; in fprintDisplayHints()
1482 smiType = smiGetNextType(smiType)) { in fprintDisplayHints()
1483 if (current(smiType->status) && smiType->format) { in fprintDisplayHints()
[all …]
H A Ddump-mosy.c230 smiType; smiType = smiGetNextType(smiType)) { in printTypedefs()
247 smiType->name, type_name, in printTypedefs()
248 smiType->format ? smiType->format : ""); in printTypedefs()
253 smiType->name, nn->name, in printTypedefs()
266 SmiType *smiType; in printObjects() local
297 smiType = smiGetNodeType(smiNode); in printObjects()
299 if (! smiType) { in printObjects()
303 if (smiType && (smiType->decl != SMI_DECL_IMPLICIT_TYPE)) { in printObjects()
304 type_name = smiType->name; in printObjects()
310 if (smiType && smiType->decl == SMI_DECL_IMPLICIT_TYPE) { in printObjects()
[all …]
H A Ddump-scli.c684 if (smiType && smiType->name) { in printHeaderEnumeration()
744 if (smiType && !smiType->name in printHeaderEnumerations()
757 smiType = smiGetNextType(smiType)) { in printHeaderEnumerations()
1033 if (smiType && smiType->name in printMethodPrototypes()
1419 if (smiType && smiType->name) { in printStubEnumeration()
1477 if (smiType && !smiType->name in printStubEnumerations()
1487 smiType = smiGetNextType(smiType)) { in printStubEnumerations()
1644 for (cnt = 0; !cnt && smiType; smiType = smiGetParentType(smiType)) { in printSizeConstraints()
2047 for (c = 0; smiType; smiType = smiGetParentType(smiType)) { in printInteger32RangeChecks()
2089 for (c = 0; smiType; smiType = smiGetParentType(smiType)) { in printUnsigned32RangeChecks()
[all …]
H A Ddump-yang.c383 SmiType *smiType; in createImportList() local
434 smiType; smiType = smiGetNextType(smiType)) { in createImportList()
447 if (! smiType->name) { in createImportList()
448 smiType = smiGetParentType(smiType); in createImportList()
450 if (smiType && strcmp(smiType->name, "ObjectIdentifier") == 0) { in createImportList()
633 if (smiType->format in fprintSubtype()
763 if (smiType && ! smiType->name) { in fprintTypename()
778 typeName = smiType->name; in fprintTypename()
813 smiType; smiType = smiGetNextType(smiType)) { in fprintTypedefs()
832 fprintDefault(f, 2 * INDENT, &smiType->value, smiType); in fprintTypedefs()
[all …]
H A Ddump-python.c396 SmiType *smiType) in fprintValue() argument
666 if (smiType->name && smiType->status != SMI_STATUS_UNKNOWN) { in fprintTypedef()
684 fprintValue(f, indent + INDENT, &smiType->value, smiType); in fprintTypedef()
698 SmiType *smiType; in fprintTypedefs() local
701 smiType; in fprintTypedefs()
702 i++, smiType = smiGetNextType(smiType)) { in fprintTypedefs()
750 if (smiType && (smiType->basetype != SMI_BASETYPE_UNKNOWN)) { in fprintNode()
769 if (smiType) { in fprintNode()
944 SmiType *smiType; in fprintRefinement() local
955 if (smiType) { in fprintRefinement()
[all …]
H A Ddump-perl.c392 SmiType *smiType) in fprintValue() argument
662 if (smiType->name) { in fprintTypedef()
669 if (smiType->name && smiType->status != SMI_STATUS_UNKNOWN) { in fprintTypedef()
686 fprintValue(f, indent + INDENT, &smiType->value, smiType); in fprintTypedef()
708 smiType; in fprintTypedefs()
709 i++, smiType = smiGetNextType(smiType)) { in fprintTypedefs()
760 if (smiType && (smiType->basetype != SMI_BASETYPE_UNKNOWN)) { in fprintNode()
780 if (smiType) { in fprintNode()
945 SmiType *smiType; in fprintRefinement() local
956 if (smiType) { in fprintRefinement()
[all …]
H A Ddump-xml.c358 SmiType *smiType) in fprintValue() argument
596 if (smiType->name && smiType->status != SMI_STATUS_UNKNOWN) { in fprintTypedef()
611 fprintValue(f, indent + INDENT, &smiType->value, smiType); in fprintTypedef()
625 SmiType *smiType; in fprintTypedefs() local
628 smiType; in fprintTypedefs()
629 i++, smiType = smiGetNextType(smiType)) { in fprintTypedefs()
677 if (smiType && (smiType->basetype != SMI_BASETYPE_UNKNOWN)) { in fprintNode()
696 if (smiType) { in fprintNode()
862 SmiType *smiType; in fprintRefinement() local
871 if (smiType) { in fprintRefinement()
[all …]
H A Ddump-sming.c219 typeName = smiType ? smiType->name : NULL; in getTypeString()
220 typeModule = smiType ? smiGetTypeModule(smiType)->name : NULL; in getTypeString()
364 if (smiType && (smiType->decl == SMI_DECL_IMPLICIT_TYPE)) { in createImportList()
365 smiType = smiGetParentType(smiType); in createImportList()
367 if (smiType) { in createImportList()
777 smiType; smiType = smiGetNextType(smiType)) { in fprintTypedefs()
801 fprint(f, "%s", getValueString(&smiType->value, smiType)); in fprintTypedefs()
1175 if (smiType && (smiType->basetype != SMI_BASETYPE_UNKNOWN)) { in fprintObjects()
1187 getTypeString(smiType->basetype, smiType)); in fprintObjects()
1556 if (smiType) { in fprintCompliances()
[all …]
H A Ddump-identifiers.c93 SmiType *smiType; in fprintTypeIdentifiers() local
97 for (smiType = smiGetFirstType(modv[i]); in fprintTypeIdentifiers()
98 smiType; in fprintTypeIdentifiers()
99 smiType = smiGetNextType(smiType)) { in fprintTypeIdentifiers()
100 if (smiType->name) { in fprintTypeIdentifiers()
102 fprintf(f, "%*s", -identifierLen, smiType->name); in fprintTypeIdentifiers()
103 fprintf(f, " %d", smiGetTypeLine(smiType)); in fprintTypeIdentifiers()
105 fprintf(f, " %s TEXTUAL-CONVENTION\n", smiType->name); in fprintTypeIdentifiers()
110 fprintf(f, ":%d:", smiGetTypeLine(smiType)); in fprintTypeIdentifiers()
112 fprintf(f, " %*s %-12s\n", -identifierLen, smiType->name, in fprintTypeIdentifiers()
H A Ddump-metrics.c222 smiType; in calcSize()
223 smiType = smiGetNextType(smiType)) { in calcSize()
344 if (smiType->name && smiGetParentType(smiType)) { in incrTypeAndNodeUsageCounter()
363 smiType = smiGetParentType(smiType); in incrTypeAndNodeUsageCounter()
968 if (smiType && smiType->name) { in incrRowStatusCounter()
1167 smiType; in addMetrics()
1168 smiType = smiGetNextType(smiType)) { in addMetrics()
1186 smiType->description, smiType->reference, in addMetrics()
1187 smiType->units, smiType->format); in addMetrics()
1189 smiType->description, smiType->reference, in addMetrics()
[all …]
H A Ddump-jax.c116 if (smiType) { in getJavaType()
134 if (smiType) { in getAgentXType()
140 smiType = parentType; in getAgentXType()
149 if ((smiType->name) && in getAgentXType()
448 SmiType *smiType; in dumpEntry() local
500 if (!smiType) continue; in dumpEntry()
657 getJavaType(smiType), in dumpEntry()
727 SmiType *smiType; in dumpEntryImpl() local
805 if (!smiType) continue; in dumpEntryImpl()
885 SmiType *smiType; in dumpScalars() local
[all …]
H A Ddump-netsnmp.c232 SmiType *smiType; in printHeaderTypedef() local
257 if (!smiType) { in printHeaderTypedef()
262 switch (smiType->basetype) { in printHeaderTypedef()
330 if (!smiType) { in printHeaderTypedef()
335 switch (smiType->basetype) { in printHeaderTypedef()
565 SmiType *smiType; in printAgtDefinesGroup() local
608 if (!smiType) { in printAgtDefinesGroup()
712 SmiType *smiType; in printAgtReadMethod() local
761 if (! smiType) { in printAgtReadMethod()
957 SmiType *smiType; in printMgrGetScalarAssignement() local
[all …]
H A Ddump-compliance.c79 SmiType *smiType, *parentType; in getTypeName() local
81 smiType = smiGetNodeType(smiNode); in getTypeName()
83 if (!smiType || smiNode->nodekind == SMI_NODEKIND_TABLE) in getTypeName()
86 if (smiType->decl == SMI_DECL_IMPLICIT_TYPE) { in getTypeName()
87 parentType = smiGetParentType(smiType); in getTypeName()
90 smiType = parentType; in getTypeName()
93 type = xstrdup(smiType->name); in getTypeName()
H A Drea.c702 SmiType *smiType, *parentType; in algGetTypeDescription() local
704 smiType = smiGetNodeType(smiNode); in algGetTypeDescription()
711 smiType = parentType; in algGetTypeDescription()
714 return smiType->description; in algGetTypeDescription()
724 SmiType *smiType, *parentType; in algGetTypeName() local
726 smiType = smiGetNodeType(smiNode); in algGetTypeName()
733 smiType = parentType; in algGetTypeName()
736 return smiType->name; in algGetTypeName()
746 SmiType *smiType, *parentType; in algGetTypeModule() local
749 smiType = smiGetNodeType(smiNode); in algGetTypeModule()
[all …]
H A Ddump-tree.c89 SmiType *smiType, *parentType; in getTypeName() local
91 smiType = smiGetNodeType(smiNode); in getTypeName()
93 if (!smiType || smiNode->nodekind == SMI_NODEKIND_TABLE) in getTypeName()
96 if (smiType->decl == SMI_DECL_IMPLICIT_TYPE) { in getTypeName()
97 parentType = smiGetParentType(smiType); in getTypeName()
100 smiType = parentType; in getTypeName()
103 type = xstrdup(smiType->name); in getTypeName()
H A Ddump-fig.c140 SmiType *smiType; in printClass() local
152 smiType = smiGetNodeType(childNode); in printClass()
154 sprintf(string, "%s : %s", childNode->name, smiType->name); in printClass()
/dports/net/tcpdump/tcpdump-4.99.1/
H A Dprint-snmp.c964 switch (smiType->basetype) { in smi_check_a_range()
1014 for (smiRange = smiGetFirstRange(smiType); in smi_check_range()
1018 ok = smi_check_a_range(smiType, smiRange, elem); in smi_check_range()
1027 parentType = smiGetParentType(smiType); in smi_check_range()
1075 SmiType *smiType; in smi_print_value() local
1107 smiType = smiGetNodeType(smiNode); in smi_print_value()
1108 if (! smiType) { in smi_print_value()
1116 if (! smi_check_range(smiType, elem)) { in smi_print_value()
1130 if (smiType->basetype == SMI_BASETYPE_BITS) { in smi_print_value()
1156 if (smiType->basetype == SMI_BASETYPE_ENUM) { in smi_print_value()
[all …]
/dports/net-mgmt/argus3-clients/argus-clients-3.0.8.3/examples/radump/
H A Dprint-snmp.c956 switch (smiType->basetype) { in smi_check_a_range()
1006 for (smiRange = smiGetFirstRange(smiType); in smi_check_range()
1010 ok = smi_check_a_range(smiType, smiRange, elem); in smi_check_range()
1019 parentType = smiGetParentType(smiType); in smi_check_range()
1061 SmiType *smiType; in smi_print_value() local
1093 smiType = smiGetNodeType(smiNode); in smi_print_value()
1094 if (! smiType) { in smi_print_value()
1102 if (! smi_check_range(smiType, elem)) { in smi_print_value()
1116 if (smiType->basetype == SMI_BASETYPE_BITS) { in smi_print_value()
1141 if (smiType->basetype == SMI_BASETYPE_ENUM) { in smi_print_value()
[all …]
/dports/net/wireshark/wireshark-3.6.1/epan/
H A Doids.c286 static const oid_value_type_t* get_typedata(SmiType* smiType) { in get_typedata() argument
330 SmiType* sT = smiType; in get_typedata()
332 if (!smiType) return NULL; in get_typedata()
348 if(smiType->basetype == t->base) { in get_typedata()
622 SmiType* smiType = smiGetNodeType(smiNode); in register_mibs() local
623 const oid_value_type_t* typedata = get_typedata(smiType); in register_mibs()
668 if ( IS_ENUMABLE(hf.hfinfo.type) && (smiEnum = smiGetFirstNamedNumber(smiType))) { in register_mibs()
683 …} else if (smiType->basetype == SMI_BASETYPE_BITS && ( smiEnum = smiGetFirstNamedNumber(smiType) )… in register_mibs()
697 for(smiEnum = smiGetFirstNamedNumber(smiType),n=0; in register_mibs()
/dports/net/wireshark-lite/wireshark-3.6.1/epan/
H A Doids.c286 static const oid_value_type_t* get_typedata(SmiType* smiType) {
330 SmiType* sT = smiType;
332 if (!smiType) return NULL;
348 if(smiType->basetype == t->base) {
622 SmiType* smiType = smiGetNodeType(smiNode);
623 const oid_value_type_t* typedata = get_typedata(smiType);
668 if ( IS_ENUMABLE(hf.hfinfo.type) && (smiEnum = smiGetFirstNamedNumber(smiType))) {
683 …} else if (smiType->basetype == SMI_BASETYPE_BITS && ( smiEnum = smiGetFirstNamedNumber(smiType) )…
697 for(smiEnum = smiGetFirstNamedNumber(smiType),n=0;

12