-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle epoch timestamps in dhcpd.leases (#26)
https://www.isc.org/wp-content/uploads/2017/08/dhcp43leases.html If the db-time-format was configured to local, then the date fields appear as follows: epoch <seconds-since-epoch>; # <day-name> <month-name> <day-number> <hours>:<minutes>:<seconds> <year>
- Loading branch information
1 parent
ef48170
commit 3741037
Showing
3 changed files
with
53 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
lease 10.0.0.1 { | ||
starts epoch 1507216949; # Thu Oct 05 15:22:29 2017 | ||
ends epoch 1508141363; # Mon Oct 16 08:09:23 2017 | ||
tstp epoch 1508141363; # Mon Oct 16 08:09:23 2017 | ||
tsfp epoch 1508141363; # Mon Oct 16 08:09:23 2017 | ||
atsfp epoch 1508141363; # Mon Oct 16 08:09:23 2017 | ||
cltt epoch 1508167349; # Thu Oct 05 15:22:29 2017 | ||
binding state backup; | ||
hardware ethernet 2a:b2:2a:b2:2a:b2; | ||
uid "\001\000!\314\006\224\351"; | ||
} | ||
lease 10.0.0.2 { | ||
starts epoch 1507637114; # Tue Oct 1012:05:14 2017 | ||
tstp epoch 1507637114; # Tue Oct 1012:05:14 2017 | ||
tsfp epoch 1507637114; # Tue Oct 1012:05:14 2017 | ||
atsfp epoch 1507637114; # Tue Oct 1012:05:14 2017 | ||
binding state backup; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters