]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Fix and optimize the client module
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Thu, 25 Apr 2019 19:26:57 +0000 (14:26 -0500)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Thu, 25 Apr 2019 21:27:17 +0000 (16:27 -0500)
commitb21a2ab67576be5939bc0bf8ef8d5945745451d9
tree8c34032812eb4890983881130af2058fae854971
parent76f0f9dde4beebb56cdcc4c848beca0b145d8645
Fix and optimize the client module

The code was underperforming on lookups (which also meant it
was underperforming on adds and removals), and had incorrect
locking.

Also, adds and removes had inconsistent keys (adds used addresses
and removes used file descriptors). This wasn't necessarily
a bug, but added needless complexity.
src/clients.c
src/clients.h
src/common.h
src/data_structure/uthash.h [new file with mode: 0644]
src/notify.c
src/rtr/rtr.c
test/Makefile.am
test/client_test.c [new file with mode: 0644]