]> git.ipfire.org Git - thirdparty/kea.git/commit
[5535] kea-dhcp4 parsing now supports relay "ip-addresses"
authorThomas Markwalder <tmark@isc.org>
Thu, 26 Apr 2018 17:54:45 +0000 (13:54 -0400)
committerThomas Markwalder <tmark@isc.org>
Thu, 26 Apr 2018 17:54:45 +0000 (13:54 -0400)
commitc71f3d383f4749a3444f9b32be5f2d6bad1ec013
tree55bc9ae7c4d8cedfa0e862b6723f7a928240997f
parent0e5e017d4bf56ccc623723908e4b43e10a9ce63c
[5535] kea-dhcp4 parsing now supports relay "ip-addresses"

src/bin/dhcp4/dhcp4_lexer.ll
src/bin/dhcp4/dhcp4_parser.yy
    Modified to support "ip-address" and
    "ip-addresses" under "relay"

src/bin/dhcp4/tests/get_config_unittest.cc
    Updated per process.

src/bin/dhcp4/tests/config_parser_unittest.cc
    void checkResult() - modified to output parsing error text

    TEST_F(Dhcp4ParserTest, subnetRelayInfo)
    TEST_F(Dhcp4ParserTest, classifySubnets)
    - updated to use new Network methods

    TEST_F(Dhcp4ParserTest, subnetRelayInfoList) - new test
    to verify a list of addresses in relay
13 files changed:
src/bin/dhcp4/dhcp4_lexer.cc
src/bin/dhcp4/dhcp4_lexer.ll
src/bin/dhcp4/dhcp4_parser.cc
src/bin/dhcp4/dhcp4_parser.h
src/bin/dhcp4/dhcp4_parser.yy
src/bin/dhcp4/location.hh
src/bin/dhcp4/position.hh
src/bin/dhcp4/stack.hh
src/bin/dhcp4/tests/config_parser_unittest.cc
src/bin/dhcp4/tests/get_config_unittest.cc
src/lib/eval/location.hh
src/lib/eval/position.hh
src/lib/eval/stack.hh