diff -Naur clean/daloradius-0.9-9/acct-all.php modif/daloradius-0.9-9/acct-all.php
--- clean/daloradius-0.9-9/acct-all.php	2011-05-05 22:21:55.000000000 +0200
+++ modif/daloradius-0.9-9/acct-all.php	2016-10-08 21:06:28.664861780 +0200
@@ -72,7 +72,7 @@
 	$numrows = $res->numRows();
 
 	
-	$sql = "SELECT ".$configValues['CONFIG_DB_TBL_RADACCT'].".RadAcctId, ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS'].".name as hotspot, ".$configValues['CONFIG_DB_TBL_RADACCT'].".UserName, ".$configValues['CONFIG_DB_TBL_RADACCT'].".FramedIPAddress, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctStartTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctStopTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctSessionTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctInputOctets, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctOutputOctets, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctTerminateCause, ".$configValues['CONFIG_DB_TBL_RADACCT'].".NASIPAddress FROM ".$configValues['CONFIG_DB_TBL_RADACCT']." LEFT JOIN ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS']." ON ".$configValues['CONFIG_DB_TBL_RADACCT'].".calledstationid = ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS'].".mac  ORDER BY $orderBy $orderType LIMIT $offset, $rowsPerPage;";
+	$sql = "SELECT ".$configValues['CONFIG_DB_TBL_RADACCT'].".RadAcctId, ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS'].".name as hotspot, ".$configValues['CONFIG_DB_TBL_RADACCT'].".UserName, ".$configValues['CONFIG_DB_TBL_RADACCT'].".FramedIPAddress, ".$configValues['CONFIG_DB_TBL_RADACCT'].".framedipv6prefix, ".$configValues['CONFIG_DB_TBL_RADACCT'].".framedinterfaceid, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctStartTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctStopTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctSessionTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctInputOctets, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctOutputOctets, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctTerminateCause, ".$configValues['CONFIG_DB_TBL_RADACCT'].".NASIPAddress FROM ".$configValues['CONFIG_DB_TBL_RADACCT']." LEFT JOIN ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS']." ON ".$configValues['CONFIG_DB_TBL_RADACCT'].".calledstationid = ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS'].".mac  ORDER BY $orderBy $orderType LIMIT $offset, $rowsPerPage;";
 	$res = $dbSocket->query($sql);
 	$logDebugSQL = "";
 	$logDebugSQL .= $sql . "\n";
@@ -85,7 +85,7 @@
         echo "
                 <thead>
                         <tr>
-                        <th colspan='12' align='left'>
+                        <th colspan='13' align='left'>
 
                         <input class='button' type='button' value='CSV Export'
                         onClick=\"javascript:window.location.href='include/management/fileExport.php?reportFormat=csv'\"
@@ -129,6 +129,16 @@
 		".$l['all']['IPAddress']."</a>
 		</th>
 		<th scope='col'> 
+                <br/>
+                <a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?orderBy=framedipv6prefix&orderType=$orderTypeNextPage\">
+                ".$l['all']['framedipv6prefix']."</a>
+                </th>
+		<th scope='col'> 
+                <br/>
+                <a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?orderBy=framedinterfaceid&orderType=$orderTypeNextPage\">
+                ".$l['all']['framedinterfaceid']."</a>
+                </th>
+		<th scope='col'> 
 		<br/>
 		<a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?orderBy=acctstarttime&orderType=$orderTypeNextPage\">
 		".$l['all']['StartTime']."</a>
@@ -206,18 +216,20 @@
 				<td> $row[3] </td>
 				<td> $row[4] </td>
 				<td> $row[5] </td>
-				<td> ".time2str($row[6])."</td>
-				<td> ".toxbyte($row[7])."</td>
-				<td> ".toxbyte($row[8])."</td>
-				<td> $row[9] </td>
-				<td> $row[10] </td>
+				<td> $row[6] </td>
+				<td> $row[7] </td>
+				<td> ".time2str($row[8])."</td>
+				<td> ".toxbyte($row[9])."</td>
+				<td> ".toxbyte($row[10])."</td>
+				<td> $row[11] </td>
+				<td> $row[12] </td>
 		</tr>");
 	}
 
         echo "
                                         <tfoot>
                                                         <tr>
-                                                        <th colspan='12' align='left'>
+                                                        <th colspan='13' align='left'>
         ";
         setupLinks($pageNum, $maxPage, $orderBy, $orderType);
         echo "
diff -Naur clean/daloradius-0.9-9/acct-date.php modif/daloradius-0.9-9/acct-date.php
--- clean/daloradius-0.9-9/acct-date.php	2011-05-05 22:21:53.000000000 +0200
+++ modif/daloradius-0.9-9/acct-date.php	2016-10-08 21:00:00.788843089 +0200
@@ -99,7 +99,7 @@
 	$numrows = $res->numRows();
 
 	
