Skip to content

Commit 0be8950

Browse files
robertfalkenbergcodebot
authored andcommitted
ngap,sctp: define NGAP port in common location
1 parent 08bf889 commit 0be8950

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

include/srsran/gateways/sctp_network_gateway.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ constexpr uint16_t E2_CP_PPID = 70; ///< E2-CP PPID assigned by IANA
2323
constexpr uint16_t E2_UP_PPID = 71; ///< E2-UP PPID assigned by IANA
2424
constexpr uint16_t E2_DU_PPID = 72; ///< E2-DU PPID assigned by IANA
2525

26+
constexpr uint16_t NGAP_PORT = 38412; ///< NGAP port, see TS 38.412, section 7.
2627
constexpr uint16_t F1AP_PORT = 38472; ///< F1AP port, see TS 38.472, section 7.
2728

2829
/// \brief Configuration for SCTP network gateway that is common to the server and client.

include/srsran/ngap/gateways/n2_connection_client_factory.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ struct n2_connection_client_config {
3232
std::string bind_address;
3333
std::string bind_interface;
3434
std::string amf_address;
35-
int amf_port = 38412;
35+
int amf_port = NGAP_PORT;
3636
std::optional<int32_t> rto_initial;
3737
std::optional<int32_t> rto_min;
3838
std::optional<int32_t> rto_max;
@@ -52,4 +52,4 @@ struct n2_connection_client_config {
5252
std::unique_ptr<n2_connection_client> create_n2_connection_client(const n2_connection_client_config& params);
5353

5454
} // namespace srs_cu_cp
55-
} // namespace srsran
55+
} // namespace srsran

0 commit comments

Comments
 (0)