diff options
author | Hu Jun <hujun.work@gmail.com> | 2020-07-10 16:09:45 -0700 |
---|---|---|
committer | Hu Jun <hujun.work@gmail.com> | 2020-07-10 16:09:45 -0700 |
commit | 59cfbf4318c7ecf642f211f80a3a211dd5c1b474 (patch) | |
tree | 598a7b857057aaade5c3fcc58d99004b906df2d2 /dhcpv4/nclient4/lease.go | |
parent | 265274d9f25ea0a42b849f6b94e91b858dc6bc83 (diff) |
- add Offer into Lease
- change Client.Request so it now only return Lease
- change test case and example accordingly
Signed-off-by: Hu Jun <hujun.work@gmail.com>
Diffstat (limited to 'dhcpv4/nclient4/lease.go')
-rw-r--r-- | dhcpv4/nclient4/lease.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dhcpv4/nclient4/lease.go b/dhcpv4/nclient4/lease.go index 3bd485b..de54506 100644 --- a/dhcpv4/nclient4/lease.go +++ b/dhcpv4/nclient4/lease.go @@ -13,6 +13,7 @@ import ( //Lease contains a DHCPv4 lease after DORA. //note: Lease doesn't include binding interface name type Lease struct { + Offer *dhcpv4.DHCPv4 ACK *dhcpv4.DHCPv4 CreationTime time.Time IDOptions dhcpv4.Options //DHCPv4 options to identify the client like client-id, option82/remote-id |