ntp - 网络时间协议 V4 - 数据包中的扩展字段计数
问题描述
我正在学习网络时间协议,并大致通过了IETF的 RFC 5905 。
它指出,The packet format consists of three components: the header itself, one or more optional extension fields, and an optional message authentication code (MAC)
从第 7.3 节开始,但似乎没有关于编码方案中这些可选扩展字段的计数。据我了解,如果没有此信息,则无法可靠地读取整个数据包,因为如果有任何扩展字段,总长度是未知的。
请任何人指出我错过或误解的内容。
解决方案
推荐阅读
- json - 从json制作结构
- c# - 在哪里返回 403 禁止状态?
- java - 如何重构要从 React Native 调用的原生 Android Java 方法?
- python - 将上下文信息传递到 PySide6 中的插槽
- linux - Snap:加载共享库时出错无法打开共享对象文件:没有这样的文件或目录
- html - 新规则不会从部分 .scss 文件馈送到主 .css 文件
- python - Flask 路由中的参数 - 分配前引用的局部变量
- c++ - 如何将整数转换为字符串?
- bash - Bash:如何确定变量是在命令中设置还是在父级中导出?
- python - 是否可以将 sql conn.cursor() 和 commit() 写入 python 函数?