DL6ER
45c342af05
Force-update embedded dnsmasq version. We are loosing the individual dnsmasq history of the ~ last year, however, given the multitude of merge conflicts and the fact that this code will soon(ish) be replaced by development-v6 (where the history is 100% intact), this isn't much of an issue
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-02-09 20:48:59 +01:00
Simon Kelley
d74eed5463
Bump copyright to 2022.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2022-02-03 16:27:24 +01:00
Petr Menšík
b0b5cf2d45
Fix coverity formats issues in blockdata
...
Error: PRINTF_ARGS (CWE-686): [#def16]
dnsmasq-2.86test7/src/dnsmasq/blockdata.c:56: invalid_type: Argument "blockdata_count * 48UL" to format specifier "%u" was expected to have type "unsigned int" but has type "unsigned long".
# 54| {
# 55| my_syslog(LOG_INFO, _("pool memory in use %u, max %u, allocated %u"),
# 56|-> blockdata_count * sizeof(struct blockdata),
# 57| blockdata_hwm * sizeof(struct blockdata),
# 58| blockdata_alloced * sizeof(struct blockdata));
Error: PRINTF_ARGS (CWE-686): [#def17]
dnsmasq-2.86test7/src/dnsmasq/blockdata.c:57: invalid_type: Argument "blockdata_hwm * 48UL" to format specifier "%u" was expected to have type "unsigned int" but has type "unsigned long".
# 55| my_syslog(LOG_INFO, _("pool memory in use %u, max %u, allocated %u"),
# 56| blockdata_count * sizeof(struct blockdata),
# 57|-> blockdata_hwm * sizeof(struct blockdata),
# 58| blockdata_alloced * sizeof(struct blockdata));
# 59| }
Error: PRINTF_ARGS (CWE-686): [#def18]
dnsmasq-2.86test7/src/dnsmasq/blockdata.c:58: invalid_type: Argument "blockdata_alloced * 48UL" to format specifier "%u" was expected to have type "unsigned int" but has type "unsigned long".
# 56| blockdata_count * sizeof(struct blockdata),
# 57| blockdata_hwm * sizeof(struct blockdata),
# 58|-> blockdata_alloced * sizeof(struct blockdata));
# 59| }
# 60|
Signed-off-by: DL6ER <dl6er@dl6er.de >
2021-09-12 16:20:52 +02:00
Geert Stappers
241b749e6d
Chomp file ends
...
Removed empty lines from end of src/*.[ch] files.
If the new last line became '#endif'
was the condition of the '#if' added.
Signed-off-by: DL6ER <dl6er@dl6er.de >
2021-04-14 08:15:55 +02:00
Simon Kelley
db8c788df1
Bump copyright notices for 2021. Happy New Year!
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2021-01-25 20:16:50 +01:00
Simon Kelley
469ed22a32
Update copyrights to 2020.
2020-01-05 22:00:35 +00:00
Simon Kelley
6631fde1d9
Cache SRV records.
...
Inpsired by a patch from Jeremy Allison, but completely re-rolled
by srk. All bugs are mine.
Signed-off-by: DL6ER <dl6er@dl6er.de >
2019-08-31 19:53:56 +02:00
Simon Kelley
6d90dfab42
Impove cache behaviour for TCP connections.
...
For ease of implementaion, dnsmasq has always forked a new process to
handle each incoming TCP connection. A side-effect of this is that any
DNS queries answered from TCP connections are not cached: when TCP
connections were rare, this was not a problem. With the coming of
DNSSEC, it's now the case that some DNSSEC queries have answers which
spill to TCP, and if, for instance, this applies to the keys for the
root then those never get cached, and performance is very bad. This
fix passes cache entries back from the TCP child process to the main
server process, and fixes the problem.
Signed-off-by: DL6ER <dl6er@dl6er.de >
2019-08-31 13:49:15 +02:00
DL6ER
2cfd632ff8
Reinstall useless spaces/tabs as are present in the original dnsmasq source code. This will allow us to apply patches much more straightforward. There is no other change in this commit. git diff --ignore-space-change shows an empty difference.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2019-08-31 13:26:07 +02:00
DL6ER
e365364f72
Move all source files into new subdirectory "src". Put compiled objects into new subdirectory "build".
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2019-07-02 00:18:56 +02:00