Promiscuous Mode Sample Application

Overview

This application will enable promiscuous mode for every network interface in the system. It will then start to listen for incoming network packets and show information about them.

The application will also provide a shell so that user can enable or disable promiscuous mode at runtime. The commands are called promisc on and promisc off.

Building and Running

There are multiple ways to use this application. In this example QEMU is used:

Using west:

west build -b qemu_x86 samples/net/promiscuous_mode -- -DCONF_FILE=<config file to use>

Using CMake and ninja:

cmake -B build -GNinja -DBOARD=qemu_x86 -DCONF_FILE=<config file to use> samples/net/promiscuous_mode
ninja -C build