Commit b0322b78 authored by Stefan Spettel's avatar Stefan Spettel

fix(smf): pfcp choose id

Signed-off-by: default avatarStefan Spettel <stefan.spettel@eurecom.fr>
parent 64494629
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
#include <cstring> #include <cstring>
#include <endian.h> #include <endian.h>
#include <exception> #include <exception>
//#include <fmt/format.h> conflicts with spdlog // #include <fmt/format.h> conflicts with spdlog
#include <iostream> #include <iostream>
#include <memory> #include <memory>
#include <sstream> #include <sstream>
...@@ -751,11 +751,10 @@ class pfcp_fteid_ie : public pfcp_ie { ...@@ -751,11 +751,10 @@ class pfcp_fteid_ie : public pfcp_ie {
tlv.add_length(16); tlv.add_length(16);
ipv6_address = b.ipv6_address; ipv6_address = b.ipv6_address;
} }
}
if (u1.bf.ch & b.v4) {
u1.bf.v4 = b.v4;
} else { } else {
// else should clear v4 v6 bits if (u1.bf.ch & b.v4) {
u1.bf.v4 = b.v4;
}
if (u1.bf.chid) { if (u1.bf.chid) {
choose_id = b.choose_id; choose_id = b.choose_id;
tlv.add_length(1); tlv.add_length(1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment