]> git.ipfire.org Git - thirdparty/ulogd2.git/commit
raw2packet_BASE: store ARP address values as integers
authorJeremy Sowden <jeremy@azazel.net>
Mon, 21 Aug 2023 19:42:30 +0000 (20:42 +0100)
committerFlorian Westphal <fw@strlen.de>
Thu, 14 Sep 2023 12:22:49 +0000 (14:22 +0200)
commitb5a4bc8ffc6e6a48c43d8f8f28092ea0d2b8f82a
tree03bb185c7549da69f33f05fe6373fae022244900
parent57fed71654ca7e3eb06d87bf1110970262339b5a
raw2packet_BASE: store ARP address values as integers

Keys of type `ULOGD_RET_IPADDR` may be ipv4 or ipv6.  ARP protocol
addresses are 32-bits (i.e., ipv4).  By using `okey_set_u32` we keep
track of the size and allow downstream plug-ins to handle them
correctly.

Reported-by: Robert O'Brien <robrien@foxtrot-research.com>
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Florian Westphal <fw@strlen.de>
filter/raw2packet/ulogd_raw2packet_BASE.c