Skip to content

Netlink Packet Attributes #7

Description

@CMCDragonkai

We are attempting to use this library for communicating with netlink to create a new veth interface.

We have to construct nested packet attributes.

In your API for the packetAttributes, it set to be a map from integers to bytestrings.

What is the reason for doing this, and is there plans to create an API for an easier construction of nested attributes for the Netlink packet?

Furthermore, there's a bunch of constants that are missing from this library, especially things relating to veth interfaces:

-- if_link.h
eIFLA_INFO_DATA :: (Num a) => a
eIFLA_INFO_DATA = 2

-- veth.h
eVETH_INFO_PEER :: (Num a) => a
eVETH_INFO_PEER = 1

The above constants we had to define as well. Would you be intererested in adding extra constants to your package? Note that some of these constants have the same numbers as your existing constants, and your packet pretty printer thingks IFLA_INFO_DATA is `IFLA_BROADCAST?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions