Decoding HEX data in accounting interim-updates

Arran Cudbard-Bell a.cudbardb at freeradius.org
Wed Mar 19 09:31:13 CET 2014


On 18 Mar 2014, at 22:29, Callum Barr <callumb at vibecommunications.co.nz> wrote:

> Thank you so much Arran - just what I was after :)


Sorry that should of been:

	update request {
		Tmp-Octets-0 := "0x%{1}"
		Tmp-Octets-1 := "0x%{2}"
	}

Or with the new rlm_unpack module Alan just added.

update request {
	Tmp-Integer-0 := "%{unpack:&Alc-Acct-I-Hiprio-Octets_64 0 short}"
	Tmp-Integer64-0 := "%{unpack:&Alc-Acct-I-Hiprio-Octets_64 2 integer64}"
}

Which is much nicer.

In the later versions of the server there's also a dhcp_options xlat you
can use to decode the forwarded DHCP options if you're using the Alcatel 
as a DHCP server for something like IPoE/metro QinQ type termination.

-Arran

Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS Development Team

FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 881 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/mailman/private/freeradius-users/attachments/20140319/00f8b581/attachment.pgp>


More information about the Freeradius-Users mailing list