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_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 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.

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

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.
reasonthe human-readable reason for any failure.

Returns: XORP_OK on success, otherwise XORP_ERROR.


Generated by: pavlin on possum.icir.org on Thu Nov 6 23:46:57 2003, using kdoc 2.0a54+XORP.