ldp中ldp global處理iff介面下標過程

2021-07-09 13:35:11 字數 2226 閱讀 7074

global是ldp_top的屬性,屬性名是

mpls_cfg_handle h;

retval = ldp_event(ldp->h, socket, socket->extra,

其中ldp即ldp_top

2ldp_global *g = (ldp_global*)handle;

其中g即ldp->h

在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_inte***ce_create (li=0x7ffff06f42c8) at ldp_inte***ce.c:96

#2  0x00007ffff0728cd5 in ldp_new () at ldp.c:121

#3  0x00007ffff0729869 in mpls_ldp (self=0x7ffff09ccba0 , 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 "/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)

批處理中處理變數延遲

rem 比較兩種異同 體會變數延遲 echo off set a 4 set a 5 echo a pause setlocal enabledelayedexpansion set c 4 set c 5 echo c pause批處理執行機制 批處理讀取命令按行讀取,在處理之前要完成必要的預處理...

PHP中處理處理陣列相關函式

傳入乙個陣列,將返回乙個包含陣列所以值的陣列 不儲存鍵值 返回的陣列從0開始順序建立索引,可用作關聯陣列到索引陣列的轉換 eg user array name xu age 24,live true user array values user print r user output array 0...

Ubuntu中處理Mysql中文亂碼處理

登陸mysql檢視mysql編碼 mysql u root p show variables like char 如圖,但是我的是已經處理過的,未處理前有兩個是latin1 配置mysql字符集 2.1 vi etc mysql mysql.conf.d mysqld.cnf 在檔案末尾新增 cha...