Skip to content

Commit

Permalink
Avoid taking InOctets and OutOctets into TDV
Browse files Browse the repository at this point in the history
Existing InOctets and OutOctets session keys should not
be used to build the Traffic-Data-Volumes item in Rf.
In some corner cases involving combined RADIUS and Rf
traffic it may cause a crash in the AAA session.
  • Loading branch information
Javier M. Torres committed Jan 16, 2024
1 parent f185ae8 commit fdc71a9
Show file tree
Hide file tree
Showing 4 changed files with 421 additions and 129 deletions.
8 changes: 4 additions & 4 deletions src/ergw_aaa_rf.erl
Original file line number Diff line number Diff line change
Expand Up @@ -406,11 +406,11 @@ dynamic_address_flag(_Session, Avps) ->
Avps.

%% 'InOctets'
accounting(Base, 'InOctets', Value, Avps) ->
optional(Base ++ ['Accounting-Input-Octets'], Value, Avps);
%% accounting(Base, 'InOctets', Value, Avps) ->
%% optional(Base ++ ['Accounting-Input-Octets'], Value, Avps);
%% 'OutOctets'
accounting(Base, 'OutOctets', Value, Avps) ->
optional(Base ++ ['Accounting-Output-Octets'], Value, Avps).
%% accounting(Base, 'OutOctets', Value, Avps) ->
%% optional(Base ++ ['Accounting-Output-Octets'], Value, Avps).

%% Service-Data-Container

Expand Down
Loading

0 comments on commit fdc71a9

Please sign in to comment.