XORP中的IPC工具XRL的自定义方法

方法一:

1.\etc\templates目录下(以interfaces.tp).tp文件编辑

image

image

2./xrl/interfaces/fea_ifmgr_xif.cc添加send_set_port,unmarshall_set_port方法

image

3./xrl/targets/fea_base.cc添加handle_ifmgr_0_1_set_port方法,并在它的子类中实现ifmgr_set_0_1_set_port方法(在/fea/xrl_fea_target.cc中实现)

image 

4./xrl/targets/fea.xrls中添加:finder://…..(你懂得)

 方法二:在/etc/interfaces文件夹下的.xif文件添加添加,运行scripts中的两个脚本文件

XORP中的每一个进程都会向finder发送xrl来实现进程间通信,如果把finder看作服务器的话,target即是客户端

原文地址:https://www.cnblogs.com/yangyh/p/1887069.html