IBR-DTNSuite  0.8
ibrcommon/ibrcommon/net/nl_policy.c File Reference
#include <netlink/netlink.h>
#include <netlink/attr.h>
#include "ibrcommon/net/nl802154.h"
Include dependency graph for nl_policy.c:

Go to the source code of this file.

Defines

#define NLA_HW_ADDR   NLA_U64

Variables

struct nla_policy ieee802154_policy [IEEE802154_ATTR_MAX+1]

Define Documentation

#define NLA_HW_ADDR   NLA_U64

Definition at line 25 of file nl_policy.c.


Variable Documentation

struct nla_policy ieee802154_policy[IEEE802154_ATTR_MAX+1]
Initial value:
 {
        [IEEE802154_ATTR_DEV_NAME] = { .type = NLA_STRING, },
        [IEEE802154_ATTR_DEV_INDEX] = { .type = NLA_U32, },
        [IEEE802154_ATTR_PHY_NAME] = { .type = NLA_STRING, },
        [IEEE802154_ATTR_DEV_TYPE] = { .type = NLA_U8, },

        [IEEE802154_ATTR_STATUS] = { .type = NLA_U8, },
        [IEEE802154_ATTR_SHORT_ADDR] = { .type = NLA_U16, },
        [IEEE802154_ATTR_HW_ADDR] = { .type = NLA_HW_ADDR, },
        [IEEE802154_ATTR_PAN_ID] = { .type = NLA_U16, },
        [IEEE802154_ATTR_CHANNEL] = { .type = NLA_U8, },
        [IEEE802154_ATTR_PAGE] = { .type = NLA_U8, },
        [IEEE802154_ATTR_COORD_SHORT_ADDR] = { .type = NLA_U16, },
        [IEEE802154_ATTR_COORD_HW_ADDR] = { .type = NLA_HW_ADDR, },
        [IEEE802154_ATTR_COORD_PAN_ID] = { .type = NLA_U16, },
        [IEEE802154_ATTR_SRC_SHORT_ADDR] = { .type = NLA_U16, },
        [IEEE802154_ATTR_SRC_HW_ADDR] = { .type = NLA_HW_ADDR, },
        [IEEE802154_ATTR_SRC_PAN_ID] = { .type = NLA_U16, },
        [IEEE802154_ATTR_DEST_SHORT_ADDR] = { .type = NLA_U16, },
        [IEEE802154_ATTR_DEST_HW_ADDR] = { .type = NLA_HW_ADDR, },
        [IEEE802154_ATTR_DEST_PAN_ID] = { .type = NLA_U16, },

        [IEEE802154_ATTR_CAPABILITY] = { .type = NLA_U8, },
        [IEEE802154_ATTR_REASON] = { .type = NLA_U8, },
        [IEEE802154_ATTR_SCAN_TYPE] = { .type = NLA_U8, },
        [IEEE802154_ATTR_CHANNELS] = { .type = NLA_U32, },
        [IEEE802154_ATTR_DURATION] = { .type = NLA_U8, },
        [IEEE802154_ATTR_ED_LIST] = { .minlen = 27, .maxlen = 27, },
        [IEEE802154_ATTR_CHANNEL_PAGE_LIST] = { .minlen = 0, .maxlen = 32 * 4, },
}

Definition at line 27 of file nl_policy.c.

Referenced by ibrcommon::lowpansocket::getAddress().