diff options
Diffstat (limited to 'include/MESA/stream_inc/gdev_keepalive.h')
| -rw-r--r-- | include/MESA/stream_inc/gdev_keepalive.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/include/MESA/stream_inc/gdev_keepalive.h b/include/MESA/stream_inc/gdev_keepalive.h new file mode 100644 index 0000000..8211c40 --- /dev/null +++ b/include/MESA/stream_inc/gdev_keepalive.h @@ -0,0 +1,37 @@ +#ifdef __cplusplus +extern "C" { +#endif + +#include "stream_inc/stream_base.h" + + +enum gdev_keepalive_opt_t{ + GDEV_KEEPALIVE_OPT_SERVICE_CTRL, /* ��������ij��ҵ����Ƿ� opt_val is struct gdev_keepalive_service_ctrl */ + GDEV_KEEPALIVE_OPT_GLOBAL_SWITCH, /* ȫ���Ա����, opt_val is int */ + GDEV_KEEPALIVE_OPT_RCV_PKT_PPS, /* �յ��ı��������/��, opt_val is long */ + GDEV_KEEPALIVE_OPT_SND_PKT_PPS, /* �յ��ı��������/��, opt_val is long */ +}; + +struct gdev_keepalive_service_ctrl{ + int service_num; /* ҵ���, service number */ + int keepalive_switch; /* 1:����, enable keepalive; 0:������, disable keepalive */ +}; + + +int gdev_keepalive_set_opt(const SAPP_TLV_T *tlv_value); + +int gdev_keepalive_get_opt(SAPP_TLV_T *tlv_value); + + +/* ��Դ�˿ڻ�ȡ��ǰ������ҵ��� */ +unsigned char vxlan_sport_map_to_service_id(unsigned short sport_host_order); + +/* ��vxlan_id��ȡ��ǰ������ҵ��� */ +unsigned char vxlan_id_map_to_service_id(int vxlan_id_host_order); + + +#ifdef __cplusplus +} +#endif + + |
