]> git.ipfire.org Git - thirdparty/xtables-addons.git/commit
pknlusr: fix hard-coded netlink multicast group ID
authorJeremy Sowden <jeremy@azazel.net>
Sun, 25 Oct 2020 13:15:55 +0000 (14:15 +0100)
committerJan Engelhardt <jengelh@inai.de>
Sun, 25 Oct 2020 14:06:10 +0000 (15:06 +0100)
commit63fb5d3490196085e3507edea3054f14c501791c
tree7f5de852b2405a90e9ee6892d32f66d3326796cd
parent05cacbe84cfdeb08e3db8ee1b57f19655cd9ac14
pknlusr: fix hard-coded netlink multicast group ID

The group ID used by xt_pknock is configurable, but pknlusr hard-codes
it. Modify pknlusr to accept an optional ID from the command line.
Group IDs range from 1 to 32 and each ID appears in the group bitmask
at position `group_id - 1`.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
extensions/pknock/pknlusr.c