GSMTAP: print 'gsmtap-local-host' if not NULL

Change-Id: If4f5a419b5af3f185219a879dcb2abb4eea45f1c
Fixes: f19f5331 "GSMTAP: allow configuring local address"
This commit is contained in:
Vadim Yanitskiy 2023-03-07 20:32:17 +07:00
parent fa109255ac
commit c48b4651a1
1 changed files with 4 additions and 0 deletions

View File

@ -440,6 +440,10 @@ static void config_write_bts_single(struct vty *vty, const struct gsm_bts *bts)
vty_out(vty, " gsmtap-remote-host %s%s",
bts->gsmtap.remote_host,
VTY_NEWLINE);
if (bts->gsmtap.local_host != NULL)
vty_out(vty, " gsmtap-local-host %s%s",
bts->gsmtap.local_host,
VTY_NEWLINE);
for (i = 0; i < sizeof(uint32_t) * 8; i++) {
if (bts->gsmtap.sapi_mask & ((uint32_t) 1 << i)) {
sapi_buf = get_value_string_or_null(gsmtap_sapi_names, i);