all: add client id preference config param

So client can chose how client id is generated.
This commit is contained in:
Cuong Manh Le
2023-12-06 15:33:05 +07:00
committed by Cuong Manh Le
parent c3ff8182af
commit 7591a0ccc6
6 changed files with 37 additions and 9 deletions
+5 -4
View File
@@ -5,10 +5,11 @@ type ClientInfoCtxKey struct{}
// ClientInfo represents ctrld's clients information.
type ClientInfo struct {
Mac string
IP string
Hostname string
Self bool
Mac string
IP string
Hostname string
Self bool
ClientIDPref string
}
// LeaseFileFormat specifies the format of DHCP lease file.