zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.52k stars 6.45k forks source link

多网卡下,L4事件无法正常触发 #78790

Open hjn0618 opened 2 hours ago

hjn0618 commented 2 hours ago

文件目录 subsys\net\conn_mgr\conn_mgr_monitor.c

    /* If the total number of ready ifaces changed, possibly send an event */
    if (ready_count != original_ready_count) {
        if (ready_count == 0) {
            /* We just lost connectivity */
            net_mgmt_event_notify(NET_EVENT_L4_DISCONNECTED, last_iface_down);
        } else if (original_ready_count == 0) {
            /* We just gained connectivity */
            net_mgmt_event_notify(NET_EVENT_L4_CONNECTED, last_iface_up);
        }
    }

目前只能支持1个NET_EVENT_L4事件,多网卡的情况下,无法正常触发该事件 https://github.com/zephyrproject-rtos/zephyr/blob/v3.6-branch/subsys/net/conn_mgr/conn_mgr_monitor.c

github-actions[bot] commented 2 hours ago

Hi @hjn0618! We appreciate you submitting your first issue for our open-source project. 🌟

Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