FS-9594: Has been adjusted string vars size to fit IPv6 address
This commit is contained in:
parent
241bbd1529
commit
808978ec76
|
@ -154,7 +154,7 @@ static void *SWITCH_THREAD_FUNC event_stream_loop(switch_thread_t *thread, void
|
||||||
ei_event_binding_t *event_binding;
|
ei_event_binding_t *event_binding;
|
||||||
switch_sockaddr_t *sa;
|
switch_sockaddr_t *sa;
|
||||||
uint16_t port;
|
uint16_t port;
|
||||||
char ipbuf[25];
|
char ipbuf[48];
|
||||||
const char *ip_addr;
|
const char *ip_addr;
|
||||||
void *pop;
|
void *pop;
|
||||||
short event_stream_framing = globals.event_stream_framing;
|
short event_stream_framing = globals.event_stream_framing;
|
||||||
|
|
|
@ -50,7 +50,7 @@ SWITCH_DECLARE_GLOBAL_STRING_FUNC(set_pref_kazoo_var_prefix, globals.kazoo_var_p
|
||||||
static switch_status_t api_erlang_status(switch_stream_handle_t *stream) {
|
static switch_status_t api_erlang_status(switch_stream_handle_t *stream) {
|
||||||
switch_sockaddr_t *sa;
|
switch_sockaddr_t *sa;
|
||||||
uint16_t port;
|
uint16_t port;
|
||||||
char ipbuf[25];
|
char ipbuf[48];
|
||||||
const char *ip_addr;
|
const char *ip_addr;
|
||||||
ei_node_t *ei_node;
|
ei_node_t *ei_node;
|
||||||
|
|
||||||
|
@ -177,7 +177,7 @@ static switch_status_t handle_node_api_event_stream(ei_event_stream_t *event_str
|
||||||
if (event_stream->connected == SWITCH_FALSE) {
|
if (event_stream->connected == SWITCH_FALSE) {
|
||||||
switch_sockaddr_t *sa;
|
switch_sockaddr_t *sa;
|
||||||
uint16_t port;
|
uint16_t port;
|
||||||
char ipbuf[25] = {0};
|
char ipbuf[48] = {0};
|
||||||
const char *ip_addr;
|
const char *ip_addr;
|
||||||
|
|
||||||
switch_socket_addr_get(&sa, SWITCH_TRUE, event_stream->acceptor);
|
switch_socket_addr_get(&sa, SWITCH_TRUE, event_stream->acceptor);
|
||||||
|
@ -511,7 +511,7 @@ static switch_status_t config(void) {
|
||||||
static switch_status_t create_acceptor() {
|
static switch_status_t create_acceptor() {
|
||||||
switch_sockaddr_t *sa;
|
switch_sockaddr_t *sa;
|
||||||
uint16_t port;
|
uint16_t port;
|
||||||
char ipbuf[25];
|
char ipbuf[48];
|
||||||
const char *ip_addr;
|
const char *ip_addr;
|
||||||
|
|
||||||
/* if the config has specified an erlang release compatibility then pass that along to the erlang interface */
|
/* if the config has specified an erlang release compatibility then pass that along to the erlang interface */
|
||||||
|
|
|
@ -75,9 +75,9 @@ struct ei_node_s {
|
||||||
char *peer_nodename;
|
char *peer_nodename;
|
||||||
switch_time_t created_time;
|
switch_time_t created_time;
|
||||||
switch_socket_t *socket;
|
switch_socket_t *socket;
|
||||||
char remote_ip[25];
|
char remote_ip[48];
|
||||||
uint16_t remote_port;
|
uint16_t remote_port;
|
||||||
char local_ip[25];
|
char local_ip[48];
|
||||||
uint16_t local_port;
|
uint16_t local_port;
|
||||||
uint32_t flags;
|
uint32_t flags;
|
||||||
struct ei_node_s *next;
|
struct ei_node_s *next;
|
||||||
|
|
Loading…
Reference in New Issue