class RtmUtils

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

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

Public Static Methods


Detailed Description

string  rtm_msg_type (uint32_t m)

rtm_msg_type

[static]

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

Parameters:
mmessage type from routing socket message.

Returns: human-readable message of the message type.

void  get_rta_sockaddr (uint32_t amask, const struct sockaddr* sock, const struct sockaddr* rti_info[])

get_rta_sockaddr

[static]

Get pointers to set of socket addresses as defined by a mask.

Parameters:
amaskthe mask that defines the set of socket addresses.
sockthe pointer to the first socket address.
rti_infothe array with the pointers to store the result.

int  get_sock_masklen (int family, const struct sockaddr* sock)

get_sock_masklen

[static]

Get the masklen encoded in sockaddr.

Parameters:
familythe address family.
sockthe socket address with the encoded masklen.

Returns: the masklen if successfully decoded, otherwise -1.

bool  rtm_get_to_fte_cfg (FteX& fte, const struct rt_msghdr* rtm)

rtm_get_to_fte_cfg

[static]

Extract the routing information from RTM message.

Parameters:
ftethe return-by-reference FteX entry to return the result.
rtmthe RTM routing 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.