From: Piotrek Zadroga Date: Mon, 29 May 2023 12:53:04 +0000 (+0200) Subject: [#2834] Addressed review comments X-Git-Tag: Kea-2.3.8~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ea8ad34748681a45640c88792f29f28ab6e2ec9;p=thirdparty%2Fkea.git [#2834] Addressed review comments --- diff --git a/doc/sphinx/man/perfdhcp.8.rst b/doc/sphinx/man/perfdhcp.8.rst index a8e62e94df..d7264a96e0 100644 --- a/doc/sphinx/man/perfdhcp.8.rst +++ b/doc/sphinx/man/perfdhcp.8.rst @@ -367,9 +367,9 @@ The following options only apply for DHCPv6 (i.e. when ``-6`` is given). does not offer any kind of logic behind those options; they are simply inserted into packets and sent as is. Please notice that ``encapsulation-level:`` is optional and if omitted, default encapsulation-level value 1 is used. - For example, to insert client class identifier (option code 60) with a - string "docsis" at first level of encapsulation, use "--or 60,646f63736973" - or "--or 1:60,646f63736973". The ``--or`` may be used multiple times. + For example, to insert Subscriber identifier (option code 38) with a + value 1234 at first level of encapsulation, use ``--or 38,31323334`` + or ``--or 1:38,31323334``. The ``--or`` may be used multiple times. It must be used together with ``-A``. Template-Related Options diff --git a/src/bin/perfdhcp/command_options.cc b/src/bin/perfdhcp/command_options.cc index b681740243..249ebc0f14 100644 --- a/src/bin/perfdhcp/command_options.cc +++ b/src/bin/perfdhcp/command_options.cc @@ -638,8 +638,8 @@ CommandOptions::initialize(int argc, char** argv, bool print_cmd_line) { check(comma_loc == std::string::npos, "--or option must provide encapsulation level, a colon, option code, a comma and " - "hexstring for the option content, e.g. --or 1:60,646f63736973 for sending option" - " 60 (class-id) with the value 'docsis' at first level of encapsulation"); + "hexstring for the option content, e.g. --or 1:38,31323334 for sending option" + " 38 (subscriber-id) with the value 1234 at first level of encapsulation"); int code = 0; // Try to parse the option code