class NlmUtils

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

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

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_rtattr (const struct rtattr* rtattr, int rta_len, const struct rtattr* rta_array[], size_t rta_array_n)

get_rtattr

[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.
rta_array_nthe maximum number of entries to store in the array.
bool  nlm_get_to_fte_cfg (FteX& fte, const IfTree& iftree, const struct nlmsghdr* nlh, 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.
nlhthe netlink message header.
iftreethe interface tree.
rtmsgthe routing message.
rta_lenthe routing message payload.

Returns: true on success, otherwise false.

int  check_netlink_request (NetlinkSocketReader& ns_reader, NetlinkSocket& ns, uint32_t seqno, string& error_msg)

check_netlink_request

[static]

Check that a previous netlink request has succeeded.

Parameters:

ns_readerthe NetlinkSocketReader to use for reading data.
nsthe NetlinkSocket to use for reading data.
seqnothe sequence nomer of the netlink request to check for.
error_msgthe error message (if error).

Returns: XORP_OK on success, otherwise XORP_ERROR.


Generated by: pavlin on possum.icir.org on Wed Aug 2 15:36:19 2006, using kdoc $.