Skip to content

Done messages are missing the error code #11

Closed
@ghananigans

Description

@ghananigans

Currently, done messages are treated as having a zero-sized payload but they are expected to have at least a 4 byte payload. This causes issues when serializing a done message to be consumed by an application expecting conformant done messages.

Per netlink message types

NLMSG_ERROR and NLMSG_DONE are of practical importance. They carry return codes for operations. 

...

NLMSG_DONE is simpler, the request is never echoed but the extended ACK attributes may be present:

----------------------------------------------
| struct nlmsghdr - response header          |
----------------------------------------------
|    int error                               |
----------------------------------------------
| ** optionally extended ACK                 |
----------------------------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions