ldp中ldp_global处理iff接口下标过程

global是ldp_top的属性,属性名是

    mpls_cfg_handle h;

1

      retval = ldp_event(ldp->h, socket, socket->extra,
其中ldp即ldp_top

2

  ldp_global *g = (ldp_global*)handle;
其中g即ldp->h


3

在ldp_new的时候,针对new->h(即g)的处理有,

(3.1)初始化iff列表

  (3.2)   设置管理状态,与iff无关

   (3.3)  ldp_cfg_if_addr_set

似乎是连上了就发送tcp,FIXME

以上与iff增加无关

4 ldp_if_create

这是增加iff


Breakpoint 3, ldp_cfg_if_set (handle=0x7ffff06f3dc8, i=0x7ffff06f4388, flag=3) at ldp_cfg.c:845
845      ldp_global *global = (ldp_global*)handle;
(gdb) bt
#0  ldp_cfg_if_set (handle=0x7ffff06f3dc8, i=0x7ffff06f4388, flag=3) at ldp_cfg.c:845
#1  0x00007ffff07293d0 in ldp_interface_create (li=0x7ffff06f42c8) at ldp_interface.c:96
#2  0x00007ffff0728cd5 in ldp_new () at ldp.c:121
#3  0x00007ffff0729869 in mpls_ldp (self=0x7ffff09ccba0 <mpls_ldp_cmd>, vty=0x7ffff06f3718, argc=0, argv=0x7ffff0a208f0) at ldp_vty.c:154
#4  0x00007ffff0780edc in cmd_execute_command_real (vline=0x7ffff06f3d38, filter=FILTER_STRICT, vty=0x7ffff06f3718, cmd=0x0) at command.c:2669
#5  0x00007ffff07810a0 in cmd_execute_command_strict (vline=0x7ffff06f3d38, vty=0x7ffff06f3718, cmd=0x0) at command.c:2761
#6  0x00007ffff0781140 in config_from_file (vty=0x7ffff06f3718, fp=0x7fffdc0077b0, line_num=0x7ffff0a20a90) at command.c:2788
#7  0x00007ffff077acc4 in vty_read_file (confp=0x7fffdc0077b0) at vty.c:2256
#8  0x00007ffff077b291 in vty_read_config (config_file=0x66ce40 "/usr/local/etc/ldpd.conf",
    config_default_dir=0x7ffff09cc7c0 <config_default> "/home/z/new/dce/build/etc/ldpd.conf") at vty.c:2438
#9  0x00007ffff0728790 in main (argc=5, argv=0x68ede0) at ldp_main.c:239
#10 0x00007ffff79fc87f in ns3::DceManager::DoStartProcess (context=0x71dcc0) at ../model/dce-manager.cc:283
#11 0x00007ffff7a8767c in ns3::TaskManager::Trampoline (context=0x6848f0) at ../model/task-manager.cc:274
#12 0x00007ffff7a83657 in ns3::PthreadFiberManager::Run (arg=0x71dfb0) at ../model/pthread-fiber-manager.cc:402
#13 0x000000318b2079d1 in start_thread () from /lib64/libpthread.so.0
#14 0x000000318a6e88fd in clone () from /lib64/libc.so.6
(gdb)



你可能感兴趣的:(ldp中ldp_global处理iff接口下标过程)