summaryrefslogtreecommitdiff
path: root/accel-pppd/include
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2018-10-24 16:35:58 +0200
committerDmitry Kozlov <xeb@mail.ru>2018-10-26 06:34:34 +0300
commitb7b9b190b6d36d1f96a51d2791ffdc9f4e937c39 (patch)
treebb3c7fcb4e01cf73e9042cfc2c9f50a699869935 /accel-pppd/include
parentd0c390ebe4e44473ef56ece622457942ed325de3 (diff)
downloadaccel-ppp-b7b9b190b6d36d1f96a51d2791ffdc9f4e937c39.tar.gz
accel-ppp-b7b9b190b6d36d1f96a51d2791ffdc9f4e937c39.zip
connlimit: make connlimit.h self-contained
We need to include <stdint.h> to define 'uint*_t' and <string.h> for 'memcpy'. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd/include')
-rw-r--r--accel-pppd/include/connlimit.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/accel-pppd/include/connlimit.h b/accel-pppd/include/connlimit.h
index 8711cf8..2b2f0f4 100644
--- a/accel-pppd/include/connlimit.h
+++ b/accel-pppd/include/connlimit.h
@@ -1,6 +1,9 @@
#ifndef __CONNLIMIT_H
#define __CONNLIMIT_H
+#include <stdint.h>
+#include <string.h>
+
static inline uint64_t cl_key_from_ipv4(uint32_t ip)
{
return ip;