summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorJeremy Sowden <jeremy@azazel.net>2025-05-26 18:19:04 +0100
committerFlorian Westphal <fw@strlen.de>2025-06-01 14:12:47 +0200
commit1ab0c1b1fd3f598b671455ad38c52d1dce96bbba (patch)
tree8159833bd0a3e49a92b5ff71e201ff9cf547ba1c /util
parentf699ba550c9f009924d8f5f59a190254938f9bec (diff)
Add support for logging ARP packetsHEADmaster
Hithero, ulogd has only fully supported handling ARP headers that are present in `NFPROTO_BRIDGE` packets. Add support for handling ARP packets in their own right. Reported-by: Slavko <linux@slavino.sk> Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'util')
-rw-r--r--util/printpkt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/printpkt.c b/util/printpkt.c
index 2fecd50..93fe472 100644
--- a/util/printpkt.c
+++ b/util/printpkt.c
@@ -467,6 +467,9 @@ int printpkt_print(struct ulogd_key *res, char *buf)
case NFPROTO_BRIDGE:
buf_cur += printpkt_bridge(res, buf_cur);
break;
+ case NFPROTO_ARP:
+ buf_cur += printpkt_arp(res, buf_cur);
+ break;
}
if (pp_is_valid(res, KEY_OOB_UID))