2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00
Thomas Markwalder d7433e8d89 [4247] Pkt6 MAC extraction now sets HWAddr::source_ to the appropriate value
src/lib/dhcp/pkt.cc
    Pkt::getMAC(uint32_t hw_addr_src)
        sets HwAddr.source_ to HWADDR_SOURCE_RAW if appropriate

    Pkt::getMACFromIPv6(const isc::asiolink::IOAddress& addr)
        sets HwAddr.source_ to HWADDR_SOURCE_IPV6_LINK_LOCAL

src/lib/dhcp/pkt6.cc
    Pkt6::getMACFromDUID()
        sets HwAddr.source_ to HWADDR_SOURCE_DUID

    Pkt6::getMACFromIPv6RelayOpt()
        sets HwAddr.source_ to HWADDR_SOURCE_CLIENT_ADDR_RELAY_OPTION;

    Pkt6::getMACFromDocsisModem()         sets HwAddr.source_ to HWADDR_SOURCE_DOCSIS_MODEM;

    Pkt6::getMACFromDocsisCMTS()
        sets HwAddr.source_ to HWADDR_SOURCE_DOCSIS_CMTS;

    Pkt6::getMACFromRemoteIdRelayOption()
        sets HwAddr.source_ to HWADDR_SOURCE_REMOTE_ID;

src/lib/dhcp/tests/pkt6_unittest.cc
    Added checks for correct HWAddr::source_ values to the following tests:
    TEST_F(Pkt6Test, getMAC)
    TEST_F(Pkt6Test, getMAC)
    TEST_F(Pkt6Test, getMACFromIPv6LinkLocal_direct)
    TEST_F(Pkt6Test, getMACFromIPv6LinkLocal_singleRelay)
    TEST_F(Pkt6Test, getMACFromIPv6LinkLocal_multiRelay)
    TEST_F(Pkt6Test, getMACFromIPv6RelayOpt_singleRelay)
    TEST_F(Pkt6Test, getMACFromIPv6RelayOpt_multipleRelay)
    TEST_F(Pkt6Test, getMACFromDUID)
    TEST_F(Pkt6Test, getMACFromDUID)
    TEST_F(Pkt6Test, getMAC_DOCSIS_Modem)
    TEST_F(Pkt6Test, getMAC_DOCSIS_CMTS)
    TEST_F(Pkt6Test, getMACFromRemoteIdRelayOption)
2015-12-15 14:19:50 -05:00
2014-08-19 20:33:17 +02:00
2015-09-16 23:01:46 +02:00
2015-12-04 13:14:55 +01:00
2015-10-16 14:19:39 +02:00
2014-08-22 16:19:45 -07:00

Kea provides DHCPv4 and DHCPv6 servers, a dynamic DNS update module,
a portable DHCP library, libdhcp++, and a DHCP benchmarking tool,
perfdhcp.

Kea is developed by Internet Systems Consortium.

The developers website is at http://kea.isc.org/

Limitations and known issues with this DHCP release can be found
at http://kea.isc.org/wiki/KeaKnownIssues

The Kea mailing lists are available via
https://lists.isc.org/
Description
No description provided
Readme 148 MiB
Languages
C++ 94.1%
Shell 3.4%
PLpgSQL 0.7%
LLVM 0.6%
Meson 0.6%
Other 0.6%