Adlink_route_table_dump () – ADLINK aTCA-N700 User Manual

Page 40

Advertising
background image

Switch Manager API Programming Guide

40

PARAMETERS

None

RETURN

See the description of status_t in Section 1.

adlink_route_table_dump ()

PROTOTYPE

status_t adlink_route_table_dump (UINT32 ip_last, UINT32 mask_last, int *count,

adlink_route_info_t *route_info);

DESCRIPTION

This function is used to get all route entry info that has been added.

PARAMETERS

ip_last /mask_last [IN] These two parameters pass the last route entry that was retrieved. The

function call will start retrieving route entry info after these values. Set both of

these parameters to 0 the first time this function is called.

Count

[OUT] This parameter passes the number of route entry values retreived. If

"Count" is less than MAX_ROUTE_ENTRY_ONE_TIME_GET, then all the

route entries have been retrieved. Otherwise, we need to call this function

again to continue retrieving route entry info.

route_info

[OUT] This parameter is the pointer for saving the route entry info. It must have

enough space to save as many as MAX_ROUTE_ENTRY_ONE_TIME_GET

route entries.

RETURN

See the description of status_t in Section 1.

Advertising