Re: [PATCH 1/3] net: extract function net_sntp_set_rtc() from sntp_handler()

2025-06-02 Thread Heinrich Schuchardt
Am 21. Mai 2025 17:14:41 MESZ schrieb Jerome Forissier : >Extract the code that sets the RTC clock from sntp_handler() in >net/sntp.c and make it a new function net_sntp_set_rtc() in >net/net-common.c. This will allow re-use with NET_LWIP. > >Signed-off-by: Jerome Forissier >--- > > include/net-c

[PATCH 1/3] net: extract function net_sntp_set_rtc() from sntp_handler()

2025-05-21 Thread Jerome Forissier
Extract the code that sets the RTC clock from sntp_handler() in net/sntp.c and make it a new function net_sntp_set_rtc() in net/net-common.c. This will allow re-use with NET_LWIP. Signed-off-by: Jerome Forissier --- include/net-common.h | 2 ++ net/net-common.c | 28 +++