I am programming my own nas and I keep having the problem that my input-octets and output-octets wrap @2GB instead of 4GB I use rad_put_int(struct rad_handle *h, int type, u_int32_t value) so that's unsigned and in fact should work. I keep getting this in the detail file and in my database: Fri Mar 3 17:26:39 2006 NAS-IP-Address = x.x.x.x NAS-Identifier = "hotspot-2.wlan.imz.be" User-Name = "jonathan" Acct-Status-Type = Stop Acct-Session-Time = 1599 Acct-Authentic = RADIUS Service-Type = Outbound-User NAS-Port-Type = Ethernet NAS-Port = 6 Acct-Session-Id = "c8a1d1e3b8cd5dce" Framed-IP-Address = 192.168.2.255 Called-Station-Id = "00:13:21:cf:fe:02" Calling-Station-Id = "00:c0:9f:84:9e:c8" Acct-Input-Packets = 1345474 Acct-Input-Octets = 53843836 Acct-Input-Gigawords = 0 Acct-Output-Packets = 2041756 Acct-Output-Octets = 2147483648 Acct-Output-Gigawords = 0 Acct-Terminate-Cause = Admin-Reboot Client-IP-Address = x.x.x.x Acct-Unique-Session-Id = "3165ff1f761edd81" Stripped-User-Name = "jonathan" Realm = "NULL" Timestamp = 1141403199 It stops at 2147483648, even if my own NAS internal data is bigger then that. My database has the same problem: +-----------------+------------------+ | AcctInputOctets | AcctOutputOctets | +-----------------+------------------+ | 53843836 | 2147483648 | +-----------------+------------------+ The Mysql AcctInputOctets and AcctOutputOctets are bigint(12) Anyone knows why this happens? J. -- Jonathan De Graeve Network/System Administrator Imelda vzw Informatica Dienst 015/50.52.98 Jonathan.de.graeve@imelda.be
"Jonathan De Graeve" <Jonathan.De.Graeve@imelda.be> wrote:
I am programming my own nas and I keep having the problem that my input-octets and output-octets wrap @2GB instead of 4GB
I use rad_put_int(struct rad_handle *h, int type, u_int32_t value) so that's unsigned and in fact should work.
I keep getting this in the detail file and in my database:
FreeRADIUS logs what it receives. My suggestion is to use tcpdump, and check that the packets contain the 2G value. If so, the problem is in the NAS. Alan DeKok.
participants (2)
-
Alan DeKok -
Jonathan De Graeve