OpenSDN source code
|
A storage for the Netlink socket descriptor. More...
Public Member Functions | |
NetlinkSocket () | |
Creates a socket and binds it with AF_NETLINK family. More... | |
~NetlinkSocket () | |
Closes the Netlink connection. More... | |
const int & | fd () const |
Returns a reference to the Netlink socket descriptor. More... | |
sockaddr_nl & | netlink_socket () |
Returns a reference to the Netlink socket sockaddr struct. More... | |
Private Member Functions | |
NetlinkSocket (const NetlinkSocket &nl) | |
Forbid the copy ctor. More... | |
const NetlinkSocket & | operator= (const NetlinkSocket &nl) |
Forbid the copy assignment. More... | |
Private Attributes | |
int | socket_fd |
A Netlink socket ID (descriptor) More... | |
sockaddr_nl | local_sock_addr |
A Netlink socket sockaddr structure. More... | |
A storage for the Netlink socket descriptor.
and for the Netlink socket sockaddr structure
Definition at line 132 of file linux/metadata_ipv6_netlink.cc.
|
private |
Forbid the copy ctor.
|
inline |
Creates a socket and binds it with AF_NETLINK family.
and the kernel process
Definition at line 154 of file linux/metadata_ipv6_netlink.cc.
|
inline |
Closes the Netlink connection.
Definition at line 180 of file linux/metadata_ipv6_netlink.cc.
|
inline |
Returns a reference to the Netlink socket descriptor.
Definition at line 190 of file linux/metadata_ipv6_netlink.cc.
|
inline |
Returns a reference to the Netlink socket sockaddr struct.
Definition at line 195 of file linux/metadata_ipv6_netlink.cc.
|
private |
Forbid the copy assignment.
|
private |
A Netlink socket sockaddr structure.
Definition at line 148 of file linux/metadata_ipv6_netlink.cc.
|
private |
A Netlink socket ID (descriptor)
Definition at line 145 of file linux/metadata_ipv6_netlink.cc.