From eddecf4f6c8c133966636d6b3e499cbc8bcf1845 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Thu, 28 Dec 2023 18:02:26 +0100 Subject: [PATCH] coccinelle: add a rule for in_addr_hash_func() Follow-up for c01a5c0. --- coccinelle/siphash24.cocci | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/coccinelle/siphash24.cocci b/coccinelle/siphash24.cocci index a9afd90aa60..c577120f7b9 100644 --- a/coccinelle/siphash24.cocci +++ b/coccinelle/siphash24.cocci @@ -4,3 +4,10 @@ expression p, s; @@ - siphash24_compress(&p, sizeof(p), s); + siphash24_compress_typesafe(p, s); + +@@ +union in_addr_union p; +expression f, s; +@@ +- siphash24_compress(&p, FAMILY_ADDRESS_SIZE(f), s); ++ in_addr_hash_func(&p, f, s);