Message ID | 1444947239-17582-6-git-send-email-nhofmeyr@sysmocom.de |
---|---|
State | Superseded |
Headers | show |
diff --git a/openbsc/src/gprs/gtphub.c b/openbsc/src/gprs/gtphub.c index 97e52a6..577a2d0 100644 --- a/openbsc/src/gprs/gtphub.c +++ b/openbsc/src/gprs/gtphub.c @@ -119,6 +119,8 @@ static int gtp_relay(struct osmo_fd *from, errno = 0; ssize_t received = recvfrom(from->fd, buf, sizeof(buf), 0, (struct sockaddr*)from_addr, from_addr_len); + /* TODO use recvmsg and get a MSG_TRUNC flag to make sure the message + * is not truncated. Then maybe reduce buf's size. */ if (received <= 0) { if (errno != EAGAIN)