|
libnl
3.2.7
|
Modules | |
| Generic Netlink Family | |
| Management | |
Socket Creating | |
| int | genl_connect (struct nl_sock *sk) |
Sending | |
| int | genl_send_simple (struct nl_sock *sk, int family, int cmd, int version, int flags) |
| Send trivial generic netlink message. | |
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. | |
| int | genlmsg_len (const struct genlmsghdr *gnlh) |
| Get lenght of message payload. | |
| struct nlattr * | genlmsg_attrdata (const struct genlmsghdr *gnlh, int hdrlen) |
| Get head of attribute data. | |
| int | genlmsg_attrlen (const struct genlmsghdr *gnlh, int hdrlen) |
| Get length of attribute data. | |
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. | |
| int genl_send_simple | ( | struct nl_sock * | sk, |
| int | family, | ||
| int | cmd, | ||
| int | version, | ||
| int | flags | ||
| ) |
Send trivial generic netlink message.
| sk | Netlink socket. |
| 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 127 of file genl.c.
References nl_send_simple().
Here is the call graph for this function:| void* genlmsg_data | ( | const struct genlmsghdr * | gnlh | ) |
Get head of message payload.
| gnlh | genetlink messsage header |
Definition at line 190 of file genl.c.
Referenced by genlmsg_attrdata().
Here is the caller graph for this function:| int genlmsg_len | ( | const struct genlmsghdr * | gnlh | ) |
Get lenght of message payload.
| gnlh | genetlink message header |
Definition at line 199 of file genl.c.
Referenced by genlmsg_attrlen().
Here is the caller graph for this function:
|
read |
Get head of attribute data.
| gnlh | generic netlink message header |
| hdrlen | length of family specific header |
Definition at line 211 of file genl.c.
References genlmsg_data().
Here is the call graph for this function:| int genlmsg_attrlen | ( | const struct genlmsghdr * | gnlh, |
| int | hdrlen | ||
| ) |
Get length of attribute data.
| gnlh | generic netlink message header |
| hdrlen | length of family specific header |
Definition at line 221 of file genl.c.
References genlmsg_len().
Here is the call graph for this function:| 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.
| 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 246 of file genl.c.
References nlmsg_data(), and nlmsg_put().
Here is the call graph for this function: