libnl: genl_info Struct Reference

libnl 3.12.0

genl_info Struct Reference
Generic Netlink Library (libnl-genl) » Family and Command Registration

Informative structure passed on to message parser callbacks. More...

`#include <netlink/genl/mngt.h>`

## Data Fields
struct sockaddr_nl * | who
| Socket address of sender.
struct nlmsghdr * | nlh
| Pointer to Netlink message header.
struct genlmsghdr * | genlhdr
| Pointer to Generic Netlink message header.
void * | userhdr
| Pointer to user header.
struct nlattr ** | attrs
| Pointer to array of parsed attributes.

## Detailed Description

Informative structure passed on to message parser callbacks.

This structure is passed on to all message parser callbacks and contains information about the sender of the message as well as pointers to all relevant sections of the parsed message.

See also
  genl_cmd::c_msg_parser

Definition at line 31 of file mngt.h.

## Field Documentation

## ◆ who

struct sockaddr_nl* genl_info::who

Socket address of sender.

Definition at line 34 of file mngt.h.

## ◆ nlh

struct nlmsghdr* genl_info::nlh

Pointer to Netlink message header.

Definition at line 37 of file mngt.h.

## ◆ genlhdr

struct genlmsghdr* genl_info::genlhdr

Pointer to Generic Netlink message header.

Definition at line 40 of file mngt.h.

## ◆ userhdr

void* genl_info::userhdr

Pointer to user header.

Definition at line 43 of file mngt.h.

## ◆ attrs

struct nlattr** genl_info::attrs

Pointer to array of parsed attributes.

Definition at line 46 of file mngt.h.