提交 0875732c 编写于 作者: K Kozlov Dmitry

add missing accel-pppd/include/connlimit.h

上级 b463f4f2
#ifndef __CONNLIMIT_H
#define __CONNLIMIT_H
static inline uint64_t cl_key_from_ipv4(uint32_t ip)
{
return ip;
}
static inline uint64_t cl_key_from_mac(uint8_t hw[6])
{
union {
uint8_t hw[6];
uint64_t key;
} key;
memcpy(key.hw, hw, sizeof(hw));
return key.key;
}
int connlimit_check(uint64_t key);
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册