diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-10-07 16:29:58 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-10-07 16:35:54 +0200 |
commit | 3a4ec05eebf01835948799fc98fe45cff70f2cf7 (patch) | |
tree | e5319a5413168edbd8350eb82816729a5ca03a50 /src | |
parent | 15083f5e837b6ee0b67b6370ca37a6dceda0a810 (diff) |
allowedips: document additional nobs
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/selftest/allowedips.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/selftest/allowedips.c b/src/selftest/allowedips.c index a9d2c3a..3b095d0 100644 --- a/src/selftest/allowedips.c +++ b/src/selftest/allowedips.c @@ -1,6 +1,18 @@ // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2015-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. + * + * This contains some basic static unit tests for the allowedips data structure. + * It also has two additional modes that are disabled and meant to be used by + * folks directly playing with this file. If you define the macro + * DEBUG_PRINT_TRIE_GRAPHVIZ to be 1, then every time there's a full tree in + * memory, it will be printed out as KERN_DEBUG in a format that can be passed + * to graphviz (the dot command) to visualize it. If you define the macro + * DEBUG_RANDOM_TRIE to be 1, then there will be an extremely costly set of + * randomized tests done against a trivial implementation, which may take + * upwards of a half-hour to complete. There's no set of users who should be + * enabling these, and the only developers that should go anywhere near these + * nobs are the ones who are reading this comment. */ #ifdef DEBUG |