Home | History | Annotate | Download | only in server

Lines Matching refs:lease

24 // A lease consists of both the interface index and the MAC address. This
34 struct Lease {
35 Lease(unsigned int interfaceIndex, const uint8_t* macAddress) {
50 template<> struct hash<Lease> {
51 size_t operator()(const Lease& lease) const {
53 hash_combine(seed, lease.InterfaceIndex);
55 hash_combine(seed, *reinterpret_cast<const uint32_t*>(lease.MacAddress));
58 *reinterpret_cast<const uint16_t*>(lease.MacAddress + 4));
64 inline bool operator==(const Lease& left, const Lease& right) {