-    $sql = "SELECT ".$configValues['CONFIG_DB_TBL_RADACCT'].".RadAcctId, ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS'].".name as hotspot, ".$configValues['CONFIG_DB_TBL_RADACCT'].".UserName, ".$configValues['CONFIG_DB_TBL_RADACCT'].".FramedIPAddress, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctStartTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctStopTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctSessionTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctInputOctets, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctOutputOctets, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctTerminateCause, ".$configValues['CONFIG_DB_TBL_RADACCT'].".NASIPAddress FROM ".$configValues['CONFIG_DB_TBL_RADACCT']." LEFT JOIN ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS']." ON ".$configValues['CONFIG_DB_TBL_RADACCT'].".calledstationid = ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS'].".mac WHERE AcctStartTime>'$startdate' and AcctStartTime<'$enddate' and UserName like '$username' ORDER BY $orderBy $orderType LIMIT $offset, $rowsPerPage;";
+    $sql = "SELECT ".$configValues['CONFIG_DB_TBL_RADACCT'].".RadAcctId, ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS'].".name as hotspot, ".$configValues['CONFIG_DB_TBL_RADACCT'].".UserName, ".$configValues['CONFIG_DB_TBL_RADACCT'].".FramedIPAddress, ".$configValues['CONFIG_DB_TBL_RADACCT'].".framedipv6prefix, ".$configValues['CONFIG_DB_TBL_RADACCT'].".framedinterfaceid, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctStartTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctStopTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctSessionTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctInputOctets, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctOutputOctets, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctTerminateCause, ".$configValues['CONFIG_DB_TBL_RADACCT'].".NASIPAddress FROM ".$configValues['CONFIG_DB_TBL_RADACCT']." LEFT JOIN ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS']." ON ".$configValues['CONFIG_DB_TBL_RADACCT'].".calledstationid = ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS'].".mac WHERE AcctStartTime>'$startdate' and AcctStartTime<'$enddate' and UserName like '$username' ORDER BY $orderBy $orderType LIMIT $offset, $rowsPerPage;";
 	$res = $dbSocket->query($sql);
 	$logDebugSQL = "";
 	$logDebugSQL .= $sql . "\n";
@@ -120,7 +120,7 @@
         echo "
                 <thead>
                         <tr>
-                        <th colspan='12' align='left'>
+                        <th colspan='13' align='left'>
 
                         <input class='button' type='button' value='CSV Export'
                         onClick=\"javascript:window.location.href='include/management/fileExport.php?reportFormat=csv'\"
@@ -164,6 +164,16 @@
 		".$l['all']['IPAddress']."</a>
 		</th>
 		<th scope='col'> 
+                <br/>
+                <a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?username=$username&startdate=$startdate&enddate=$enddate&orderBy=framedipv6prefix&orderType=$orderTypeNextPage\">
+                ".$l['all']['framedipv6prefix']."</a>
+                </th>
+		<th scope='col'> 
+                <br/>
+                <a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?username=$username&startdate=$startdate&enddate=$enddate&orderBy=framedinterfaceid&orderType=$orderTypeNextPage\">
+                ".$l['all']['framedinterfaceid']."</a>
+                </th>
+		<th scope='col'> 
 		<br/>
 		<a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?username=$username&startdate=$startdate&enddate=$enddate&orderBy=acctstarttime&orderType=$orderTypeNextPage\">
 		".$l['all']['StartTime']."</a>
@@ -239,11 +249,13 @@
 				<td> $row[3] </td>
 				<td> $row[4] </td>
 				<td> $row[5] </td>
-				<td> ".time2str($row[6])." </td>
-				<td> ".toxbyte($row[7])."</td>
-				<td> ".toxbyte($row[8])."</td>
-				<td> $row[9] </td>
-				<td> $row[10] </td>
+				<td> $row[6] </td>
+				<td> $row[7] </td>
+				<td> ".time2str($row[8])." </td>
+				<td> ".toxbyte($row[9])."</td>
+				<td> ".toxbyte($row[10])."</td>
+				<td> $row[11] </td>
+				<td> $row[12] </td>
 		</tr>");
 
 	}
@@ -251,7 +263,7 @@
         echo "
                                         <tfoot>
                                                         <tr>
-                                                        <th colspan='12' align='left'>
+                                                        <th colspan='13' align='left'>
         ";
 	setupLinks($pageNum, $maxPage, $orderBy, $orderType,"&username=$username&startdate=$startdate&enddate=$enddate");
         echo "
diff -Naur clean/daloradius-0.9-9/acct-hotspot-accounting.php modif/daloradius-0.9-9/acct-hotspot-accounting.php
--- clean/daloradius-0.9-9/acct-hotspot-accounting.php	2011-05-05 22:21:55.000000000 +0200
+++ modif/daloradius-0.9-9/acct-hotspot-accounting.php	2016-10-08 20:37:06.796776880 +0200
@@ -83,7 +83,7 @@
 
 
 	
-	$sql = "SELECT ".$configValues['CONFIG_DB_TBL_RADACCT'].".RadAcctId, ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS'].".name as hotspot, ".$configValues['CONFIG_DB_TBL_RADACCT'].".UserName, ".$configValues['CONFIG_DB_TBL_RADACCT'].".FramedIPAddress, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctStartTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctStopTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctSessionTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctInputOctets, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctOutputOctets, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctTerminateCause, ".$configValues['CONFIG_DB_TBL_RADACCT'].".NASIPAddress FROM ".$configValues['CONFIG_DB_TBL_RADACCT']." LEFT JOIN ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS']." ON ".$configValues['CONFIG_DB_TBL_RADACCT'].".calledstationid = ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS'].".mac WHERE ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS'].".name='$hotspot'  ORDER BY $orderBy $orderType LIMIT $offset, $rowsPerPage;";
+	$sql = "SELECT ".$configValues['CONFIG_DB_TBL_RADACCT'].".RadAcctId, ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS'].".name as hotspot, ".$configValues['CONFIG_DB_TBL_RADACCT'].".UserName, ".$configValues['CONFIG_DB_TBL_RADACCT'].".FramedIPAddress, ".$configValues['CONFIG_DB_TBL_RADACCT'].".framedipv6prefix, ".$configValues['CONFIG_DB_TBL_RADACCT'].".framedinterfaceid, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctStartTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctStopTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctSessionTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctInputOctets, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctOutputOctets, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctTerminateCause, ".$configValues['CONFIG_DB_TBL_RADACCT'].".NASIPAddress FROM ".$configValues['CONFIG_DB_TBL_RADACCT']." LEFT JOIN ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS']." ON ".$configValues['CONFIG_DB_TBL_RADACCT'].".calledstationid = ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS'].".mac WHERE ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS'].".name='$hotspot'  ORDER BY $orderBy $orderType LIMIT $offset, $rowsPerPage;";
 	$res = $dbSocket->query($sql);
 	$logDebugSQL = "";
 	$logDebugSQL .= $sql . "\n";
@@ -142,6 +142,16 @@
 		".$l['all']['IPAddress']."</a>
 		</th>
 		<th scope='col'> 
+                <br/>
+                <a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?hotspot=$hotspot&orderBy=framedipv6prefix&orderType=$orderTypeNextPage\">
+                ".$l['all']['framedipv6prefix']."</a>
+                </th>
+		<th scope='col'> 
+                <br/>
+                <a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?hotspot=$hotspot&orderBy=framedinterfaceid&orderType=$orderTypeNextPage\">
+                ".$l['all']['framedinterfaceid']."</a>
+                </th>
+		<th scope='col'> 
 		<br/>
 		<a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?hotspot=$hotspot&orderBy=acctstarttime&orderType=$orderTypeNextPage\">
 		".$l['all']['StartTime']."</a>
@@ -198,13 +208,15 @@
                         </td>
 
                         <td> $row[3] </td>
-                        <td> $row[4] </td>
-                        <td> $row[5] </td>
-                        <td> ".time2str($row[6])." </td>
-                        <td> ".toxbyte($row[7])."</td>
-                        <td> ".toxbyte($row[8])."</td>
-                        <td> $row[9] </td>
-                        <td> $row[10] </td>
+			<td> $row[4] </td>
+			<td> $row[5] </td>
+                        <td> $row[6] </td>
+                        <td> $row[7] </td>
+                        <td> ".time2str($row[8])." </td>
+                        <td> ".toxbyte($row[9])."</td>
+                        <td> ".toxbyte($row[10])."</td>
+                        <td> $row[11] </td>
+                        <td> $row[12] </td>
                 </tr>");
         }
 
diff -Naur clean/daloradius-0.9-9/acct-ipaddress.php modif/daloradius-0.9-9/acct-ipaddress.php
--- clean/daloradius-0.9-9/acct-ipaddress.php	2011-05-05 22:21:53.000000000 +0200
+++ modif/daloradius-0.9-9/acct-ipaddress.php	2016-10-08 20:59:17.484841002 +0200
@@ -82,7 +82,7 @@
 	$res = $dbSocket->query($sql);
 	$numrows = $res->numRows();
 	
-        $sql = "SELECT ".$configValues['CONFIG_DB_TBL_RADACCT'].".RadAcctId, ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS'].".name as hotspot, ".$configValues['CONFIG_DB_TBL_RADACCT'].".UserName, radacct.FramedIPAddress, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctStartTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctStopTime, radacct.AcctSessionTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctInputOctets, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctOutputOctets, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctTerminateCause, ".$configValues['CONFIG_DB_TBL_RADACCT'].".NASIPAddress FROM ".$configValues['CONFIG_DB_TBL_RADACCT']." LEFT JOIN ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS']." ON ".$configValues['CONFIG_DB_TBL_RADACCT'].".calledstationid = ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS'].".mac WHERE FramedIPAddress='$ipaddress'  ORDER BY $orderBy $orderType LIMIT $offset, $rowsPerPage;";
+        $sql = "SELECT ".$configValues['CONFIG_DB_TBL_RADACCT'].".RadAcctId, ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS'].".name as hotspot, ".$configValues['CONFIG_DB_TBL_RADACCT'].".UserName,".$configValues['CONFIG_DB_TBL_RADACCT'].".FramedIPAddress, ".$configValues['CONFIG_DB_TBL_RADACCT'].".framedipv6prefix, ".$configValues['CONFIG_DB_TBL_RADACCT'].".framedinterfaceid, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctStartTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctStopTime, radacct.AcctSessionTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctInputOctets, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctOutputOctets, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctTerminateCause, ".$configValues['CONFIG_DB_TBL_RADACCT'].".NASIPAddress FROM ".$configValues['CONFIG_DB_TBL_RADACCT']." LEFT JOIN ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS']." ON ".$configValues['CONFIG_DB_TBL_RADACCT'].".calledstationid = ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS'].".mac WHERE FramedIPAddress='$ipaddress'  ORDER BY $orderBy $orderType LIMIT $offset, $rowsPerPage;";
 	$res = $dbSocket->query($sql);
 	$logDebugSQL = "";
 	$logDebugSQL .= $sql . "\n";
@@ -95,7 +95,7 @@
         echo "
                 <thead>
                         <tr>
-                        <th colspan='12' align='left'>
+                        <th colspan='13' align='left'>
 
                         <input class='button' type='button' value='CSV Export'
                         onClick=\"javascript:window.location.href='include/management/fileExport.php?reportFormat=csv'\"
@@ -140,6 +140,16 @@
 		".$l['all']['IPAddress']."</a>
 		</th>
 		<th scope='col'> 
+                <br/>
+                <a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?ipaddress=$ipaddress&orderBy=framedipv6prefix&orderType=$orderTypeNextPage\">
+                ".$l['all']['framedipv6prefix']."</a>
+                </th>
+		<th scope='col'> 
+                <br/>
+                <a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?ipaddress=$ipaddress&orderBy=acctstarttime&orderType=$orderTypeNextPage\">
+                ".$l['all']['framedinterfaceid']."</a>
+                </th>
+		<th scope='col'> 
 		<br/>
 		<a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?ipaddress=$ipaddress&orderBy=acctstarttime&orderType=$orderTypeNextPage\">
 		".$l['all']['StartTime']."</a>
@@ -212,20 +222,22 @@
                                 >$row[2]</a>
                         </td>
                         <td> $row[3] </td>
