mz941 2017-04-11 11:22 采纳率: 0%
浏览 634
已结题

UDP 广播消息的解析 如何解析出下一步数据导出要使用的端口号

Connect Indication Attributes
This section describes the attributes contained in the Connect Indication Message.
Attribute: System Type
The System Type attribute describes the type of the system (e.g. Monitor).
Attribute ID: NOM_ATTR_SYS_TYPE
Attribute Type: TYPE (see Definitions Shared by Protocols)
Attribute Groups: -
Availability: -
Attribute: Protocol Support
The Protocol Support contains an entry for each protocol supported on the network interface.
Attribute ID: NOM_ATTR_PCOL_SUPPORT (查开发手册 NOM_ATTR_PCOL_SUPPORT 的值: 0xF101 )
Attribute Type: ProtoSupport
Attribute Groups: -
Availability: -
The ProtoSupport is defined as follows:
typedef struct {
u_16 count;
u_16 length;
ProtoSupportEntry value[1];
} ProtoSupport;
typedef struct {
ApplProtoId appl_proto;
TransProtoId trans_proto;
u_16 port_number;
ProtoOptions options;
} ProtoSupportEntry;
typedef u_16 ApplProtoId;
#define AP_ID_ACSE 1
#define AP_ID_DATA_OUT 5
typedef u_16 TransProtoId;
#define TP_ID_UDP 1
typedef u_16 ProtoOptions;
#define P_OPT_WIRELESS 0x8000
The Computer Client should parse the available protocols and search for the AP_ID_DATA_OUT.
This entry specifies the port for the Data Export Protocol. The corresponding Association Control
Protocol runs on the same port.
The Computer Client must only send requests to the port specified for the Data Export Protocol.
根据开发手册解析UDP收到的广播消息,广播消息里面含有下一步 数据导出的端口号,我已经分析出相对应的这段内容了 F1 01 00 2C 00 05 00 28 00 01 00 03 5D C0 00 00 00 02 00 03 5D C0 00 00 00 01 00 01 5E 29 00 00 00 05 00 01 5E 29 00 00 00 0A 00 01 5D CC 00 00 F3 5E 00 10 FE 80 00 (查开发手册 NOM_ATTR_PCOL_SUPPORT 的值: 0xF101 省去16进制标志0x就是 F1 01 。结束的 值 P_OPT_WIRELESS 0x8000 对应就是80 00)接下来就是根据上面的开发说明解析这一小段内容了,哪个高手帮我解析一下AP_ID_DATA_OUT的端口号啊

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
    • ¥15 数据可视化Python
    • ¥15 要给毕业设计添加扫码登录的功能!!有偿
    • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
    • ¥15 微信公众号自制会员卡没有收款渠道啊
    • ¥15 stable diffusion
    • ¥100 Jenkins自动化部署—悬赏100元
    • ¥15 关于#python#的问题:求帮写python代码
    • ¥20 MATLAB画图图形出现上下震荡的线条
    • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