RIL 默认路由所有权管理
More...
#include <stddef.h>
#include <stdint.h>
#include <sys/types.h>
#include "ril_backend.h"
Go to the source code of this file.
RIL 默认路由所有权管理
- Version
- 1.0.0
- Date
- 2026-07-17
- Copyright
- Copyright © 2026 Shenzhen One IOT World Co., Ltd. All rights reserved.
◆ ril_route_clear()
删除 RIL 当前持有的精确默认路由。
- Parameters
-
- Returns
- TBOX_OK 成功,其他值失败。
◆ ril_route_deinit()
◆ ril_route_init()
初始化 RIL 默认路由管理器。
- Parameters
-
| route | 输出路由管理器。 |
| ops | rtnetlink 操作;NULL 使用系统实现。 |
- Returns
- TBOX_OK 成功,其他值失败。
◆ ril_route_update()
按已连接数据链路替换 RIL 持有的默认路由。
只操作专用表中 protocol 240 的精确默认路由及对应策略规则,不覆盖 main 表路由。断链事件等同于清理。
- Parameters
-
- Returns
- TBOX_OK 成功,其他值失败。