On 26/08/2026 19:36, James Hilliard wrote: > LOG_SYSLOG depends on NET, but the raw Ethernet and UDP header > builders it uses are only available with the legacy network stack. This > makes LOG_SYSLOG fail to build with NET_LWIP. > > Provide lwIP implementations using the selected Ethernet device and its > indexed IP address from the environment. Move the shared declarations to > net-common.h and extend the syslog test to check the source MAC address > and IPv4 header checksum. > > Signed-off-by: James Hilliard <[email protected]> > --- > Changes v1 -> v2: > - Guard the lwIP raw-header helpers with LOG_SYSLOG (suggested by Peter > Robinson) > - Link to v1: > https://patch.msgid.link/[email protected] > --- > include/net-common.h | 7 ++++++ > include/net-legacy.h | 4 ---- > net/lwip/net-lwip.c | 60 > ++++++++++++++++++++++++++++++++++++++++++++++++++ > test/log/syslog_test.c | 2 ++ > test/log/syslog_test.h | 4 ++-- > 5 files changed, 71 insertions(+), 6 deletions(-) Acked-by: Jerome Forissier <[email protected]>
Thanks, -- Jerome
