打算学学Zebos的实现方式 先从简单的RIP 入手吧
Junos:9.4R4.5 Vs Zebra
简单构建了一套环境 R1---------------Zebos---------------R2
代码结构如下
ripd
This directory contains all the code for RIP supporting IPv4.
Description
ripd.h ripd.c Functions to initiate, stop, and destroy ripd instances
rip_api.h rip_api.c Prototypes, functions and data structures for the CLI, MIB and other APIs
rip_cli.h rip_cli.c CLI API
rip_debug.h rip_debug.c Functions and data structures for debugging ripd
rip_distance.h rip_distance.c Functions and data structures for RIP distance calculations
rip_interface.h rip_interface.c Functions and data structures for interface table maintenance
rip_main.c Functions to load configuration and run ripd
rip_nsm.h rip_nsm.c Functions and data structures for the NSM client
rip_offset.h rip_offset.c Functions and data structures for offset list maintenance
rip_peer.h rip_peer.c Functions and data structures for peer list maintenance
rip_routemap.h rip_routemap.c Functions and data structures to set route map attributes
rip_snmp.h rip_snmp.c Functions and data structures for handling MIB requests