This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tango-tsg-service-chaining-…/common/include/bfd.h
wangmenglan 2b75a01146 TSG-13912 支持对第三方设备健康检查
bfdd程序重启后, 支持将配置重新下发给bfdd程序
2023-02-28 20:41:43 +08:00

33 lines
823 B
C

#ifndef _BFD_H
#define _BFD_H
#ifdef __cpluscplus
extern "C"
{
#endif
#define BFD_PATHLEN 108
struct bfd_vtysh_client {
int fd;
char path[BFD_PATHLEN];
// exec after connect server
int (*pre_config)(struct bfd_vtysh_client *);
// recover config after connect server
int (*recover_config)(struct bfd_vtysh_client *);
};
int bfd_vtysh_connect(struct bfd_vtysh_client *client);
void bfd_vtysh_close(struct bfd_vtysh_client *client);
int bfd_vtysh_add_dev(struct bfd_vtysh_client *client, const char *peer_addr, int retires, int interval_ms);
int bfd_vtysh_del_dev(struct bfd_vtysh_client *client, const char *peer_addr);
int bfd_vtysh_get_dev_active(struct bfd_vtysh_client *client, char *addr);
int bfd_vtysh_pre_config(struct bfd_vtysh_client *client);
#ifdef __cpluscplus
}
#endif
#endif