mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-21 11:30:01 +00:00
rename ifp state change event
This commit is contained in:
1 parent
0ecbb62630
commit
c62f8b4e93
17 files changed
+73
-75
No files matched your search
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
@@ -4294,7 +4294,7 @@ static void onstatechange(struct mg_tcpip_if *ifp) {
|
||||
} else if (ifp->state == MG_TCPIP_STATE_DOWN) {
|
||||
MG_ERROR(("Link down"));
|
||||
}
|
||||
mg_tcpip_call(ifp, MG_TCPIP_EV_ST_CHG, &ifp->state);
|
||||
mg_tcpip_call(ifp, MG_TCPIP_EV_STATE_CHANGE, &ifp->state);
|
||||
}
|
||||
|
||||
static struct ip *tx_ip(struct mg_tcpip_if *ifp, uint8_t *mac_dst,
|
||||
|
||||
Reference in new issue
Block a user