OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
aux::NetlinkResponse Struct Reference

Public Member Functions

 NetlinkResponse (msghdr *req_msg, NetlinkSocket &nl_sock)
 Construct a NetlinkResponse object from the request message and the Netlink socket. More...
 
 ~NetlinkResponse ()
 NetlinkResponse dtor. More...
 
template<class T >
int response_iterate (const T &handler_func)
 Iterates over all response parts. More...
 

Public Attributes

struct nlmsghdr * resp_nh_
 A pointer to the begin of the response. More...
 
int n_recv_
 The number of received bytes in the response. More...
 
struct msghdr msg_
 contains message with response More...
 
struct iovec iov_
 Contains response data. More...
 
char buffer_ [16384]
 A buffer for response data. More...
 

Private Member Functions

 NetlinkResponse ()
 Forbid default ctor for NetlinkResponse. More...
 

Detailed Description

Definition at line 200 of file linux/metadata_ipv6_netlink.cc.

Constructor & Destructor Documentation

aux::NetlinkResponse::NetlinkResponse ( )
private

Forbid default ctor for NetlinkResponse.

aux::NetlinkResponse::NetlinkResponse ( msghdr *  req_msg,
NetlinkSocket nl_sock 
)
inline

Construct a NetlinkResponse object from the request message and the Netlink socket.

Definition at line 226 of file linux/metadata_ipv6_netlink.cc.

Here is the call graph for this function:

aux::NetlinkResponse::~NetlinkResponse ( )
inline

NetlinkResponse dtor.

Definition at line 247 of file linux/metadata_ipv6_netlink.cc.

Member Function Documentation

template<class T >
int aux::NetlinkResponse::response_iterate ( const T &  handler_func)
inline

Iterates over all response parts.

Definition at line 251 of file linux/metadata_ipv6_netlink.cc.

Member Data Documentation

char aux::NetlinkResponse::buffer_[16384]

A buffer for response data.

Definition at line 215 of file linux/metadata_ipv6_netlink.cc.

struct iovec aux::NetlinkResponse::iov_

Contains response data.

Definition at line 212 of file linux/metadata_ipv6_netlink.cc.

struct msghdr aux::NetlinkResponse::msg_

contains message with response

Definition at line 209 of file linux/metadata_ipv6_netlink.cc.

int aux::NetlinkResponse::n_recv_

The number of received bytes in the response.

Definition at line 206 of file linux/metadata_ipv6_netlink.cc.

struct nlmsghdr* aux::NetlinkResponse::resp_nh_

A pointer to the begin of the response.

Definition at line 203 of file linux/metadata_ipv6_netlink.cc.


The documentation for this struct was generated from the following file: