fix bug gtp-u len and robustify the gtp-u receiver

This commit is contained in:
Laurent Thomas
2022-09-05 14:10:04 +02:00
committed by Robert Schmidt
parent 474cde3b41
commit 1ef62f5842
2 changed files with 130 additions and 96 deletions
@@ -171,6 +171,8 @@ extern "C" {
AssertFatal(epoll_ctl(t->epoll_fd, EPOLL_CTL_ADD, fd, &event) == 0,
"epoll_ctl (EPOLL_CTL_ADD) failed for task %s, fd %d: %s!\n",
itti_get_task_name(task_id), fd, strerror(errno));
eventfd_t sem_counter = 1;
AssertFatal ( sizeof(sem_counter) == write(t->sem_fd, &sem_counter, sizeof(sem_counter)), "");
}
void itti_unsubscribe_event_fd(task_id_t task_id, int fd) {