#ifndef CURVETUN_H #define CURVETUN_H #include #define FILE_CLIENTS ".curvetun/clients" #define FILE_SERVERS ".curvetun/servers" #define FILE_PRIVKEY ".curvetun/priv.key" #define FILE_PUBKEY ".curvetun/pub.key" #define FILE_USERNAM ".curvetun/username" #define LOCKFILE "/var/run/curvetun.pid" #define DEFAULT_KEY_LEN 64 #define PROTO_FLAG_EXIT (1 << 0) #define PROTO_FLAG_INIT (1 << 1) struct ct_proto { uint16_t payload; uint8_t flags; } __attribute__((packed)); /* FIXME: think up sth better */ #define TUNBUFF_SIZ (3 * RUNTIME_PAGE_SIZE) #define MAX_EPOLL_SIZE 10000 #define THREADS_PER_CPU 2 extern int server_main(char *home, char *dev, char *port, int udp, int ipv4, int log); extern int client_main(char *home, char *dev, char *host, char *port, int udp); #define DEVNAME_SERVER "curves0" #define DEVNAME_CLIENT "curvec0" #endif /* CURVETUN_H */ id' value='f2f3e210bffe5c8f8b30d0b0c7b0f733ff5db334'/> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/tools/lib
AgeCommit message (Expand)AuthorFilesLines
2017-02-10bpf: Remove bpf_sys.h from selftestsMickaël Salaün1-0/+6
2017-02-10bpf: Use bpf_map_get_next_key() from the libraryMickaël Salaün2-2/+2
2017-02-10bpf: Use bpf_map_delete_elem() from the libraryMickaël Salaün2-2/+2
2017-02-10bpf: Use bpf_map_lookup_elem() from the libraryMickaël Salaün2-2/+2
2017-02-10bpf: Use bpf_map_update_elem() from the libraryMickaël Salaün2-2/+2
2017-02-10bpf: Use bpf_load_program() from the libraryMickaël Salaün2-5/+5