Home
last modified time | relevance | path

Searched full:promiscuous (Results 1 – 25 of 60) sorted by relevance

123

/Zephyr-latest/doc/connectivity/networking/api/
Dpromiscuous.rst3 Promiscuous Mode
13 Promiscuous mode is a mode for a network interface controller that
19 `Wikipedia article on promiscuous mode
22 The network promiscuous APIs are used to enable and disable this mode,
24 technologies or network device drivers support promiscuous mode.
29 First the promiscuous mode needs to be turned ON by the application like this:
36 printf("Promiscuous mode already enabled\n");
38 printf("Cannot enable promiscuous mode for "
58 Finally the promiscuous mode can be turned OFF by the application like this:
65 printf("Promiscuous mode already disabled\n");
[all …]
Dapis.rst16 promiscuous.rst
Dethernet.rst29 * Promiscuous mode
/Zephyr-latest/samples/net/promiscuous_mode/
DREADME.rst1 .. zephyr:code-sample:: net-promiscuous-mode
2 :name: Promiscuous mode
3 :relevant-api: promiscuous
5 Enable promiscuous mode on all interfaces and print information about incoming packets.
10 This application will enable promiscuous mode for every network
15 or disable promiscuous mode at runtime. The commands are called
Dsample.yaml2 name: Promiscuous mode sample application
Dprj.conf9 # Enable promiscuous mode support
/Zephyr-latest/include/zephyr/net/
Dpromiscuous.h2 * @brief Network interface promiscuous mode support
18 * @brief Promiscuous mode support.
19 * @defgroup promiscuous Promiscuous mode
52 * @brief Enable promiscuous mode for a given network interface.
70 * @brief Disable promiscuous mode for a given network interface.
Dethernet_bridge.h75 * into promiscuous mode. After more than one Ethernet interfaces are
Dnet_l2.h44 /** Is promiscuous mode supported */
/Zephyr-latest/samples/net/promiscuous_mode/src/
Dmain.c16 #include <zephyr/net/promiscuous.h>
35 LOG_INF("Cannot set promiscuous mode for interface %p (%d)", in iface_cb()
40 LOG_INF("Promiscuous mode enabled for interface %p", iface); in iface_cb()
177 shell_fprintf(sh, SHELL_INFO, "Promiscuous mode %s...\n", in set_promisc_mode()
189 "Promiscuous mode already %s\n", in set_promisc_mode()
193 "Cannot %s promiscuous mode for " in set_promisc_mode()
218 "Turn promiscuous mode on\n"
220 "Turn on promiscuous mode for the interface\n",
222 SHELL_CMD(off, NULL, "Turn promiscuous mode off\n"
224 "Turn off promiscuous mode for the interface\n",
[all …]
/Zephyr-latest/tests/net/promiscuous/src/
Dmain.c26 #include <zephyr/net/promiscuous.h>
281 DBG("Make sure promiscuous mode is ON (%p)\n", iface); in _set_promisc_mode_on_again()
285 zassert_equal(ret, -EALREADY, "iface %p promiscuous mode ON", iface); in _set_promisc_mode_on_again()
292 DBG("Setting promiscuous mode ON (%p)\n", iface); in _set_promisc_mode_on()
296 zassert_equal(ret, 0, "iface %p promiscuous mode set ON failed", in _set_promisc_mode_on()
304 DBG("Make sure promiscuous mode is OFF (%p)\n", iface); in _set_promisc_mode_off_again()
308 zassert_equal(ret, -EALREADY, "iface %p promiscuous mode OFF", iface); in _set_promisc_mode_off_again()
315 DBG("Setting promiscuous mode OFF (%p)\n", iface); in _set_promisc_mode_off()
319 zassert_equal(ret, 0, "iface %p promiscuous mode set OFF failed", in _set_promisc_mode_off()
/Zephyr-latest/drivers/ethernet/dwc_xgmac/
DKconfig65 bool "Promiscuous mode"
68 Disables the promiscuous mode support in XGMAC device.
/Zephyr-latest/subsys/net/ip/
Dpromiscuous.c2 * @brief Promiscuous mode support
6 * supports promiscuous mode.
DCMakeLists.txt51 zephyr_library_sources_ifdef(CONFIG_NET_PROMISCUOUS_MODE promiscuous.c)
DKconfig1047 bool "Promiscuous mode support"
1052 Enable promiscuous mode support. This only works if the network
1053 device driver supports promiscuous mode. The user application
1054 also needs to read the promiscuous mode data.
1059 module-str = Log level for promiscuous mode
1060 module-help = Enables promiscuous mode to output debug messages.
/Zephyr-latest/doc/connectivity/networking/
Deth_bridge_native_sim_setup.rst97 Promiscuous mode : disabled
107 Promiscuous mode : disabled
110 Promiscuous mode
137 Promiscuous mode : disabled
140 Promiscuous mode
/Zephyr-latest/tests/net/promiscuous/
DCMakeLists.txt5 project(promiscuous) project
/Zephyr-latest/tests/drivers/wifi/nrf_wifi/
Dtestcase.yaml38 nrf70.build.promiscuous:
/Zephyr-latest/drivers/ethernet/nxp_enet/
DKconfig96 bool "Promiscuous mode"
98 Place the Ethernet receiver in promiscuous mode. This may be useful
/Zephyr-latest/drivers/ieee802154/
Dieee802154_rf2xx.c182 if (!ctx->promiscuous && pkt_len < RX2XX_FRAME_MIN_PHR_SIZE) { in rf2xx_trx_rx()
206 if (!ctx->promiscuous && trac == RF2XX_TRX_PHY_STATE_TRAC_INVALID) { in rf2xx_trx_rx()
249 * NOTE: In promiscuous mode invalid frames will be processed. in rf2xx_process_rx_frame()
774 static int rf2xx_promiscuous_set(const struct device *dev, bool promiscuous) in rf2xx_promiscuous_set() argument
779 ctx->promiscuous = promiscuous; in rf2xx_promiscuous_set()
781 if (promiscuous) { in rf2xx_promiscuous_set()
820 ret = rf2xx_promiscuous_set(dev, config->promiscuous); in rf2xx_configure()
919 ctx->promiscuous = false; in power_on_and_setup()
Dieee802154_rf2xx.h124 bool promiscuous; member
/Zephyr-latest/tests/net/iface/src/
Dmain.c739 DBG("Make sure promiscuous mode is OFF (%p)\n", iface4); in check_promisc_mode_off()
743 zassert_false(ret, "iface 1 promiscuous mode ON"); in check_promisc_mode_off()
750 DBG("Make sure promiscuous mode is ON (%p)\n", iface4); in check_promisc_mode_on()
754 zassert_true(ret, "iface 1 promiscuous mode OFF"); in check_promisc_mode_on()
761 DBG("Make sure promiscuous mode is ON (%p)\n", iface4); in set_promisc_mode_on_again()
765 zassert_equal(ret, -EALREADY, "iface 1 promiscuous mode OFF"); in set_promisc_mode_on_again()
772 DBG("Setting promiscuous mode ON (%p)\n", iface4); in set_promisc_mode_on()
776 zassert_equal(ret, 0, "iface 1 promiscuous mode set failed"); in set_promisc_mode_on()
781 DBG("Setting promiscuous mode OFF (%p)\n", iface4); in set_promisc_mode_off()
/Zephyr-latest/drivers/ethernet/
Deth_e1000_priv.h25 #define RCTL_MPE (1 << 4) /* Multicast Promiscuous Enabled */
/Zephyr-latest/dts/bindings/ethernet/
Dxlnx,gem.yaml316 promiscuous-mode:
319 Optional feature flag - Enable promiscuous mode. When set, all valid
/Zephyr-latest/subsys/net/l2/ethernet/
Dbridge.c140 * we do not need host promiscuous working when testing in eth_bridge_iface_add()
144 NET_DBG("iface %d promiscuous mode failed: %d", in eth_bridge_iface_add()

123