rename ifp state change event

This commit is contained in:
Sergio R. Caprile committed 2026-05-29 10:45:41 -03:00
1 parent 0ecbb62630
commit c62f8b4e93
17 files changed
+73 -75

No files matched your search

+2 -2
View File
@@ -61,7 +61,7 @@ static void test_csum(void) {
static bool executed = false;
static void mif_fn(struct mg_tcpip_if *ifp, int ev, void *ev_data) {
if (ev == MG_TCPIP_EV_ST_CHG) {
if (ev == MG_TCPIP_EV_STATE_CHANGE) {
ASSERT(*(uint8_t *) ev_data == MG_TCPIP_STATE_UP);
executed = true;
}
@@ -81,7 +81,7 @@ static void test_statechange(void) {
}
#if MG_ENABLE_IPV6
static void mif6_fn(struct mg_tcpip_if *ifp, int ev, void *ev_data) {
if (ev == MG_TCPIP_EV_ST6_CHG) {
if (ev == MG_TCPIP_EV_STATE_CHANGE) {
ASSERT(*(uint8_t *) ev_data == MG_TCPIP_STATE_REQ);
executed = true;
}