Lines Matching +full:enable +full:- +full:wait +full:- +full:mode
3 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,
23 and to wait for and receive a network data to arrive. Not all network
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");
38 printf("Cannot enable promiscuous mode for "
44 If there is no error, then the application can start to wait for network data:
46 .. code-block:: c
58 Finally the promiscuous mode can be turned OFF by the application like this:
60 .. code-block:: c
64 if (ret == -EALREADY) {
65 printf("Promiscuous mode already disabled\n");
67 printf("Cannot disable promiscuous mode for "
73 See :zephyr:code-sample:`net-promiscuous-mode` for a more comprehensive example.