aboutsummaryrefslogtreecommitdiff
path: root/src/feature/dirparse/ns_parse.c
AgeCommit message (Collapse)Author
2020-10-15Mark as required fields from prop315.Nick Mathewson
This change breaks some unit tests; it's time to fix those in subsequent commits.
2020-08-03Rename protover_contains_long_protocol_names to protover_list_is_invalidNick Mathewson
This is an automated commit, generated by this command: ./scripts/maint/rename_c_identifier.py \ protover_contains_long_protocol_names protover_list_is_invalid
2020-08-03Merge remote-tracking branch 'tor-gitlab/mr/94'Nick Mathewson
2020-07-14Merge branch 'ticket40033_045_01_squashed'Nick Mathewson
2020-07-14Rename blacklist and whitelist wordingDavid Goulet
Closes #40033 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-07-14addr: Use tor_addr_t instead of uint32_t for IPv4David Goulet
This changes a LOT of code but in the end, behavior is the same. Unfortunately, many functions had to be changed to accomodate but in majority of cases, to become simpler. Functions are also removed specifically those that were there to convert an IPv4 as a host format to a tor_addr_t. Those are not needed anymore. The IPv4 address field has been standardized to "ipv4_addr", the ORPort to "ipv4_orport" (currently IPv6 uses ipv6_orport) and DirPort to "ipv4_dirport". This is related to Sponsor 55 work that adds IPv6 support for relays and this work is needed in order to have a common interface between IPv4 and IPv6. Closes #40043. Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-02-09dirparse: add helper for recommended/required protocolscypherpunks
2020-02-09dirparse: reject votes with invalid recommended/required protocolscypherpunks
2020-02-09dirparse: curlybraceify if statementscypherpunks
2020-02-09dirparse: reject routerstatus entries with malformed protovercypherpunks
Contrary to its name, protover_contains_long_protocol_names() detects all parse errors, not just long names.
2020-02-09dirparse: reject votes with malformed routerstatus entriescypherpunks
2020-02-06Wrap columnar tables in "clang-format off/on"Nick Mathewson
These tables have aligned comments, so we don't want clang-format to mess with them.
2020-01-08It's 2020. Update the copyright dates with "make update-copyright"Nick Mathewson
2019-10-16Rename authcert_members.i to .h, and have it define a macro.Nick Mathewson
Including a file in the middle of a declaration seems to confuse Doxygen, and Coccinelle doesn't much like it either.l
2019-04-30Replace all remaining tor_mem_is_zero() with fast_mem_is_zero()Nick Mathewson
2019-01-16Bump copyright date to 2019Nick Mathewson
2019-01-16Bump copyright date to 2019.Nick Mathewson
2018-11-25Vote on the StaleDesc flag from prop293Nick Mathewson
The StaleDesc flag tells relays that they need to upload a new descriptor soon, or they will drop out of the consensus.
2018-10-31Merge branch 'networkstatus_mmap' into networkstatus_mmap_mergeNick Mathewson
2018-10-01Remove versions.h include from routerparse.hNick Mathewson
2018-10-01extract networkstatus parsing to its own file.Nick Mathewson