diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-12-28 18:02:26 +0100 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2024-01-02 19:12:05 +0100 |
commit | eddecf4f6c8c133966636d6b3e499cbc8bcf1845 (patch) | |
tree | 8ad1c7298000542e6d93d0158771b2b9003d6fb7 /coccinelle | |
parent | coccinelle: drop a couple of FIXMEs (diff) | |
download | systemd-eddecf4f6c8c133966636d6b3e499cbc8bcf1845.tar.xz systemd-eddecf4f6c8c133966636d6b3e499cbc8bcf1845.zip |
coccinelle: add a rule for in_addr_hash_func()
Follow-up for c01a5c0.
Diffstat (limited to 'coccinelle')
-rw-r--r-- | coccinelle/siphash24.cocci | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/coccinelle/siphash24.cocci b/coccinelle/siphash24.cocci index a9afd90aa6..c577120f7b 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); |