Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openwrt/odhcpd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>2022-10-21 16:28:59 +0300
committerHans Dedecker <dedeckeh@gmail.com>2022-10-24 22:52:14 +0300
commita92c0a73d018cd6453dcf253d9617f97311becab (patch)
tree3d762fca3dc505b77fcadbb3078bca2a754b41d5 /COPYING
parent4a673e1cd26d58ebf4397dd06ee5fa39f7f832da (diff)
dhcpv6-ia: make tmp lease file hiddenHEADmaster
Use a hidden . prefixed temporary lease file instead of appending '.tmp'. Dnsmasq is capable of scanning files/directories using inotify to receive file change notifications and updating its view of hostname ip address mapping without being SIGHUPped. Until dnsmasq v2.88 this mechanism allows additions to hostnames, no deletions. dnsmasq v2.88 when released will understand how to remove mappings. Unfortunately without this change dnsmasq sees odhcpd's temporary lease file via inotify and it also sees the change when odhcpd atomically renames the file from '.tmp' to the correct name. dnsmasq excludes hidden '.' files from it's inotify scans, thus changing odhcpd to use a hidden temporary lease file reduces load and makes sense. Also, while here, only rename the temporary file if it actually contains different content. Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions