|
|
@ -100,7 +100,7 @@ bool mme_gtpc::init_s11()
|
|
|
|
// Set MME Address
|
|
|
|
// Set MME Address
|
|
|
|
memset(&m_mme_addr, 0, sizeof(struct sockaddr_un));
|
|
|
|
memset(&m_mme_addr, 0, sizeof(struct sockaddr_un));
|
|
|
|
m_mme_addr.sun_family = AF_UNIX;
|
|
|
|
m_mme_addr.sun_family = AF_UNIX;
|
|
|
|
strncpy(m_mme_addr.sun_path, mme_addr_name, strlen(mme_addr_name));
|
|
|
|
snprintf(m_mme_addr.sun_path, sizeof(m_mme_addr.sun_path), "%s", mme_addr_name);
|
|
|
|
m_mme_addr.sun_path[0] = '\0';
|
|
|
|
m_mme_addr.sun_path[0] = '\0';
|
|
|
|
|
|
|
|
|
|
|
|
// Bind socket to address
|
|
|
|
// Bind socket to address
|
|
|
@ -112,7 +112,7 @@ bool mme_gtpc::init_s11()
|
|
|
|
// Set SPGW Address for later use
|
|
|
|
// Set SPGW Address for later use
|
|
|
|
memset(&m_spgw_addr, 0, sizeof(struct sockaddr_un));
|
|
|
|
memset(&m_spgw_addr, 0, sizeof(struct sockaddr_un));
|
|
|
|
m_spgw_addr.sun_family = AF_UNIX;
|
|
|
|
m_spgw_addr.sun_family = AF_UNIX;
|
|
|
|
strncpy(m_spgw_addr.sun_path, spgw_addr_name, strlen(spgw_addr_name));
|
|
|
|
snprintf(m_spgw_addr.sun_path, sizeof(m_spgw_addr.sun_path), "%s", spgw_addr_name);
|
|
|
|
m_spgw_addr.sun_path[0] = '\0';
|
|
|
|
m_spgw_addr.sun_path[0] = '\0';
|
|
|
|
|
|
|
|
|
|
|
|
m_mme_gtpc_log->info("MME S11 Initialized\n");
|
|
|
|
m_mme_gtpc_log->info("MME S11 Initialized\n");
|
|
|
|