faa0b2a848
This provides the infrastructure to create network packet filter rules and to apply them to the RX and TX packet paths. Rules are made of simple condition tests that can be linked together, creating a facility similarly to the Linux iptables functionality. A couple of generic and Ethernet-specific condition tests are also provided. Additional tests can be easily created on top of this. Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
19 lines
407 B
CMake
19 lines
407 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
zephyr_library()
|
|
zephyr_library_sources_ifdef(CONFIG_NET_BUF buf.c)
|
|
zephyr_library_sources_ifdef(CONFIG_NET_HOSTNAME_ENABLE hostname.c)
|
|
|
|
if(CONFIG_NETWORKING)
|
|
add_subdirectory(l2)
|
|
add_subdirectory(pkt_filter)
|
|
|
|
if(CONFIG_NET_RAW_MODE)
|
|
zephyr_library_sources(ip/net_pkt.c)
|
|
else()
|
|
add_subdirectory(ip)
|
|
endif()
|
|
endif()
|
|
|
|
add_subdirectory(lib)
|