-                        <td> $row[4] </td>
-                        <td> $row[5] </td>
-                        <td> ".time2str($row[6])." </td>
-                        <td> ".toxbyte($row[7])."</td>
-                        <td> ".toxbyte($row[8])."</td>
-                        <td> $row[9] </td>
-                        <td> $row[10] </td>
+			<td> $row[4] </td>
+			<td> $row[5] </td>
+                        <td> $row[6] </td>
+                        <td> $row[7] </td>
+                        <td> ".time2str($row[8])." </td>
+                        <td> ".toxbyte($row[9])."</td>
+                        <td> ".toxbyte($row[10])."</td>
+                        <td> $row[11] </td>
+                        <td> $row[12] </td>
                 </tr>");
         }
 
         echo "
                                         <tfoot>
                                                         <tr>
-                                                        <th colspan='12' align='left'>
+                                                        <th colspan='13' align='left'>
         ";
 	setupLinks($pageNum, $maxPage, $orderBy, $orderType,"&ipaddress=$ipaddress");
         echo "
diff -Naur clean/daloradius-0.9-9/acct-ipv6address.php modif/daloradius-0.9-9/acct-ipv6address.php
--- clean/daloradius-0.9-9/acct-ipv6address.php	1970-01-01 01:00:00.000000000 +0100
+++ modif/daloradius-0.9-9/acct-ipv6address.php	2016-10-08 21:33:22.324939538 +0200
@@ -0,0 +1,282 @@
+<?php
+/*
+ *********************************************************************************************************
+ * daloRADIUS - RADIUS Web Platform
+ * Copyright (C) 2007 - Liran Tal <liran@enginx.com> All Rights Reserved.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ *
+ *********************************************************************************************************
+*
+ * Authors:	Liran Tal <liran@enginx.com>
+ *
+ *********************************************************************************************************
+ */
+
+    include ("library/checklogin.php");
+    $operator = $_SESSION['operator_user'];
+
+	include('library/check_operator_perm.php');
+
+	//setting values for the order by and order type variables
+	isset($_GET['orderBy']) ? $orderBy = $_GET['orderBy'] : $orderBy = "radacctid";
+	isset($_GET['orderType']) ? $orderType = $_GET['orderType'] : $orderType = "asc";	
+
+
+	isset($_GET['ipv6address']) ? $ipv6address = $_GET['ipv6address'] : $ipv6address = "";
+
+
+	//feed the sidebar variables
+	$accounting_ipv6address = $ipv6address;
+
+	include_once('library/config_read.php');
+    $log = "visited page: ";
+    $logQuery = "performed query for ip address [$ipv6address] on page: ";
+
+?>
+
+<?php
+	
+	include("menu-accounting.php");
+	
+?>
+		
+		
+		<div id="contentnorightbar">
+		
+		<h2 id="Intro"><a href="#" onclick="javascript:toggleShowDiv('helpPage')"><?echo $l['Intro']['acctipv6address.php'];?>
+		<h144>+</h144></a></h2>
+				
+		<div id="helpPage" style="display:none;visibility:visible" >
+			<?php echo $l['helpPage']['acctipv6address'] ?>
+			<br/>
+		</div>
+		<br/>
+
+
+
+<?php
+
+	include 'library/opendb.php';
+	include 'include/management/pages_common.php';
+	include 'include/management/pages_numbering.php';		// must be included after opendb because it needs to read the CONFIG_IFACE_TABLES_LISTING variable from the config file
+	
+	// we can only use the $dbSocket after we have included 'library/opendb.php' which initialzes the connection and the $dbSocket object	
+	$ipv6address = $dbSocket->escapeSimple($ipv6address);
+
+        // setup php session variables for exporting
+        $_SESSION['reportTable'] = $configValues['CONFIG_DB_TBL_RADACCT'];
+        $_SESSION['reportQuery'] = " WHERE framedinterfaceid='$ipv6address'";
+        $_SESSION['reportType'] = "accountingGeneric";
+
+
+	//orig: used as maethod to get total rows - this is required for the pages_numbering.php page
+        $sql = "SELECT ".$configValues['CONFIG_DB_TBL_RADACCT'].".RadAcctId, ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS'].".name as hotspot, ".$configValues['CONFIG_DB_TBL_RADACCT'].".UserName,".$configValues['CONFIG_DB_TBL_RADACCT'].".FramedIPAddress, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctStartTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctStopTime, radacct.AcctSessionTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctInputOctets, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctOutputOctets, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctTerminateCause, ".$configValues['CONFIG_DB_TBL_RADACCT'].".NASIPAddress FROM ".$configValues['CONFIG_DB_TBL_RADACCT']." LEFT JOIN ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS']." ON ".$configValues['CONFIG_DB_TBL_RADACCT'].".calledstationid = ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS'].".mac WHERE framedinterfaceid='$ipv6address';";
+	$res = $dbSocket->query($sql);
+	$numrows = $res->numRows();
+	
+        $sql = "SELECT ".$configValues['CONFIG_DB_TBL_RADACCT'].".RadAcctId, ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS'].".name as hotspot, ".$configValues['CONFIG_DB_TBL_RADACCT'].".UserName,".$configValues['CONFIG_DB_TBL_RADACCT'].".FramedIPAddress, ".$configValues['CONFIG_DB_TBL_RADACCT'].".framedipv6prefix, ".$configValues['CONFIG_DB_TBL_RADACCT'].".framedinterfaceid, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctStartTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctStopTime, radacct.AcctSessionTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctInputOctets, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctOutputOctets, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctTerminateCause, ".$configValues['CONFIG_DB_TBL_RADACCT'].".NASIPAddress FROM ".$configValues['CONFIG_DB_TBL_RADACCT']." LEFT JOIN ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS']." ON ".$configValues['CONFIG_DB_TBL_RADACCT'].".calledstationid = ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS'].".mac WHERE framedinterfaceid='$ipv6address'  ORDER BY $orderBy $orderType LIMIT $offset, $rowsPerPage;";
+	$res = $dbSocket->query($sql);
+	$logDebugSQL = "";
+	$logDebugSQL .= $sql . "\n";
+
+	/* START - Related to pages_numbering.php */
+	$maxPage = ceil($numrows/$rowsPerPage);
+	/* END */
+
+        echo "<table border='0' class='table1'>\n";
+        echo "
+                <thead>
+                        <tr>
+                        <th colspan='13' align='left'>
+
+                        <input class='button' type='button' value='CSV Export'
+                        onClick=\"javascript:window.location.href='include/management/fileExport.php?reportFormat=csv'\"
+                        />
+                        <br/>
+                <br/>
+        ";
+
+        if ($configValues['CONFIG_IFACE_TABLES_LISTING_NUM'] == "yes")
+		setupNumbering($numrows, $rowsPerPage, $pageNum, $orderBy, $orderType,"&ipv6address=$ipv6address");
+
+        echo " </th></tr>
+                                        </thead>
+
+                        ";
+
+	if ($orderType == "asc") {
+			$orderTypeNextPage = "desc";
+	} else  if ($orderType == "desc") {
+			$orderTypeNextPage = "asc";
+	}
+	
+	echo "<thread> <tr>
+		<th scope='col'> 
+		<br/>
+		<a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?ipv6address=$ipv6address&orderBy=radacctid&orderType=$orderTypeNextPage\">
+		".$l['all']['ID']."</a>
+		</th>
+		<th scope='col'> 
+		<br/>
+		<a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?ipv6address=$ipv6address&orderBy=hotspot&orderType=$orderTypeNextPage\">
+		".$l['all']['HotSpot']."</a>
+		</th>
+		<th scope='col'> 
+		<br/>
+		<a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?ipv6address=$ipv6address&orderBy=username&orderType=$orderTypeNextPage\">
+		".$l['all']['Username']."</a>
+		</th>
+		<th scope='col'> 
+		<br/>
+		<a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?ipv6address=$ipv6address&orderBy=framedipaddress&orderType=$orderTypeNextPage\">
+		".$l['all']['IPAddress']."</a>
+		</th>
+		<th scope='col'> 
+                <br/>
+                <a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?ipv6address=$ipv6address&orderBy=framedipv6prefix&orderType=$orderTypeNextPage\">
+                ".$l['all']['framedipv6prefix']."</a>
+                </th>
+		<th scope='col'> 
+                <br/>
+                <a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?ipv6address=$ipv6address&orderBy=acctstarttime&orderType=$orderTypeNextPage\">
+                ".$l['all']['framedinterfaceid']."</a>
+                </th>
+		<th scope='col'> 
+		<br/>
+		<a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?ipv6address=$ipv6address&orderBy=acctstarttime&orderType=$orderTypeNextPage\">
+		".$l['all']['StartTime']."</a>
+		</th>
+		<th scope='col'> 
+		<br/>
+		<a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?ipv6address=$ipv6address&orderBy=acctstoptime&orderType=$orderTypeNextPage\">
+		".$l['all']['StopTime']."</a>
+		</th>
+		<th scope='col'> 
+		<br/>
+		<a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?ipv6address=$ipv6address&orderBy=acctsessiontime&orderType=$orderTypeNextPage\">
+		".$l['all']['TotalTime']."</a>
+		</th>
+		<th scope='col'> 
+		<br/>
+		<a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?ipv6address=$ipv6address&orderBy=acctinputoctets&orderType=$orderTypeNextPage\">
+		".$l['all']['Upload']." (".$l['all']['Bytes'].")</a>
+		</th>
+		<th scope='col'> 
+		<br/>
+		<a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?ipv6address=$ipv6address&orderBy=acctoutputoctets&orderType=$orderTypeNextPage\">
+		".$l['all']['Download']." (".$l['all']['Bytes'].")</a>
+		</th>
+		<th scope='col'> 
+		<br/>
+		<a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?ipv6address=$ipv6address&orderBy=acctterminatecause&orderType=$orderTypeNextPage\">
+		".$l['all']['Termination']."</a>
+		</th>
+		<th scope='col'> 
+		<br/>
+		<a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?ipv6address=$ipv6address&orderBy=nasipaddress&orderType=$orderTypeNextPage\">
+		".$l['all']['NASIPAddress']."</a>
+		</th>
+                </tr> </thread>";
+	while($row = $res->fetchRow()) {
+                printqn("<tr>
+                        <td> $row[0] </td>
+
+                        <td> <a class='tablenovisit' href='javascript:return;'
+                                onClick='javascript:ajaxGeneric(\"include/management/retHotspotInfo.php\",\"retHotspotGeneralStat\",\"divContainerHotspotInfo\",\"hotspot=$row[1]\");
+                                        javascript:__displayTooltip();'
+                                tooltipText='
+                                        <a class=\"toolTip\" href=\"mng-hs-edit.php?name=$row[1]\">
+                                                {$l['Tooltip']['HotspotEdit']}</a>
+                                        &nbsp;
+                                        <a class=\"toolTip\" href=\"acct-hotspot-compare.php?\">
+                                                {$l['all']['Compare']}</a>
+                                        <br/><br/>
+
+                                        <div id=\"divContainerHotspotInfo\">
+                                                Loading...
+                                        </div>
+                                        <br/>'
+                                >$row[1]</a>
+                        </td>
+
+                        <td> <a class='tablenovisit' href='javascript:return;'
+                                onClick='javascript:ajaxGeneric(\"include/management/retUserInfo.php\",\"retBandwidthInfo\",\"divContainerUserInfo\",\"username=$row[2]\");
+                                        javascript:__displayTooltip();'
+                                tooltipText='
+                                        <a class=\"toolTip\" href=\"mng-edit.php?username=$row[2]\">
+	                                        {$l['Tooltip']['UserEdit']}</a>
+                                        <br/><br/>
+
+                                        <div id=\"divContainerUserInfo\">
+                                                Loading...
+                                        </div>
+                                        <br/>'
+                                >$row[2]</a>
+                        </td>
+                        <td> $row[3] </td>
+			<td> $row[4] </td>
+			<td> $row[5] </td>
+                        <td> $row[6] </td>
+                        <td> $row[7] </td>
+                        <td> ".time2str($row[8])." </td>
+                        <td> ".toxbyte($row[9])."</td>
+                        <td> ".toxbyte($row[10])."</td>
+                        <td> $row[11] </td>
+                        <td> $row[12] </td>
+                </tr>");
+        }
+
+        echo "
+                                        <tfoot>
+                                                        <tr>
+                                                        <th colspan='13' align='left'>
+        ";
+	setupLinks($pageNum, $maxPage, $orderBy, $orderType,"&ipv6address=$ipv6address");
+        echo "
+                                                        </th>
+                                                        </tr>
+                                        </tfoot>
+                ";
+
+        echo "</table>";
+
+        include 'library/closedb.php';
+?>
+
+
+<?php
+	include('include/config/logging.php');
+?>
+
+		</div>
+		
+		<div id="footer">
+		
+								<?php
+        include 'page-footer.php';
+?>
+
+		
+		</div>
+		
+</div>
+</div>
+
+<script type="text/javascript">
+        var tooltipObj = new DHTMLgoodies_formTooltip();
+        tooltipObj.setTooltipPosition('right');
+        tooltipObj.setPageBgColor('#EEEEEE');
+        tooltipObj.setTooltipCornerSize(15);
+        tooltipObj.initFormFieldTooltip();
+</script>
+
+</body>
+</html>
diff -Naur clean/daloradius-0.9-9/acct-nasipaddress.php modif/daloradius-0.9-9/acct-nasipaddress.php
--- clean/daloradius-0.9-9/acct-nasipaddress.php	2011-05-05 22:21:54.000000000 +0200
+++ modif/daloradius-0.9-9/acct-nasipaddress.php	2016-10-08 20:59:31.828841694 +0200
@@ -86,7 +86,7 @@
 
 
 	
-    $sql = "SELECT ".$configValues['CONFIG_DB_TBL_RADACCT'].".RadAcctId, ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS'].".name as hotspot, ".$configValues['CONFIG_DB_TBL_RADACCT'].".UserName, ".$configValues['CONFIG_DB_TBL_RADACCT'].".FramedIPAddress, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctStartTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctStopTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctSessionTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctInputOctets, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctOutputOctets, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctTerminateCause, ".$configValues['CONFIG_DB_TBL_RADACCT'].".NASIPAddress FROM ".$configValues['CONFIG_DB_TBL_RADACCT']." LEFT JOIN ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS']." ON ".$configValues['CONFIG_DB_TBL_RADACCT'].".calledstationid = ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS'].".mac WHERE NASIPAddress='$nasipaddress' ORDER BY $orderBy $orderType LIMIT $offset, $rowsPerPage;";
+    $sql = "SELECT ".$configValues['CONFIG_DB_TBL_RADACCT'].".RadAcctId, ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS'].".name as hotspot, ".$configValues['CONFIG_DB_TBL_RADACCT'].".UserName, ".$configValues['CONFIG_DB_TBL_RADACCT'].".FramedIPAddress, ".$configValues['CONFIG_DB_TBL_RADACCT'].".framedipv6prefix, ".$configValues['CONFIG_DB_TBL_RADACCT'].".framedinterfaceid, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctStartTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctStopTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctSessionTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctInputOctets, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctOutputOctets, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctTerminateCause, ".$configValues['CONFIG_DB_TBL_RADACCT'].".NASIPAddress FROM ".$configValues['CONFIG_DB_TBL_RADACCT']." LEFT JOIN ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS']." ON ".$configValues['CONFIG_DB_TBL_RADACCT'].".calledstationid = ".$configValues['CONFIG_DB_TBL_DALOHOTSPOTS'].".mac WHERE NASIPAddress='$nasipaddress' ORDER BY $orderBy $orderType LIMIT $offset, $rowsPerPage;";
 	$res = $dbSocket->query($sql);
 	$logDebugSQL = "";
 	$logDebugSQL .= $sql . "\n";
