]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
v4: DHCPv6 accept Confirm packets
authorNick Porter <nick@portercomputing.co.uk>
Thu, 3 Dec 2020 09:27:06 +0000 (09:27 +0000)
committerAlan DeKok <aland@freeradius.org>
Thu, 3 Dec 2020 13:29:30 +0000 (08:29 -0500)
We receive confirm packets, not send

src/modules/proto_dhcpv6/proto_dhcpv6_process.c

index 5b6f36d31841f8e3d9e762cee0b715747ca2091e..7eb64e60c4b6a315462a4f3f63ebf3da7a4f02e4 100644 (file)
@@ -154,6 +154,7 @@ static unlang_action_t mod_process(rlm_rcode_t *p_result, UNUSED module_ctx_t co
                [0]                             = FR_DHCPV6_DO_NOT_RESPOND,
                [FR_DHCPV6_SOLICIT]             = FR_DHCPV6_ADVERTISE,
                [FR_DHCPV6_REQUEST]             = FR_DHCPV6_REPLY,
+               [FR_DHCPV6_CONFIRM]             = FR_DHCPV6_REPLY,
                [FR_DHCPV6_RENEW]               = FR_DHCPV6_REPLY,
                [FR_DHCPV6_REBIND]              = FR_DHCPV6_REPLY,
                [FR_DHCPV6_RELEASE]             = FR_DHCPV6_REPLY,
@@ -166,6 +167,7 @@ static unlang_action_t mod_process(rlm_rcode_t *p_result, UNUSED module_ctx_t co
                [0]                             = FR_DHCPV6_DO_NOT_RESPOND,
                [FR_DHCPV6_SOLICIT]             = FR_DHCPV6_DO_NOT_RESPOND,
                [FR_DHCPV6_REQUEST]             = FR_DHCPV6_DO_NOT_RESPOND,
+               [FR_DHCPV6_CONFIRM]             = FR_DHCPV6_DO_NOT_RESPOND,
                [FR_DHCPV6_RENEW]               = FR_DHCPV6_DO_NOT_RESPOND,
                [FR_DHCPV6_REBIND]              = FR_DHCPV6_DO_NOT_RESPOND,
                [FR_DHCPV6_RELEASE]             = FR_DHCPV6_DO_NOT_RESPOND,
@@ -353,7 +355,7 @@ static const virtual_server_compile_t compile_list[] = {
                .component = MOD_POST_AUTH,
        },
        {
-               .name = "send",
+               .name = "recv",
                .name2 = "Confirm",
                .component = MOD_POST_AUTH,
        },