commit 4a8a517f29ae3cb5d943636ddce1c51552b5821b from: Stefan Sperling date: Fri Oct 25 08:18:38 2024 UTC add pftop commit - bd030151f607f80ab726bd272be914feda51c4a5 commit + 4a8a517f29ae3cb5d943636ddce1c51552b5821b blob - 7fccb8d5190cff6eab599c628ef2f93fd8662758 blob + f41c40681d817092b6f8fe387a22d0e087d31c74 --- commands.c +++ commands.c @@ -2051,7 +2051,8 @@ static Command cmdtab2[] = { */ static const char \ - mtrhelp[] = "network diagnostic tool, similar to ping and traceroute"; + mtrhelp[] = "network diagnostic tool, similar to ping and traceroute", + pftophelp[] = "display active packetfilter states and rules"; struct ghs mtrtab[] = { { "", "Type Enter to run command", CMPL0 NULL, 0 }, @@ -2076,6 +2077,7 @@ extcmd(int argc, char **argv) Command extcmdtab[] = { { "mtr", mtrhelp, CMPL(h) (char **)mtrtab, sizeof(struct ghs), extcmd, 0, 0, 0, 0 }, + { "pftop", pftophelp, CMPL0 NULL, 0, extcmd, 1, 0, 0, 0 }, { NULL, NULL, CMPL0 NULL, 0, NULL, 0, 0, 0, 0 } }; size_t extcmdtab_nitems = nitems(extcmdtab); @@ -2144,6 +2146,7 @@ struct pkgname { const char *pkgname; } pkgnames[] = { { "mtr", "mtr" }, + { "pftop", "pftop" }, { NULL, NULL } };