@@ -99,7 +99,7 @@
         echo "
                 <thead>
                         <tr>
-                        <th colspan='12' align='left'>
+                        <th colspan='13' align='left'>
 
                         <input class='button' type='button' value='CSV Export'
                         onClick=\"javascript:window.location.href='include/management/fileExport.php?reportFormat=csv'\"
@@ -144,6 +144,16 @@
 		".$l['all']['IPAddress']."</a>
 		</th>
 		<th scope='col'> 
+                <br/>
+                <a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?nasipaddress=$nasipaddress&orderBy=framedipv6prefix&orderType=$orderTypeNextPage\">
+                ".$l['all']['framedipv6prefix']."</a>
+                </th>
+		<th scope='col'> 
+                <br/>
+                <a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?nasipaddress=$nasipaddress&orderBy=framedinterfaceid&orderType=$orderTypeNextPage\">
+                ".$l['all']['framedinterfaceid']."</a>
+                </th>
+		<th scope='col'> 
 		<br/>
 		<a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?nasipaddress=$nasipaddress&orderBy=acctstarttime&orderType=$orderTypeNextPage\">
 		".$l['all']['StartTime']."</a>
@@ -216,20 +226,22 @@
                                 >$row[2]</a>
                         </td>
                         <td> $row[3] </td>
