RADIUS: Add Acct-Delay-Time into accounting messages
authorJouni Malinen <j@w1.fi>
Mon, 29 Feb 2016 15:40:23 +0000 (17:40 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 29 Feb 2016 15:43:13 +0000 (17:43 +0200)
commitdebde14b5b360537d51362b7cdc3b5cc02cf1945
treeccbd0c41fdf90a6e85f5a81743b4db3fe83dd0ff
parent9961c70a852305aed8a870d07ee22d302ea0a2b5
RADIUS: Add Acct-Delay-Time into accounting messages

This tells to the server how long we have been trying to transmit the
message so that the actual time of the message generation can be
determined from receive time (ignoring network delays and only at
accuracy of one second).

For interim updates, only value 0 is used since there are no
retransmissions of the same message. For other accounting messages, the
initial attempt goes out with value 0 and the retransmissions, if
needed, show the number of seconds the message has been waiting in the
queue.

Update the Identifier and Authenticator in the messages whenever
updating the Acct-Delay-Time per RFC 2866, 4.1 requirements.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/accounting.c
src/radius/radius_client.c