summaryrefslogtreecommitdiffstats
path: root/scramble_wlw.h
blob: 099d2710024ea5e862d42fe8395eaf623dc6b0ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 */