2019-07-04 07:11:22 +00:00
|
|
|
|
#ifndef AGINGTIME_H_
|
|
|
|
|
#define AGINGTIME_H_
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <string.h>
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
#include <errno.h>
|
|
|
|
|
#include <unistd.h>
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
#include <sys/socket.h>
|
|
|
|
|
#include <netinet/in.h>
|
|
|
|
|
#include <arpa/inet.h>
|
|
|
|
|
#include <sys/ioctl.h>
|
|
|
|
|
#include <net/if.h>
|
|
|
|
|
#include "../../../../common/rpc/rpc_common.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*判断配置的老化时间是否有效,老化时间大于0 */
|
|
|
|
|
ret_code agingtime_config_chk(uint source, uint config_type,
|
|
|
|
|
pointer input, int input_len,
|
|
|
|
|
pointer output, int *output_len);
|
|
|
|
|
|
|
|
|
|
/*系统管理模块将配置的用户老化时间通过netlink下发到内核态 */
|
|
|
|
|
ret_code agingtime_config_proc(uint source, uint config_type,
|
|
|
|
|
pointer input, int input_len,
|
|
|
|
|
pointer output, int *output_len);
|
|
|
|
|
|
|
|
|
|
ret_code agingtime_config_get(uint source,
|
|
|
|
|
pointer input, int input_len,
|
|
|
|
|
pointer output, int *output_len);
|
|
|
|
|
|
2019-07-05 08:33:05 +00:00
|
|
|
|
ret_code agingtime_config_get_all(uint source,
|
|
|
|
|
pointer output, int *output_len);
|
2019-07-04 07:11:22 +00:00
|
|
|
|
|
|
|
|
|
#endif
|