message with type NLMSG_DONE can also have payload
qingyunha opened this issue · comments
qingyunha commented
[76, 0, 0, 0, 3, 0, 0, 0, 119, 180, 25, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 119, 180, 25, 0, 0, 0, 0, 0, 40, 0, 0, 0, 0, 0, 0, 128, 1, 0, 0, 0, 222, 247, 17, 88, 241, 109, 22, 0, 35, 170, 18, 0, 35, 170, 18, 0, 0, 0, 0, 0, 17, 0, 0, 0, 28, 170, 18, 0, 28, 170, 18, 0]
NetlinkMessage { header: NetlinkHeader { length: 76, message_type: 3, flags: 0, sequence_number: 1684599, port_number: 0 }, payload: Done }
The above is an example of NETLINK_CONNECTOR group cn_proc message. It has a payload but ignores parse.
netlink/netlink-packet-core/src/message.rs
Line 112 in f21ddb2
Stefan Bühler commented