Skip to content

Commit

Permalink
Adding 'TP IPFIX Policy'
Browse files Browse the repository at this point in the history
  • Loading branch information
fpesti committed Apr 5, 2022
1 parent 752d369 commit 49dd0a0
Show file tree
Hide file tree
Showing 4 changed files with 263 additions and 228 deletions.
4 changes: 4 additions & 0 deletions include/pfcp_packet.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -1488,3 +1488,7 @@
-record(tp_created_nat_binding, {
group
}).

-record(tp_ipfix_policy, {
policy = <<>>
}).
16 changes: 12 additions & 4 deletions priv/ie_gen_v1.erl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

-mode(compile).

%% Please check 8.1.1 chapter in "3GPP TS 29.244 rel 16"
raw_ies() ->
[
{1, "Create PDR",
Expand Down Expand Up @@ -1045,9 +1046,15 @@ raw_ies() ->
[{"Line", 32, integer},
{'_', 0}]},
{{18681, 10}, "TP Created NAT Binding",
[{"Group", 0, {type, v1_grouped}}]}
[{"Group", 0, {type, v1_grouped}}]},
{{18681, 11}, "TP IPFIX Policy",
[{"Policy", 0, binary}]}
].


%% Please check 7.3, 7.4, 7.5 chapters in "3GPP TS 29.244 rel 16"
%% In the following list the tuple positions correspond to the Sxa, Sxb, Sxc and N4 ref points

msgs() ->
[{1, "Heartbeat Request", {'X', 'X', 'X', 'X'},
[{"Recovery Time Stamp", 'M', {'X', 'X', 'X', 'X'}},
Expand Down Expand Up @@ -1339,7 +1346,8 @@ msgs() ->
{"BAR ID", 'O', {'X', '-', '-', 'X'}},
{"Redundant Transmission Parameters", 'C', {'-', '-', '-', 'X'},
[{"F-TEID", 'M', {'-', '-', '-', 'X'}},
{"Network Instance", 'C', {'-', '-', '-', 'X'}}]}]},
{"Network Instance", 'C', {'-', '-', '-', 'X'}}]},
{"TP IPFIX Policy", 'O', {'X', 'X', 'X', 'X'}}]},
{"Create URR", 'C', {'X', 'X', 'X', 'X'},
[{"URR ID", 'M', {'X', 'X', 'X', 'X'}},
{"Measurement Method", 'M', {'X', 'X', 'X', 'X'}},
Expand Down Expand Up @@ -1718,7 +1726,8 @@ msgs() ->
{"Redundant Transmission Parameters", 'C', {'-', '-', '-', 'X'},
[{"F-TEID", 'M', {'-', '-', '-', 'X'}},
{"Network Instance", 'O', {'-', '-', '-', 'X'}}]},
{"BAR ID", 'C', {'X', '-', '-', 'X'}}]},
{"BAR ID", 'C', {'X', '-', '-', 'X'}},
{"TP IPFIX Policy", 'O', {'X', 'X', 'X', 'X'}}]},
{"Update URR", 'C', {'X', 'X', 'X', 'X'},
[{"URR ID", 'M', {'X', 'X', 'X', 'X'}},
{"Measurement Method", 'C', {'X', 'X', 'X', 'X'}},
Expand Down Expand Up @@ -2141,7 +2150,6 @@ gen_record_def(#field{name = Name, type = array}) ->
gen_record_def(#field{name = Name}) ->
[to_string(Name)].


gen_decoder_header_match(#field{type = '_', len = 0}) ->
["_/binary"];
gen_decoder_header_match(#field{type = '_', len = Size}) ->
Expand Down
Loading

0 comments on commit 49dd0a0

Please sign in to comment.