-
- Downloads
addr: Refactor last resolved address cache accessors
Series of things done in this commit:
1. Rename the functions to better reflect the namespace of the file.
2. Make both reset and get function to operate on the last_resolved_addrs
cache that is per family.
3. Make the get function to take a tor_addr_t.
4. Change all callsite to use the new convention.
Part of #33233
Signed-off-by:
David Goulet <dgoulet@torproject.org>
Showing
- src/app/config/resolve_addr.c 12 additions, 7 deletionssrc/app/config/resolve_addr.c
- src/app/config/resolve_addr.h 2 additions, 2 deletionssrc/app/config/resolve_addr.h
- src/core/mainloop/connection.c 1 addition, 1 deletionsrc/core/mainloop/connection.c
- src/feature/relay/relay_find_addr.c 19 additions, 7 deletionssrc/feature/relay/relay_find_addr.c
Loading
Please register or sign in to comment