-                        <td> $row[4] </td>
-                        <td> $row[5] </td>
-                        <td> ".time2str($row[6])." </td>
-                        <td> ".toxbyte($row[7])."</td>
-                        <td> ".toxbyte($row[8])."</td>
-                        <td> $row[9] </td>
-                        <td> $row[10] </td>
+			<td> $row[4] </td>
+			<td> $row[5] </td>
+                        <td> $row[6] </td>
+                        <td> $row[7] </td>
+                        <td> ".time2str($row[8])." </td>
+                        <td> ".toxbyte($row[9])."</td>
+                        <td> ".toxbyte($row[10])."</td>
+                        <td> $row[11] </td>
+                        <td> $row[12] </td>
                 </tr>");
         }
 
         echo "
                                         <tfoot>
                                                         <tr>
-                                                        <th colspan='12' align='left'>
+                                                        <th colspan='13' align='left'>
         ";
 	setupLinks($pageNum, $maxPage, $orderBy, $orderType,"&nasipaddress=$nasipaddress");
         echo "
diff -Naur clean/daloradius-0.9-9/acct-username.php modif/daloradius-0.9-9/acct-username.php
--- clean/daloradius-0.9-9/acct-username.php	2011-05-05 22:21:54.000000000 +0200
+++ modif/daloradius-0.9-9/acct-username.php	2016-10-08 21:08:51.576868666 +0200
@@ -109,6 +109,8 @@
 			".name as hotspot, ".$configValues['CONFIG_DB_TBL_RADACCT'].
 			".UserName, ".$configValues['CONFIG_DB_TBL_RADACCT'].
 			".FramedIPAddress, ".$configValues['CONFIG_DB_TBL_RADACCT'].
+			".framedipv6prefix, ".$configValues['CONFIG_DB_TBL_RADACCT'].
+			".framedinterfaceid, ".$configValues['CONFIG_DB_TBL_RADACCT'].
 			".AcctStartTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].
 			".AcctStopTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].
 			".AcctSessionTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].
@@ -131,7 +133,7 @@
 		echo "
 			<thead>
 			<tr>
-				<th colspan='12' align='left'>
+				<th colspan='13' align='left'>
 
 			<input class='button' type='button' value='CSV Export'
 			onClick=\"javascript:window.location.href='include/management/fileExport.php?reportFormat=csv'\"
@@ -174,6 +176,16 @@
 			".$l['all']['IPAddress']."</a>
 			</th>
 			<th scope='col'> 
+                        <br/>
+                        <a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?username=$username&orderBy=framedipv6prefix&orderType=$orderTypeNextPage\">
+                        ".$l['all']['framedipv6prefix']."</a>
+                        </th>
+			<th scope='col'> 
+                        <br/>
+                        <a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?username=$username&orderBy=framedinterfaceid&orderType=$orderTypeNextPage\">
+                        ".$l['all']['framedinterfaceid']."</a>
+                        </th>
+			<th scope='col'> 
 			<br/>
 			<a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?username=$username&orderBy=acctstarttime&orderType=$orderTypeNextPage\">
 			".$l['all']['StartTime']."</a>
@@ -250,18 +262,20 @@
 						<td> $row[3] </td>
 						<td> $row[4] </td>
 						<td> $row[5] </td>
-						<td> ".time2str($row[6])." </td>
-						<td> ".toxbyte($row[7])."</td>
-						<td> ".toxbyte($row[8])."</td>
-						<td> $row[9] </td>
-						<td> $row[10] </td>
+						<td> $row[6] </td>
+						<td> $row[7] </td>
+						<td> ".time2str($row[8])." </td>
+						<td> ".toxbyte($row[9])."</td>
+						<td> ".toxbyte($row[10])."</td>
+						<td> $row[11] </td>
+						<td> $row[12] </td>
 				</tr>");
 	        }
 
 		echo "
 				<tfoot>
 					<tr>
-					<th colspan='12' align='left'>
+					<th colspan='13' align='left'>
 	        ";
 			
 		setupLinks($pageNum, $maxPage, $orderBy, $orderType,"&username=$username");
diff -Naur clean/daloradius-0.9-9/lang/en.php modif/daloradius-0.9-9/lang/en.php
--- clean/daloradius-0.9-9/lang/en.php	2011-05-06 12:20:32.000000000 +0200
+++ modif/daloradius-0.9-9/lang/en.php	2016-10-08 20:00:10.048670060 +0200
@@ -141,6 +141,8 @@
 $l['all']['CheckinTime'] = "Last Checked-In";
 
 $l['all']['FramedIPAddress'] = "Framed-IP-Address";
+$l['all']['framedipv6prefix'] = "Framed-IPv6-Prefix";
+$l['all']['framedinterfaceid'] = "Framed-Interface-Id";
 $l['all']['SimultaneousUse'] = "Simultaneous-Use";
 $l['all']['HgID'] = "HG ID";
 $l['all']['Hg'] = "HG ";
diff -Naur clean/daloradius-0.9-9/menu-accounting-custom.php modif/daloradius-0.9-9/menu-accounting-custom.php
--- clean/daloradius-0.9-9/menu-accounting-custom.php	2011-05-05 22:21:53.000000000 +0200
+++ modif/daloradius-0.9-9/menu-accounting-custom.php	2016-10-08 21:21:11.796904336 +0200
@@ -89,6 +89,8 @@
 				<option value="ServiceType"> ServiceType </option>
 				<option value="FramedProtocol"> FramedProtocol </option>
 				<option value="FramedIPAddress"> FramedIPAddress </option>
+				<option value="framedipv6prefix"> FramedIPv6Prefix </option>
+				<option value="framedinterfaceid"> FramedInterfaceID </option>
 				<option value="AcctStartDelay"> AcctStartDelay </option>
 				<option value="AcctStopDelay"> AcctStopDelay </option>
 			</select>
@@ -127,6 +129,8 @@
 		<input type="checkbox" name="sqlfields[]" value="ServiceType" /> <h109> ServiceType </h109> <br/>
 		<input type="checkbox" name="sqlfields[]" value="FramedProtocol" /> <h109> FramedProtocol </h109> <br/>
 		<input type="checkbox" name="sqlfields[]" value="FramedIPAddress" checked /> <h109> FramedIPAddress </h109> <br/>
+                <input type="checkbox" name="sqlfields[]" value="framedipv6prefix" checked /> <h109> FramedIPv6Prefix </h109> <br/>
+                <input type="checkbox" name="sqlfields[]" value="framedinterfaceid" checked /> <h109> FramedInterfaceID </h109> <br/>
 		<input type="checkbox" name="sqlfields[]" value="AcctStartDelay" /> <h109> AcctStartDelay </h109> <br/>
 		<input type="checkbox" name="sqlfields[]" value="AcctStopDelay" /> <h109> AcctStopDelay </h109> <br/>
 		Select:
@@ -158,6 +162,8 @@
 				<option value="ServiceType"> ServiceType </option>
 				<option value="FramedProtocol"> FramedProtocol </option>
 				<option value="FramedIPAddress"> FramedIPAddress </option>
+                                <option value="framedipv6prefix"> FramedIPv6Prefix </option>
+                                <option value="framedinterfaceid"> FramedInterfaceID </option>
 				<option value="AcctStartDelay"> AcctStartDelay </option>
 				<option value="AcctStopDelay"> AcctStopDelay </option>
 			</select>
diff -Naur clean/daloradius-0.9-9/menu-accounting.php modif/daloradius-0.9-9/menu-accounting.php
--- clean/daloradius-0.9-9/menu-accounting.php	2011-05-05 22:21:55.000000000 +0200
+++ modif/daloradius-0.9-9/menu-accounting.php	2016-10-08 21:26:43.396920315 +0200
@@ -58,6 +58,14 @@
 				value="<?php if (isset($accounting_ipaddress)) echo $accounting_ipaddress; ?>">
 			</form></li>
 
+                <li><a href="javascript:document.acctipv6address.submit();"><b>&raquo;</b><?php echo $l['button']['IPv6Accounting'] ?></a>
+                        <form name="acctipv6address" action="acct-ipv6address.php" method="get" class="sidebar">
+                        <input name="ipv6address" type="text" 
+                                onClick='javascript:__displayTooltip();'
+                                tooltipText='<?php echo $l['Tooltip']['IPAddress']; ?>'
+                                value="<?php if (isset($accounting_ipv6address)) echo $accounting_ipv6address; ?>">
+                        </form></li>
+
 		<li><a href="javascript:document.acctnasipaddress.submit();"><b>&raquo;</b><?php echo $l['button']['NASIPAccounting'] ?></a>
 			<form name="acctnasipaddress" action="acct-nasipaddress.php" method="get" class="sidebar">
 			<input name="nasipaddress" type="text" 
diff -Naur clean/daloradius-0.9-9/rep-online.php modif/daloradius-0.9-9/rep-online.php
--- clean/daloradius-0.9-9/rep-online.php	2011-05-05 22:21:53.000000000 +0200
+++ modif/daloradius-0.9-9/rep-online.php	2016-10-08 21:00:45.288845233 +0200
@@ -111,8 +111,9 @@
 	   compatibility with version 0.7        */
 
 	   
-	$sql = "SELECT ".$configValues['CONFIG_DB_TBL_RADACCT'].".Username, ".$configValues['CONFIG_DB_TBL_RADACCT'].".FramedIPAddress,
-			".$configValues['CONFIG_DB_TBL_RADACCT'].".CallingStationId, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctStartTime,
+	$sql = "SELECT ".$configValues['CONFIG_DB_TBL_RADACCT'].".Username, ".$configValues['CONFIG_DB_TBL_RADACCT'].".FramedIPAddress, 
+			".$configValues['CONFIG_DB_TBL_RADACCT']."framedipv6prefix, ".$configValues['CONFIG_DB_TBL_RADACCT'].".framedinterfaceid, 
+			".$configValues['CONFIG_DB_TBL_RADACCT'].".CallingStationId, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctStartTime, 
 			".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctSessionTime, ".$configValues['CONFIG_DB_TBL_RADACCT'].".NASIPAddress, 
 			".$configValues['CONFIG_DB_TBL_RADACCT'].".CalledStationId, ".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctSessionId, 
 			".$configValues['CONFIG_DB_TBL_RADACCT'].".AcctInputOctets AS Upload,
@@ -145,7 +146,7 @@
 	echo "
 		<thead>
 			<tr>
-			<th colspan='10' align='left'>
+			<th colspan='11' align='left'>
 
                                 Select:
                                 <a class=\"table\" href=\"javascript:SetChecked(1,'clearSessionsUsers[]','usersonline')\">All</a>
@@ -215,6 +216,8 @@
 
 		$username = $row['Username'];
 		$ip = $row['FramedIPAddress'];
+		$ipv6prefix = $row['framedipv6prefix'];
+		$framedinterfaceid = $row['framedinterfaceid'];
 		$usermac = $row['CallingStationId'];
 		$start = $row['AcctStartTime'];
 		$nasip = $row['NASIPAddress'];
@@ -245,6 +248,8 @@
 					</td>
 				<td> $name</td>
 				<td> IP: $ip<br/>MAC: $usermac</td>
+				<td> Framed-IPv6-Prefix</td>
+				<td> Framed-Interface-Id</td>
 				<td> $start </td>
 				<td> $totalTime </td>
 				<td> $hotspot $nasshortname </td>
@@ -255,7 +260,7 @@
         echo "
                                         <tfoot>
                                                         <tr>
-                                                        <th colspan='10' align='left'>
+                                                        <th colspan='11' align='left'>
         ";
         setupLinks($pageNum, $maxPage, $orderBy, $orderType, "&usernameOnline=$usernameOnline");
         echo "
