[PATCH] DHCPv6: Fix prefix delegation lease file name

Cherry-picked from
https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/
master/net-misc/dhcpcd/files/patches/dhcpcd-6.8.2-DHCPv6-Fix-prefix-
delegation-lease-file-name.patch.

For DHCPv6, daemon creates two lease files, one for non-temporary
address and the other for prefix delegation. Currently only non-temporary
address lease is using the lease identifier obtained from command line
for its file name, since dhcpcd is using a separate pseudo interface
for handling prefix delegation messages.

So fix it to have both lease files using the same identifier obtained
from the command line, with non-temporary address lease ends in ".lease6"
and prefix delegation ends is ".pd.lease6".

BUG: 22956197
Change-Id: I24ada24e791e0be77aaadd148349be00ef2b6966

Reviewed-on: https://chromium-review.googlesource.com/282041
2 files changed