beautypg.com

Macro definitions, Max_route_entry_one_time_get, Enum type – ADLINK aTCA-N700 User Manual

Page 38: Data structure, Section 7: static route, Adlink_route_info_t

background image

Switch Manager API Programming Guide

38

Section 7: Static Route

This section describes the macro, enum, struct and function for route. They are defined in the

header file “adlink_api_route.h”.

Macro Definitions

MAX_ROUTE_ENTRY_ONE_TIME_GET

This macro is used for getting route entries from the server. Due to packet size limitations

allowed in the network (MTU), it isn't possible to get all the entries at once. This macro defines

the maximum number of entries retrievable at one time.

Enum Type

None

Data Structure

adlink_route_info_t

typedef struct adlink_route_info

{

UINT32 ip_addr;

//ip address

UINT32 ip_mask; //ip mask

UINT32 gateway_ip; // next hop ip address

UINT16 out_port; //exit port ID

UINT16 resv;

// alignment

} adlink_route_info_t;