|
|
string nlm_msg_type (uint32_t m)
| nlm_msg_type |
[static]
Convert a message type from netlink socket message into human-readable form.
Parameters:
m | message 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:
rtattr | the pointer to the first rtattr entry. |
rta_len | the length of all rtattr entries. |
rta_array | the array with the pointers to store the result. |
rta_array_n | the 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:
fte | the return-by-reference FteX entry to return the result. |
nlh | the netlink message header. |
iftree | the interface tree. |
rtmsg | the routing message. |
rta_len | the 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_reader | the NetlinkSocketReader to use for reading data. |
ns | the NetlinkSocket to use for reading data. |
seqno | the sequence nomer of the netlink request to check for. |
error_msg | the error message (if error). |
Returns: XORP_OK on success, otherwise XORP_ERROR.