aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2019-04-08 12:25:05 +0200
committerLinus Nordberg <linus@nordberg.se>2019-04-08 12:25:05 +0200
commit542276ee6f5ca6c15ef4aba1d4fc959131a63a9f (patch)
treeb5296f573591735fc314921bae5fc83524f6a208
parentOne uint32_t is enough (diff)
downloadwg-dynamic-542276ee6f5ca6c15ef4aba1d4fc959131a63a9f.tar.xz
wg-dynamic-542276ee6f5ca6c15ef4aba1d4fc959131a63a9f.zip
Correct a comment
This comment became incorrect with the change to IN6_IS_ADDR_LINKLOCAL(). Changing back to an explicit check might be the better choice.
-rw-r--r--common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.c b/common.c
index 194dfaa..f1f8158 100644
--- a/common.c
+++ b/common.c
@@ -382,7 +382,7 @@ void close_connection(int *fd, struct wg_dynamic_request *req)
bool is_link_local(unsigned char *addr)
{
- /* TODO: check if the remaining 48 bits are 0 */
+ /* TODO: check if the remaining 54 bits are 0 */
return IN6_IS_ADDR_LINKLOCAL(addr);
}