📄 dsdv.h
字号:
#ifndef _DSDV_H_#define _DSDV_H_#include "const.h"typedef void (*hfunc_t) (void);class dsdv{ dsdvSocket dsdvSock; u_int64_t lastFullDumpTime; struct handler{ int fd; hfunc_t func; }handlers[MAX_HANDLERS]; int handler_cnt; bool is_broadcast; public: dsdv(){ handler_cnt = 0; } void dsdv_init(char *interface); void process_dsdv(); void processRecvMsg(u_int32_t src); void processPeriodicUpdate(u_int32_t src); int dsdv_daemon(char *interface); void setRebootTimer(); void rebootHandler(); void startUpdateTimer(); void updateHandler(); void setPeriodicTimer(); void periodicHandler(); void mainDaemonLoop(); int registerSignal(); void register_handler_function(int fd, hfunc_t fun); void handler(int type); void sigint_handler(int type); void broadcastRTable(); bool isFullDumpNeeded(); void send_datagram(void *data_buf, int data_len); void settling_time_handler(void *data); void process_traffic_data(); };#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -