mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-26 23:59:41 +08:00
Minor logging improvement / code cleanup
C/C++ CI Linux / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Has been cancelled
C/C++ CI Linux / ${{ matrix.target }} (ubuntu-latest) (push) Has been cancelled
C/C++ CI MacOS / ${{ matrix.target }} (macos-15) (push) Has been cancelled
C/C++ CI Windows / ${{ matrix.target }} (windows-2022) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (macos-15) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (ubuntu-latest) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (windows-2022) (push) Has been cancelled
C/C++ CI Linux / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Has been cancelled
C/C++ CI Linux / ${{ matrix.target }} (ubuntu-latest) (push) Has been cancelled
C/C++ CI MacOS / ${{ matrix.target }} (macos-15) (push) Has been cancelled
C/C++ CI Windows / ${{ matrix.target }} (windows-2022) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (macos-15) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (ubuntu-latest) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (windows-2022) (push) Has been cancelled
This commit is contained in:
1 parent
1de06c5059
commit
381ef993a7
4 files changed
+51
-24
No files matched your search
+19
-1
@@ -72,6 +72,8 @@
|
||||
#define PW_ACCT_INPUT_PACKETS 47
|
||||
#define PW_ACCT_OUTPUT_PACKETS 48
|
||||
#define PW_ACCT_TERMINATE_CAUSE 49
|
||||
#define PW_ACCT_INPUT_GIGAWORDS 52
|
||||
#define PW_ACCT_OUTPUT_GIGAWORDS 53
|
||||
|
||||
#define PW_EVENT_TIMESTAMP 55
|
||||
|
||||
@@ -375,7 +377,7 @@ int radsend(struct clientparam * param, int auth, int stop){
|
||||
/* NAS-Port */
|
||||
*ptr++ = PW_NAS_PORT_ID;
|
||||
*ptr++ = 6;
|
||||
(*(uint32_t *)ptr)=htonl((uint32_t)ntohs((*SAPORT(¶m->srv->intsa))));
|
||||
(*(uint32_t *)ptr)=htonl(param->srv?(uint32_t)ntohs((*SAPORT(¶m->srv->intsa))):0);
|
||||
ptr+=4;
|
||||
total_length+=6;
|
||||
|
||||
@@ -479,12 +481,28 @@ int radsend(struct clientparam * param, int auth, int stop){
|
||||
(*(uint32_t *)ptr)=htonl((uint32_t)param->statssrv64);
|
||||
ptr+=4;
|
||||
total_length+=6;
|
||||
/* Acct-Input-Gigawords */
|
||||
if(param->statssrv64 > 0xFFFFFFFFULL){
|
||||
*ptr++ = PW_ACCT_INPUT_GIGAWORDS;
|
||||
*ptr++ = 6;
|
||||
(*(uint32_t *)ptr)=htonl((uint32_t)(param->statssrv64 >> 32));
|
||||
ptr+=4;
|
||||
total_length+=6;
|
||||
}
|
||||
/* Acct-Output-Octets */
|
||||
*ptr++ = PW_ACCT_OUTPUT_OCTETS;
|
||||
*ptr++ = 6;
|
||||
(*(uint32_t *)ptr)=htonl((uint32_t)param->statscli64);
|
||||
ptr+=4;
|
||||
total_length+=6;
|
||||
/* Acct-Output-Gigawords */
|
||||
if(param->statscli64 > 0xFFFFFFFFULL){
|
||||
*ptr++ = PW_ACCT_OUTPUT_GIGAWORDS;
|
||||
*ptr++ = 6;
|
||||
(*(uint32_t *)ptr)=htonl((uint32_t)(param->statscli64 >> 32));
|
||||
ptr+=4;
|
||||
total_length+=6;
|
||||
}
|
||||
/* Acct-Input-Packets */
|
||||
*ptr++ = PW_ACCT_INPUT_PACKETS;
|
||||
*ptr++ = 6;
|
||||
|
||||
Reference in new issue
Block a user