Module: kamailio
Branch: master
Commit: a5d92da6370f6db15c1ccb69a0ad7b914163c1db
URL:
https://github.com/kamailio/kamailio/commit/a5d92da6370f6db15c1ccb69a0ad7b9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-09-16T16:45:21+02:00
core: print address family for rpc core.sockets_list
---
Modified: src/core/core_cmd.c
---
Diff:
https://github.com/kamailio/kamailio/commit/a5d92da6370f6db15c1ccb69a0ad7b9…
Patch:
https://github.com/kamailio/kamailio/commit/a5d92da6370f6db15c1ccb69a0ad7b9…
---
diff --git a/src/core/core_cmd.c b/src/core/core_cmd.c
index c464d3686e..3c9f08e332 100644
--- a/src/core/core_cmd.c
+++ b/src/core/core_cmd.c
@@ -988,7 +988,8 @@ static void core_sockets_list(rpc_t* rpc, void* c)
for(si=list?*list:0; si; si=si->next){
rpc->struct_add(hr, "{", "socket", &ha);
if (si->addr_info_lst){
- rpc->struct_add(ha, "ss",
+ rpc->struct_add(ha, "sss",
+ "af", get_af_name(si->address.af),
"proto", get_proto_name(proto),
"address", si->address_str.s);
for (ai=si->addr_info_lst; ai; ai=ai->next)
@@ -1003,7 +1004,8 @@ static void core_sockets_list(rpc_t* rpc, void* c)
printf(" %s: %s",
get_proto_name(proto),
si->name.s);
- rpc->struct_add(ha, "ss",
+ rpc->struct_add(ha, "sss",
+ "af", get_af_name(si->address.af),
"proto", get_proto_name(proto),
"address", si->name.s);
if (!(si->flags & SI_IS_IP))