nuttx-apps/system/conntrack/Kconfig
Zhe Weng 43a8e862e0 apps/system: Add conntrack command
A simple tool like Linux's 'conntrack', only supports printing NAT connections now.

nuttx> conntrack -E
    [NEW] icmp  src=192.168.21.66 dst=1.2.3.4 type=8 code=0 id=26739 src=1.2.3.4 dst=192.168.11.1 type=0 code=0 id=26739
    [NEW] tcp   src=192.168.21.66 dst=1.2.3.4 sport=38446 dport=80 src=1.2.3.4 dst=192.168.11.1 sport=80 dport=38446
[DESTROY] icmp  src=192.168.21.66 dst=1.2.3.4 type=8 code=0 id=26739 src=1.2.3.4 dst=192.168.11.1 type=0 code=0 id=26739

nuttx> conntrack -L
tcp   src=192.168.21.66 dst=1.2.3.4 sport=38446 dport=80 src=1.2.3.4 dst=192.168.11.1 sport=80 dport=38446
icmp  src=192.168.21.66 dst=1.2.3.4 type=8 code=0 id=26739 src=1.2.3.4 dst=192.168.11.1 type=0 code=0 id=26739
conntrack: 2 flow entries have been shown.

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2024-04-18 09:57:01 +08:00

33 lines
792 B
Plaintext

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
config SYSTEM_CONNTRACK
tristate "conntrack command"
default n
depends on NETLINK_NETFILTER
select SYSTEM_ARGTABLE3
---help---
Enable support for the 'conntrack' command, a simple tool like
Linux's 'conntrack', only supports printing NAT connections now.
if SYSTEM_CONNTRACK
config SYSTEM_CONNTRACK_PROGNAME
string "conntrack program name"
default "conntrack"
---help---
This is the name of the program that will be used when the NSH ELF
program is installed.
config SYSTEM_CONNTRACK_PRIORITY
int "conntrack task priority"
default 100
config SYSTEM_CONNTRACK_STACKSIZE
int "conntrack stack size"
default DEFAULT_TASK_STACKSIZE
endif