diff options
author | Thomas Gschwantner <tharre3@gmail.com> | 2019-01-26 23:45:36 +0100 |
---|---|---|
committer | Thomas Gschwantner <tharre3@gmail.com> | 2019-01-26 23:56:58 +0100 |
commit | 397dc3629b8ba795e4fa5d21def84065746b1684 (patch) | |
tree | 15abf12b84b570b3317cc4cdce31e3f7666eb5bf /common.h | |
parent | Add .clang-format (diff) | |
download | wg-dynamic-397dc3629b8ba795e4fa5d21def84065746b1684.tar.xz wg-dynamic-397dc3629b8ba795e4fa5d21def84065746b1684.zip |
Implement basic validation and I/O multiplexing
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/common.h b/common.h new file mode 100644 index 0000000..d781548 --- /dev/null +++ b/common.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: LGPL-2.1+ + * + * Copyright (C) 2019 Thomas Gschwantner <tharre3@gmail.com>. + */ + +#ifndef __COMMON_H__ +#define __COMMON_H__ + +#include <stdint.h> + +#define MAX_CONNECTIONS 16 + +static const char WG_DYNAMIC_ADDR[] = "fe80::"; +static const uint16_t WG_DYNAMIC_PORT = 1337; + +#endif |