IXP1200 Network Processor Family ATM OC-3/12/Ethernet IP Router Example Design
36 Application Note
Modified on: 3/20/02,
4.3.3 IP Table Management API
The route table is managed by the Route Table Manager (RTM), which may be used from both
Transactor Scripts and VxWorks. It may be compiled and loaded as a local foreign model, thus
allowing its C functions to be called from a Transactor Script. Or, it can be compiled as a VxWorks
loadable object.
The API may be printed out by enter i ng rt_help() at the command line of either VxWorks, or the
Transactor simulator.
4.3.3.1 route_table_init()
Initializes route table memory and data structures.
route_table_init(int sram_base_addr, int dram_base_addr)
4.3.3.2 mtu_change()
Sets the MTU for subsequent route table additions.
mtu_change(int new_mtu)
4.3.3.3 atm_route_add()
Adds a route for ATM destination to the route table.
atm_route_add(char *dest, char *netmask,char *gateway, int port_type,int
queue_index,int atm_hdr,int llc_snap_hi, int llc_snap_lo)
Parameter Description
sram_base_addr The starting address of the SRAM memory allocated for route lookup entries.
dram_base_addr The starting address of the DRAM memory allocated for the route table entries.
Parameter Description
int new_mtu New default MTU.
Parameter Description
char *dest String IP destination, e.g. "1.1.1.1"
char *netmask String netmask, e.g., "255.255.0.0"
char *gateway String next hop gateway, e.g., "255.255.0.0"
int port_type Type of port.
int queue_index Index of the output queue.
int atm_hdr vpi/vci for the connection.
int llc_snap_hi hi 32 bits of llc/snap header.
int llc_snap_lo lo 32 bits of llc/snap header.