添加rib的地方

zclient_read和zebra_client_read有什么区别?

rib路由为

ZEBRA_ROUTE_OSPF

上来就添加

Breakpoint 1, rib_add_ipv4_multipath (p=0x7ffff7269890, rib=0x7ffff0758458, safi=1 '\001') at zebra_rib.c:2170
2170      table = vrf_table (AFI_IP, safi, 0);
(gdb) bt
#0  rib_add_ipv4_multipath (p=0x7ffff7269890, rib=0x7ffff0758458, safi=1 '\001') at zebra_rib.c:2170
#1  0x00007ffff09e0364 in zread_ipv4_add (client=0x7ffff0754358, length=19) at zserv.c:893
#2  0x00007ffff09e1455 in zebra_client_read (thread=0x7ffff7269b00) at zserv.c:1409
#3  0x00007ffff0a183dd in thread_call (thread=0x7ffff7269b00) at thread.c:1252
#4  0x00007ffff09e25e5 in main (argc=5, argv=0x700ef0) at main.c:410
#5  0x00007ffff7a0708f in ns3::DceManager::DoStartProcess (context=0x821fd0) at ../model/dce-manager.cc:283
#6  0x00007ffff7a907fc in ns3::TaskManager::Trampoline (context=0x6ca690) at ../model/task-manager.cc:274
#7  0x00007ffff7a8c7d7 in ns3::PthreadFiberManager::Run (arg=0x8222c0) at ../model/pthread-fiber-manager.cc:402
#8  0x000000318b2079d1 in start_thread () from /lib64/libpthread.so.0
#9  0x000000318a6e88fd in clone () from /lib64/libc.so.6
(gdb) p safi
$1 = 1 '\001'
(gdb)

太坑爹了!

0.99.24增加了多播

0.99.10增加了mpls

结果合代码合的醉了!

你可能感兴趣的:(添加rib的地方)