Skip to content

Commit

Permalink
https://telecominfraproject.atlassian.net/browse/WIFI-7831
Browse files Browse the repository at this point in the history
Signed-off-by: stephb9959 <[email protected]>
  • Loading branch information
stephb9959 committed Oct 16, 2023
1 parent a0d4606 commit 138b236
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/RADIUS_proxy_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,15 @@ namespace OpenWifi {
ofs.close();
}

void RADIUS_proxy_server::SendAccountingData(const std::string &Destination, const std::string &serialNumber,
void RADIUS_proxy_server::SendAccountingData( const std::string &serialNumber,
const char *buffer, std::size_t size, std::string & secret) {

if (!Continue())
return;

try {
RADIUS::RadiusPacket P((unsigned char *)buffer, size);
auto Destination = P.ExtractProxyStateDestination();
RouteAndSendAccountingPacket(Destination, serialNumber, P, false, secret);
RADIUSSessionTracker()->AddAccountingSession(Destination, serialNumber, P, secret);

Expand Down
2 changes: 1 addition & 1 deletion src/RADIUS_proxy_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace OpenWifi {
void Stop() final;
inline bool Enabled() const { return Enabled_; }

void SendAccountingData(const std::string &Destination,const std::string &serialNumber, const char *buffer,
void SendAccountingData(const std::string &serialNumber, const char *buffer,
std::size_t size, std::string & secret);
void SendAuthenticationData(const std::string &serialNumber, const char *buffer,
std::size_t size, std::string & secret);
Expand Down

0 comments on commit 138b236

Please sign in to comment.