class NlmUtils

Helper class for various NETLINK-format related utilities. More...

Definition#include <netlink_socket_utils.hh>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Static Methods


Detailed Description

string  nlm_msg_type (uint32_t m)

nlm_msg_type

[static]

Convert a message type from netlink socket message into human-readable form.

Parameters:
mmessage type from netlink socket message.

Returns: human-readable message of the message type.

void  get_rta_attr (const struct rtattr* rtattr, int rta_len, const struct rtattr* rta_array[])

get_rta_attr

[static]

Get pointers to set of netlink rtattr entries.

Parameters:
rtattrthe pointer to the first rtattr entry.
rta_lenthe length of all rtattr entries.
rta_arraythe array with the pointers to store the result.

bool  nlm_get_to_fte_cfg (FteX& fte, const struct rtmsg* rtmsg, int rta_len)

nlm_get_to_fte_cfg

[static]

Extract the routing information from netlink message.

Parameters:
ftethe return-by-reference FteX entry to return the result.
nlmthe netlink message.

Returns: true on success, otherwise false.


Generated by: pavlin on possum.icir.org on Mon Jun 9 13:23:54 2003, using kdoc 2.0a54+XORP.