diff options
author | Tomek Mrugalski <tomasz@isc.org> | 2014-12-23 13:50:20 +0100 |
---|---|---|
committer | Tomek Mrugalski <tomasz@isc.org> | 2014-12-23 13:50:20 +0100 |
commit | 2662ac5f02d36a236c796ecb1174876c0d0cee5c (patch) | |
tree | 6dc2580abd63cea2d01a6e66668407ebdcb94e4a /src/lib/dhcp/hwaddr.cc | |
parent | [3554] MAC Sources description in the User's Guide clarified (diff) | |
download | kea-2662ac5f02d36a236c796ecb1174876c0d0cee5c.tar.xz kea-2662ac5f02d36a236c796ecb1174876c0d0cee5c.zip |
[3554] Changes after review:
- Moved MAC operations to a new CfgMACSource class
- Moved macros to HWaddr class
- Added several unit-tests for MAC sources
- MAC extraction code moved to separate function in Dhcpv6Srv
Diffstat (limited to 'src/lib/dhcp/hwaddr.cc')
-rw-r--r-- | src/lib/dhcp/hwaddr.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/dhcp/hwaddr.cc b/src/lib/dhcp/hwaddr.cc index 6be98a6770..5d76ec723d 100644 --- a/src/lib/dhcp/hwaddr.cc +++ b/src/lib/dhcp/hwaddr.cc @@ -27,6 +27,16 @@ namespace isc { namespace dhcp { +const uint32_t HWAddr::HWADDR_SOURCE_ANY = 0xffffffff; +const uint32_t HWAddr::HWADDR_SOURCE_UNKNOWN = 0x00000000; +const uint32_t HWAddr::HWADDR_SOURCE_RAW = 0x00000001; +const uint32_t HWAddr::HWADDR_SOURCE_DUID = 0x00000002; +const uint32_t HWAddr::HWADDR_SOURCE_IPV6_LINK_LOCAL = 0x00000004; +const uint32_t HWAddr::HWADDR_SOURCE_CLIENT_ADDR_RELAY_OPTION = 0x00000008; +const uint32_t HWAddr::HWADDR_SOURCE_REMOTE_ID = 0x00000010; +const uint32_t HWAddr::HWADDR_SOURCE_SUBSCRIBER_ID = 0x00000020; +const uint32_t HWAddr::HWADDR_SOURCE_DOCSIS = 0x00000040; + HWAddr::HWAddr() :htype_(HTYPE_ETHER), source_(0) { } |