[GPRS] Make SGSN more verbose when startup fails
This commit is contained in:
parent
e4860d7c48
commit
6efc176722
|
@ -172,12 +172,23 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = sgsn_gtp_init(&sgsn_inst);
|
rc = sgsn_gtp_init(&sgsn_inst);
|
||||||
if (rc)
|
if (rc) {
|
||||||
|
LOGP(DGPRS, LOGL_FATAL, "Cannot bind/listen on GTP socket\n");
|
||||||
exit(2);
|
exit(2);
|
||||||
|
}
|
||||||
|
|
||||||
rc = gprs_ns_nsip_listen(sgsn_nsi);
|
rc = gprs_ns_nsip_listen(sgsn_nsi);
|
||||||
if (rc)
|
if (rc < 0) {
|
||||||
|
LOGP(DGPRS, LOGL_FATAL, "Cannot bind/listen on NSIP socket\n");
|
||||||
exit(2);
|
exit(2);
|
||||||
|
}
|
||||||
|
|
||||||
|
rc = gprs_ns_frgre_listen(sgsn_nsi);
|
||||||
|
if (rc < 0) {
|
||||||
|
LOGP(DGPRS, LOGL_FATAL, "Cannot bind/listen GRE "
|
||||||
|
"socket. Do you have CAP_NET_RAW?\n");
|
||||||
|
exit(2);
|
||||||
|
}
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
rc = bsc_select_main(0);
|
rc = bsc_select_main(0);
|
||||||
|
|
Loading…
Reference in New Issue