summaryrefslogtreecommitdiffstats
path: root/scramble_wlw.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2024-11-21 18:35:44 +0100
committerDaniel Baumann <daniel@debian.org>2024-11-21 18:35:44 +0100
commit48868ef3f5a50ee67a6cd4f4c6d56a06781af969 (patch)
tree9b126b3fa59336ef0e7fd666f5debfee80e56b1e /scramble_wlw.h
parentInitial commit. (diff)
downloaddag-scrubber-48868ef3f5a50ee67a6cd4f4c6d56a06781af969.tar.xz
dag-scrubber-48868ef3f5a50ee67a6cd4f4c6d56a06781af969.zip
Adding upstream version 0.5.upstream/0.5upstream
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'scramble_wlw.h')
-rw-r--r--scramble_wlw.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/scramble_wlw.h b/scramble_wlw.h
new file mode 100644
index 0000000..099d271
--- /dev/null
+++ b/scramble_wlw.h
@@ -0,0 +1,16 @@
+#ifndef _SCRAMBLE_WLW_H_
+#define _SCRAMBLE_WLW_H_
+
+#include <stdint.h>
+#include <netinet/in.h>
+
+typedef uint32_t (*scrambler_ip4_t)(uint32_t, int);
+typedef void (*scrambler_ip6_t)(struct in6_addr *, int);
+
+void scramble_wlw_init(const char *, scrambler_ip4_t s4, scrambler_ip6_t);
+void scramble_wlw_clear();
+
+uint32_t scramble_wlw_v4(uint32_t, int);
+void scramble_wlw_v6(struct in6_addr *, int);
+
+#endif /* _SCRAMBLE_WLW_H */