diff options
| author | Qiuwen Lu <[email protected]> | 2017-07-13 20:28:54 +0800 |
|---|---|---|
| committer | Qiuwen Lu <[email protected]> | 2017-07-13 20:28:54 +0800 |
| commit | 7fd1a99b7734863dea2530cbbd2e9c258bced90f (patch) | |
| tree | 0ce11ac10aae513ab8643342cb03d7a989fab339 /app/src/sendpath.c | |
| parent | 8b293cd318757ba9d863bcc499c903101d6bb8e4 (diff) | |
增加BPFDUMP功能,支持在应用层面通过TAP虚拟设备导出报文。该功能为调试功能,通过配置文件启用。v4.2.4-20170717
Diffstat (limited to 'app/src/sendpath.c')
| -rw-r--r-- | app/src/sendpath.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/sendpath.c b/app/src/sendpath.c index d7991a5..8702cc6 100644 --- a/app/src/sendpath.c +++ b/app/src/sendpath.c @@ -86,6 +86,7 @@ static struct mr_sendpath * sendpath_vdev_create(struct mr_instance * instance, /* Parameters */ _sendpath->_father.target_vdi = dest_vdev->vdi; + _sendpath->_father.vdev = dest_vdev; _sendpath->_father.can_use = 1; /* Callback Functions */ @@ -292,6 +293,7 @@ _build: /* 填充SendPath各虚函数指针*/ sendpath->instance = target_vdev->instance; sendpath->target_vdi = target_vdev->vdi; + sendpath->vdev = target_vdev; sendpath->fn_requery = sendpath_route_requery; sendpath->fn_l2_construct = sendpath_route_l2_construct; |
