|
libnl
1.1.4
|
Modules | |
| Generic Netlink Family | |
| Management | |
Socket Creating | |
| int | genl_connect (struct nl_handle *handle) |
Sending | |
| int | genl_send_simple (struct nl_handle *handle, int family, int cmd, int version, int flags) |
| Send trivial generic netlink message. More... | |
Message Parsing | |
| int | genlmsg_valid_hdr (struct nlmsghdr *nlh, int hdrlen) |
| int | genlmsg_validate (struct nlmsghdr *nlh, int hdrlen, int maxtype, struct nla_policy *policy) |
| int | genlmsg_parse (struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, struct nla_policy *policy) |
| void * | genlmsg_data (const struct genlmsghdr *gnlh) |
| Get head of message payload. More... | |
| int | genlmsg_len (const struct genlmsghdr *gnlh) |
| Get lenght of message payload. More... | |
| struct nlattr * | genlmsg_attrdata (const struct genlmsghdr *gnlh, int hdrlen) |
| Get head of attribute data. More... | |
| int | genlmsg_attrlen (const struct genlmsghdr *gnlh, int hdrlen) |
| Get length of attribute data. More... | |
Message Building | |
| void * | genlmsg_put (struct nl_msg *msg, uint32_t pid, uint32_t seq, int family, int hdrlen, int flags, uint8_t cmd, uint8_t version) |
| Add generic netlink header to netlink message. More... | |
| int genl_send_simple | ( | struct nl_handle * | handle, |
| int | family, | ||
| int | cmd, | ||
| int | version, | ||
| int | flags | ||
| ) |
| handle | Netlink handle. |
| family | Generic netlink family |
| cmd | Command |
| version | Version |
| flags | Additional netlink message flags. |
Fills out a routing netlink request message and sends it out using nl_send_simple().
Definition at line 128 of file genl.c.
References nl_send_simple().
| void* genlmsg_data | ( | const struct genlmsghdr * | gnlh | ) |
| gnlh | genetlink messsage header |
Definition at line 191 of file genl.c.
Referenced by genlmsg_attrdata().
| int genlmsg_len | ( | const struct genlmsghdr * | gnlh | ) |
| gnlh | genetlink message header |
Definition at line 200 of file genl.c.
References nlmsghdr::nlmsg_len.
Referenced by genlmsg_attrlen().
| struct nlattr* genlmsg_attrdata | ( | const struct genlmsghdr * | gnlh, |
| int | hdrlen | ||
| ) |
| gnlh | generic netlink message header |
| hdrlen | length of family specific header |
Definition at line 212 of file genl.c.
References genlmsg_data().
| int genlmsg_attrlen | ( | const struct genlmsghdr * | gnlh, |
| int | hdrlen | ||
| ) |
| gnlh | generic netlink message header |
| hdrlen | length of family specific header |
Definition at line 222 of file genl.c.
References genlmsg_len().
| void* genlmsg_put | ( | struct nl_msg * | msg, |
| uint32_t | pid, | ||
| uint32_t | seq, | ||
| int | family, | ||
| int | hdrlen, | ||
| int | flags, | ||
| uint8_t | cmd, | ||
| uint8_t | version | ||
| ) |
| msg | netlink message |
| pid | netlink process id or NL_AUTO_PID |
| seq | sequence number of message or NL_AUTO_SEQ |
| family | generic netlink family |
| hdrlen | length of user specific header |
| flags | message flags |
| cmd | generic netlink command |
| version | protocol version |
Returns pointer to user specific header.
Definition at line 247 of file genl.c.
References nlmsg_data(), and nlmsg_put().
1.8.5