Home
last modified time | relevance | path

Searched +full:promiscuous +full:- +full:mode (Results 1 – 25 of 51) 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
16 to receive. This mode is normally used for packet sniffing as used
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:
31 .. code-block:: c
35 if (ret == -EALREADY) {
36 printf("Promiscuous mode already enabled\n");
[all …]
Dethernet.rst29 * Promiscuous mode
33 * :ref:`Priority queues <traffic-class-support>`
39 see what is supported by ``net iface`` net-shell command. It will print
Dnet_if.rst56 network technology supports promiscuous mode, then it is possible to receive
92 a Wi-Fi driver successfully connecting to an access point. In this scenario,
94 detects that it connected to a Wi-Fi network, the dormant state should be set
/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
21 - :ref:`networking_with_host`
29 .. zephyr-app-commands::
30 :zephyr-app: samples/net/promiscuous_mode
Dsample.yaml2 name: Promiscuous mode sample application
8 - net
9 - promisc
/Zephyr-latest/include/zephyr/net/
Dpromiscuous.h2 * @brief Network interface promiscuous mode support
11 * SPDX-License-Identifier: Apache-2.0
18 * @brief Promiscuous mode support.
19 * @defgroup promiscuous Promiscuous mode
52 * @brief Enable promiscuous mode for a given network interface.
65 return -ENOTSUP; in net_promisc_mode_on()
70 * @brief Disable promiscuous mode for a given network interface.
83 return -ENOTSUP; in net_promisc_mode_off()
Dethernet_bridge.h13 * SPDX-License-Identifier: Apache-2.0
75 * into promiscuous mode. After more than one Ethernet interfaces are
132 * net-shell to print data about currently active bridges.
Dnet_l2.h4 * SPDX-License-Identifier: Apache-2.0
44 /** Is promiscuous mode supported */
47 /** Is this L2 point-to-point with tunneling so no need to have
Dwifi.h5 * SPDX-License-Identifier: Apache-2.0
10 * @brief IEEE 802.11 protocol and general Wi-Fi definitions.
14 * @brief Wi-Fi Management API.
15 * @defgroup wifi_mgmt Wi-Fi Management
45 /** WPA2-PSK security. */
47 /** WPA2-PSK-SHA256 security. */
49 /** WPA3-SAE security. */
51 /** WPA3-SAE security with hunting-and-pecking loop. */
53 /** WPA3-SAE security with hash-to-element. */
55 /** WPA3-SAE security with both hunting-and-pecking loop and hash-to-element enabled. */
[all …]
/Zephyr-latest/samples/net/promiscuous_mode/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
16 #include <zephyr/net/promiscuous.h>
21 struct net_buf *buf = pkt->buffer; in net_pkt_hexdump()
24 LOG_HEXDUMP_DBG(buf->data, buf->len, str); in net_pkt_hexdump()
25 buf = buf->frags; in net_pkt_hexdump()
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()
49 return -EINVAL; in get_ports()
52 *src = ntohs(udp_hdr->src_port); in get_ports()
53 *dst = ntohs(udp_hdr->dst_port); in get_ports()
[all …]
/Zephyr-latest/drivers/ethernet/dwc_xgmac/
DKconfig5 # SPDX-License-Identifier: Apache-2.0
37 bool "Polling mode"
65 bool "Promiscuous mode"
68 Disables the promiscuous mode support in XGMAC device.
/Zephyr-latest/tests/net/promiscuous/src/
Dmain.c1 /* main.c - Application main entry point */
6 * SPDX-License-Identifier: Apache-2.0
26 #include <zephyr/net/promiscuous.h>
80 struct eth_fake_context *ctx = dev->data; in eth_fake_iface_init()
82 ctx->iface = iface; in eth_fake_iface_init()
84 net_if_set_link_addr(iface, ctx->mac_address, in eth_fake_iface_init()
85 sizeof(ctx->mac_address), in eth_fake_iface_init()
109 struct eth_fake_context *ctx = dev->data; in eth_fake_set_config()
113 if (config->promisc_mode == ctx->promisc_mode) { in eth_fake_set_config()
114 return -EALREADY; in eth_fake_set_config()
[all …]
/Zephyr-latest/subsys/net/ip/
Dpromiscuous.c2 * @brief Promiscuous mode support
6 * supports promiscuous mode.
12 * SPDX-License-Identifier: Apache-2.0
38 return -EINVAL; in net_promisc_mode_on()
82 return -EALREADY; in net_promisc_mode_off()
DKconfig6 # SPDX-License-Identifier: Apache-2.0
61 module-dep = NET_LOG
62 module-str = Log level for PMTU
63 module-help = Enables PMTU to output debug messages.
80 Enables TCP/IP stack to be offload to a co-processor.
92 module-dep = NET_LOG
93 module-str = Log level for offload layer
94 module-help = Enables offload layer to output debug messages.
136 Connect to host system via Qemu's built-in User Networking support. This
149 information etc. This string is appended to the QEMU "-net user" option.
[all …]
/Zephyr-latest/doc/connectivity/networking/
Deth_bridge_native_sim_setup.rst14 :kconfig:option:`CONFIG_NET_ETHERNET_BRIDGE` Kconfig option. In this setup, the net-tools
20 .. code-block:: console
22 cd $ZEPHYR_BASE/../tools/net-tools
23 ./net-setup.sh -c zeth-multiface.conf -i zeth0 -t 2
25 The ``-c`` tells which configuration file to use, where ``zeth-multiface.conf`` is tailored
27 The ``-i`` option tells what is the first host interface name. The ``-t`` tells how
32 .. code-block:: console
55 :zephyr:code-sample:`sockets-echo-server` sample application.
57 .. code-block:: console
59 west build -p -b native_sim -d ../build/echo-server \
[all …]
/Zephyr-latest/drivers/ethernet/nxp_enet/
DKconfig3 # Copyright (c) 2016-2017 ARM Ltd
5 # SPDX-License-Identifier: Apache-2.0
44 bool "1G mode for ENET1G instance"
48 Enable the use of the ENET1G ethernet instance in 1G mode.
62 - IPv4, UDP and TCP checksum (both Rx and Tx)
96 bool "Promiscuous mode"
98 Place the Ethernet receiver in promiscuous mode. This may be useful
113 - IPv4, UDP and TCP checksum (both Rx and Tx)
141 communication with MAC ENET controller. Other busses - like SPI
160 Reset the ethernet PHY at boot. Requires dts properties int-gpios and
[all …]
/Zephyr-latest/drivers/ieee802154/
Dieee802154_rf2xx.c1 /* ieee802154_rf2xx.c - ATMEL RF2XX IEEE 802.15.4 Driver */
6 * Copyright (c) 2019-2020 Gerson Fernando Budke
8 * SPDX-License-Identifier: Apache-2.0
67 .rssi = -40,
84 k_sem_give(&ctx->trx_isr_lock); in trx_isr_handler()
111 * Datasheet: Figure 7-13. Timing Example of an RX_AACK Transaction in rf2xx_trx_set_tx_state()
133 * Set extended RX mode in rf2xx_trx_set_rx_state()
134 * Datasheet: chapter 7.2 Extended Operating Mode in rf2xx_trx_set_rx_state()
141 struct rf2xx_context *ctx = dev->data; in rf2xx_set_rssi_base()
144 if (ctx->cc_page == IEEE802154_ATTR_PHY_CHANNEL_PAGE_ZERO_OQPSK_2450_BPSK_868_915) { in rf2xx_set_rssi_base()
[all …]
/Zephyr-latest/dts/bindings/ethernet/
Dxlnx,gem.yaml3 # SPDX-License-Identifier: Apache-2.0
10 include: ethernet-controller.yaml
19 clock-frequency:
27 which it will be adjusted at run-time. Therefore, the value of this
29 respective GEM's TX clock - by default, this is the IO PLL.
31 mdc-divider:
42 init-mdio-phy:
45 Activates the management of a PHY associated with the controller in-
46 stance. If this parameter is activated at the board level, the de-
47 fault values of the associated parameters mdio-phy-address, phy-poll-
[all …]
/Zephyr-latest/tests/net/iface/src/
Dmain.c1 /* main.c - Application main entry point */
7 * SPDX-License-Identifier: Apache-2.0
83 struct net_if_test *data = dev->data; in net_iface_get_mac()
85 if (data->mac_addr[2] == 0x00) { in net_iface_get_mac()
86 /* 00-00-5E-00-53-xx Documentation RFC 7042 */ in net_iface_get_mac()
87 data->mac_addr[0] = 0x00; in net_iface_get_mac()
88 data->mac_addr[1] = 0x00; in net_iface_get_mac()
89 data->mac_addr[2] = 0x5E; in net_iface_get_mac()
90 data->mac_addr[3] = 0x00; in net_iface_get_mac()
91 data->mac_addr[4] = 0x53; in net_iface_get_mac()
[all …]
/Zephyr-latest/drivers/ethernet/
Deth_smsc91x_priv.h3 * SPDX-License-Identifier: Apache-2.0
28 #define RCR_PRMS 0x0002 /* Promiscuous mode */
47 #define RPCR_ANEG 0x0800 /* Put PHY in autonegotiation mode */
48 #define RPCR_DPLX 0x1000 /* Put PHY in full-duplex mode */
54 #define RPCR_LED_LINK_FDX 0x3 /* Full-duplex link detect */
62 #define CR_EPH_POWER_EN 0x8000 /* Disable/enable low power mode */
Deth_cyclonev.c2 * SPDX-License-Identifier: Apache-2.0
5 * 3504-0 Universal 10/100/1000 Ethernet MAC (DWC_gmac)
9 * https://github.com/altera-opensource/intel-socfpga-hwlib
71 * /us/en/pdfs/literature/hb/cyclone-v/cv_54001.pdf p. 1252
135 sys_write32(tmpreg, EMAC_GMAC_MAC_ADDR_HIGH_ADDR(p->base_addr, n)); in eth_cyclonev_set_mac_addr()
142 sys_write32(tmpreg, EMAC_GMAC_MAC_ADDR_LOW_ADDR(p->base_addr, n)); in eth_cyclonev_set_mac_addr()
156 return -1; in eth_cyclonev_get_software_reset_status()
158 return EMAC_DMA_MODE_SWR_GET(sys_read32(EMAC_DMAGRP_BUS_MODE_ADDR(p->base_addr))); in eth_cyclonev_get_software_reset_status()
167 * @retval 0 if Reset was successful, -1 otherwise
175 return -1; in eth_cyclonev_software_reset()
[all …]
/Zephyr-latest/tests/subsys/openthread/
Dradio_test.c4 * SPDX-License-Identifier: Apache-2.0
18 #include <platform-zephyr.h>
23 * @brief Tests for the radio.c - OpenThread radio api
111 zassert_equal(otPlatRadioReceiveDone_expected_aframe.mChannel, aFrame->mChannel); in otPlatRadioReceiveDone()
112 zassert_equal(otPlatRadioReceiveDone_expected_aframe.mLength, aFrame->mLength); in otPlatRadioReceiveDone()
113 zassert_mem_equal(otPlatRadioReceiveDone_expected_aframe.mPsdu, aFrame->mPsdu, in otPlatRadioReceiveDone()
114 aFrame->mLength, NULL); in otPlatRadioReceiveDone()
160 const int16_t energy = -94; in ZTEST()
192 const int16_t energy = -94; in ZTEST()
196 scan_mock_fake.return_val = -EBUSY; in ZTEST()
[all …]
/Zephyr-latest/subsys/net/l2/ethernet/
Dbridge_shell.c4 * SPDX-License-Identifier: Apache-2.0
22 return -ENOENT; in get_idx()
42 return -ENOENT; in cmd_bridge_addif()
63 shell_warn(sh, "Interface %d cannot do promiscuous mode\n", if_idx); in cmd_bridge_addif()
90 return -ENOENT; in cmd_bridge_delif()
116 int br_idx = eth_bridge_get_index(ctx->iface); in bridge_show()
119 shell_fprintf(sh, SHELL_NORMAL, "%-7d", br_idx); in bridge_show()
121 if (net_if_is_up(ctx->iface)) { in bridge_show()
122 shell_fprintf(sh, SHELL_NORMAL, "%-9s", "up"); in bridge_show()
124 shell_fprintf(sh, SHELL_NORMAL, "%-9s", "down"); in bridge_show()
[all …]
Dbridge.c5 * SPDX-License-Identifier: Apache-2.0
36 k_mutex_lock(&ctx->lock, K_FOREVER); in lock_bridge()
41 k_mutex_unlock(&ctx->lock); in unlock_bridge()
64 ctx = net_if_get_device(iface)->data; in iface_cb()
66 br_user_data->cb(ctx, br_user_data->user_data); in iface_cb()
91 struct eth_bridge_iface_context *ctx = net_if_get_device(br)->data; in eth_bridge_iface_add()
99 return -EINVAL; in eth_bridge_iface_add()
104 return -EINVAL; in eth_bridge_iface_add()
109 if (eth_ctx->bridge == br) { in eth_bridge_iface_add()
114 ARRAY_FOR_EACH(ctx->eth_iface, i) { in eth_bridge_iface_add()
[all …]
/Zephyr-latest/doc/releases/
Drelease-notes-1.13.rst16 * Support for IEEE 802.1AS-2011 generalized Precision Time Protocol (gPTP)
23 * Basic support for Arm TrustZone in Armv8-M
33 * Fix errno access for user mode
42 * arch: arm: implement ARMv8-M MPU driver
44 * arch: arm: macro API for defining non-secure entry functions
48 * arch: ARM: Change the march used by cortex-m0 and cortex-m0plus
50 * arch: arm: basic Arm TrustZone-M functionality for Cortex-M23 and Cortex-M33
51 * arch: arm: built-in stack protection using Armv8-M SPLIM registers
52 * arch: arm: API for using TT intrinsics in Secure/Non-Secure Armv8-M firmware
63 * riscv32: riscv-privilege: Microsemi Mi-V support
[all …]

123