From: Alan T. DeKok Date: Tue, 22 Jul 2025 11:45:51 +0000 (+0200) Subject: special error for EMSGSIZ X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7f7309b0af1aaccc207d56e8787d6e5814e8ff8;p=thirdparty%2Ffreeradius-server.git special error for EMSGSIZ Azure and other things cause issues, so we make the error message clearer. Not use "too long", but "UDP fragmentation is broken" --- diff --git a/src/lib/radius.c b/src/lib/radius.c index c381b72e94..959815cf1a 100644 --- a/src/lib/radius.c +++ b/src/lib/radius.c @@ -325,7 +325,11 @@ static int rad_sendto(int sockfd, void *data, size_t data_len, int flags, done: #endif if (rcode < 0) { - fr_strerror_printf("sendto failed: %s", fr_syserror(errno)); + if (errno == EMSGSIZ) { + fr_strerror_printf("sendto failed - destination does not support UDP fragmentation: %s", fr_syserror(errno)); + } else { + fr_strerror_printf("sendto failed: %s", fr_syserror(errno)); + } } return rcode;