libsysdecode: fix nlm_flag regex in mktables

Some NLM_F_ definitions contain multiple underscores in their name; this
should pick them up.

Reviewed by:	kp, Ishan Agrawal <[email protected]>
Fixes:  4c932a4d45 ("netlink: decode netlink message flags symbolically")
Sponsored by:	The FreeBSD Foundation
Pull Request:	https://github.com/freebsd/freebsd-src/pull/2340
This commit is contained in:
Mitchell Horne committed 2026-07-28 11:30:52 -03:00
1 parent 744cc51456
commit d6dcd8d2c3
1 file changed
+1 -1
+1 -1
View File
@@ -190,7 +190,7 @@ fi
gen_table "shmflags" "SHM_[A-Z_]+[[:space:]]+0x[0-9]+" "sys/mman.h" "SHM_ANON"
gen_table "itimerwhich" "ITIMER_[A-Z]+[[:space:]]+[0-9]+" "sys/time.h"
gen_table_enum "pfnl_cmd" "PFNL_CMD_[A-Z_]+" "netpfil/pf/pf_nl.h"
gen_table "nlm_flag" "NLM_F_[A-Z]+[[:space:]]+0x[0-9]+" "netlink/netlink.h"
gen_table "nlm_flag" "NLM_F_[A-Z_]+[[:space:]]+0x[0-9]+" "netlink/netlink.h"
# Generate a .depend file for our output file
if [ -n "$output_file" ]; then