How to get the accounting information from a NAS

How to get the accounting information from a NAS

Post by Witman Pen » Sun, 23 May 1999 04:00:00



Hi All,

I am sorry that if this is not the right place to post this mail. I want to
implement a general method to retrieve the accounting information from the
Network Access Server(Dial-in Server). I know RADIUS, but I don't whether
the popular dial-in server all adopt this standard? Any hint would be
appreciated.

BR,
Witman Peng

 
 
 

How to get the accounting information from a NAS

Post by Bernd Eckenfel » Sun, 23 May 1999 04:00:00



> I am sorry that if this is not the right place to post this mail. I want to
> implement a general method to retrieve the accounting information from the
> Network Access Server(Dial-in Server). I know RADIUS, but I don't whether
> the popular dial-in server all adopt this standard? Any hint would be
> appreciated.

Nearly all of them do. But they dont let u retrieve te info from the dial-in
server, but the dial-in router asks the radius for permission to let a user
dial in.

Greetings
Bernd

 
 
 

1. getting the network interface information and default gateway information ??

hi,
  iam trying to get the network interface information and the default
information.After doing some googling i found out the relevant
structures and the ioctl calls for getting the interfaces information(
i suppose i have all that right).
struct ifconf(and using the ioctl SIOCGIFCONF).
there is another structure
struct ifreq
but i dont think i need that one.

Now how do i do to get the interface address(aliases also).i have
written a small program, but dont know where iam going wrong.the code
is

#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <net/if.h>
#include <netinet/in.h>

int
main(int argc, char* argv[])
{
    struct ifconf ifc;
    struct ifreq *ifr;
    struct sockaddr_in *sin;
    char buf[128];

    if ((s = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
        perror("socket");
        return 1;
    }

    ifc.ifc_buf = buf;
    ifc.ifc_len = sizeof(buf);
    if (ioctl(s, SIOCGIFCONF, &ifc) < 0) {
        perror("ioctl SIOCGIFCONF");
        return 1;
    }

    ifc.ifc_len /= sizeof(struct ifreq);
    for (i=0; i<ifc.ifc_len; i++) {
        ifr = (struct ifreq *) &ifc.ifc_req[i];
        sin = (struct sockaddr_in *) &ifr->ifr_addr;
        printf("%s \n",sin->sin_addr);
        }
    }
    return 0;

And how can i get the default gateway address within my program.

any help will be highly appreciated.

thanks
rohit

2. Internet FastStart Web Server Problems

3. How is accounting information written while printing ?

4. Linux receiving e-mail from NT 4.0?

5. Accounting System Information Request

6. Restore Backup to Different Dir?

7. accounting information

8. How to install linux from an ls120 drive.

9. Information on Setting up a Corporate Compuserve Account?

10. Accounting System Information Request

11. Account Expiration information

12. Need help getting Solaris information for a Linux sysadm

13. Getting eth0 device information in C or perl.