From 29e5dc90dfb950a8fa8e40609388256338ec1278 Mon Sep 17 00:00:00 2001 From: ume Date: Thu, 19 Jun 2003 18:55:49 +0000 Subject: Do RADIUS accounting on IPV6CP. MFC after: 1 week --- usr.sbin/ppp/ipcp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/ppp/ipcp.c') diff --git a/usr.sbin/ppp/ipcp.c b/usr.sbin/ppp/ipcp.c index b25a158..7d8ae63 100644 --- a/usr.sbin/ppp/ipcp.c +++ b/usr.sbin/ppp/ipcp.c @@ -872,8 +872,7 @@ IpcpLayerDown(struct fsm *fp) #ifndef NORADIUS radius_Account(&fp->bundle->radius, &fp->bundle->radacct, - fp->bundle->links, RAD_STOP, &ipcp->peer_ip, &ipcp->ifmask, - &ipcp->throughput); + fp->bundle->links, RAD_STOP, &ipcp->throughput); if (fp->bundle->radius.cfg.file && fp->bundle->radius.filterid) system_Select(fp->bundle, fp->bundle->radius.filterid, LINKDOWNFILE, @@ -939,8 +938,9 @@ IpcpLayerUp(struct fsm *fp) return 0; #ifndef NORADIUS + radius_Account_Set_Ip(&fp->bundle->radacct, &ipcp->peer_ip, &ipcp->ifmask); radius_Account(&fp->bundle->radius, &fp->bundle->radacct, fp->bundle->links, - RAD_START, &ipcp->peer_ip, &ipcp->ifmask, &ipcp->throughput); + RAD_START, &ipcp->throughput); if (fp->bundle->radius.cfg.file && fp->bundle->radius.filterid) system_Select(fp->bundle, fp->bundle->radius.filterid, LINKUPFILE, -- cgit v1.1