rebase First try to make use of uIP for sending syslog

This commit is contained in:
feelfree69
2026-04-12 13:02:37 +02:00
parent 193eacf51b
commit eaa21d5975
11 changed files with 106 additions and 69 deletions
+17
View File
@@ -0,0 +1,17 @@
#include "stdint.h"
#include "udp_apps.h"
static uint8_t callbacknr;
void udp_callbacks(void)
{
// Calling more than one callback from the same UIP_UDP_APPCALL does not work; we use a simple dispatcher
if (callbacknr == 0) {
dhcp_callback();
callbacknr = 1;
} else {
syslog_callback();
callbacknr = 0;
}
}