secgateway/Platform/common/rpdb/rpdb.h

27 lines
563 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef __RPDB_H__
#define __RPDB_H__
#define RPDB_ROUTE_ADD (0)
#define RPDB_ROUTE_DEL (1)
/*
@des:策略路由初始化
@output 成功true,错误false
*/
bool rpdb_init_route();
/*
@des
策略路由添加删除接口
@input
gateway下一跳网关ip地址根据此地址生成路由表和路由
tbl_name路由表名字,不指定可以填为NULL若指定则用tbl_name不用table_nexthop生成路由表
opt标识是添加路由还是删除路由RPDB_ROUTE_ADD/RPDB_ROUTE_DEL
@output
成功返回mark值
错误: -1
*/
int rpdb_add_del_route(char* gateway,char *tbl_name,int opt);
#endif