如何从 mib2c.conf 中类型标量(SYNTAX BITS)获取位数?
我在“man mib2c.conf”中找不到任何内容。是否有类似 $var.length/$var.size 的东西?
I couldn't find anything in "man mib2c.conf". Is there something like $var.length/$var.size by any chance?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯,它没有尺寸/长度。但它确实有可用的枚举,您可以从中确定大小。这是一个可以让你获得最大枚举值的技巧,这意味着大小将是那么多位:
例如,当将其放入 mteTriggreTable 列的循环中时,你会得到:
Well, it doesn't have a size/length. But it does have the enums available from which you could determine the size. Here's a hack that will get you the maximum enum value, which would mean that the size will be that many bits:
When this is put in a loop over the mteTriggreTable columns for example, you get: