Skip to content

Commit

Permalink
Overhaul of DNS SRV handling code
Browse files Browse the repository at this point in the history
• The 'weight' field on SRV records is now respected
• Handling of CNAME is adjusted
• We also now have unit tests for the handling of SRV DNS responses
  • Loading branch information
alexdowad committed Apr 15, 2022
1 parent 4d8f60d commit 9f3426b
Show file tree
Hide file tree
Showing 4 changed files with 390 additions and 102 deletions.
6 changes: 5 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dist_man1_MANS=sipsak.1

# Tests

TESTS = tests/check_md5 tests/check_auth tests/check_helper tests/check_header_f
TESTS = tests/check_md5 tests/check_auth tests/check_helper tests/check_header_f tests/check_dns

check_PROGRAMS = $(TESTS)

Expand All @@ -29,3 +29,7 @@ tests_check_helper_LDADD = @CHECK_LIBS@
tests_check_header_f_SOURCES = tests/check_header_f.c src/header_f.h src/header_f.c src/helper.h src/helper.c
tests_check_header_f_CFLAGS = @CHECK_CFLAGS@ -DRUNNING_CHECK
tests_check_header_f_LDADD = @CHECK_LIBS@

tests_check_dns_SOURCES = tests/check_dns.c src/helper.h src/helper.c src/sipsak.h
tests_check_dns_CFLAGS = @CHECK_CFLAGS@ -DRUNNING_CHECK
tests_check_dns_LDADD = @CHECK_LIBS@
1 change: 0 additions & 1 deletion TODO
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ ToDo List (no order):
- add support for spoofed IPs
- parse the complete DNS resonses in util
- increase hostname detection for the Via line
- add support for priority and weigth in SRV responses
- endless randtrash mode with logfile
- support for IPv6
- strict RR support
Expand Down
Loading

0 comments on commit 9f3426b

Please sign in to comment.