]> git.ipfire.org Git - thirdparty/suricata.git/commit
decode: reduce PKT_IS_IPV4/PKT_IS_IPV6 use
authorVictor Julien <vjulien@oisf.net>
Fri, 22 Mar 2024 09:34:31 +0000 (10:34 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 26 Apr 2024 18:59:44 +0000 (20:59 +0200)
commiteb3ca643c1dd7c8e2fe9e9141145a6165fd9d368
treeec6f5aff8cc4df2d48eaef1b967034b4b8a0d3cc
parent813147755d9aa554c015f4972abe63ceacdda76b
decode: reduce PKT_IS_IPV4/PKT_IS_IPV6 use

Replace it with inline functions. Adds inline functions to
wrap PKT_IS_IPV4/PKT_IS_IPV6.

This is in preparation of removing the macro's, and cleaning up the
header pointers.

Ticket: #5517.
41 files changed:
src/alert-debuglog.c
src/alert-fastlog.c
src/alert-syslog.c
src/decode-chdlc.c
src/decode-raw.c
src/decode.h
src/defrag-config.c
src/defrag-hash.c
src/defrag.c
src/detect-csum.c
src/detect-engine-alert.c
src/detect-engine-iponly.c
src/detect-fragbits.c
src/detect-fragoffset.c
src/detect-geoip.c
src/detect-id.c
src/detect-ipaddr.c
src/detect-ipopts.c
src/detect-ipv6hdr.c
src/detect-template.c
src/detect-template2.c
src/detect-tos.c
src/detect-ttl.c
src/detect.c
src/flow-util.c
src/flow.c
src/log-httplog.c
src/log-tlslog.c
src/log-tlsstore.c
src/output-eve-stream.c
src/output-json-alert.c
src/output-json-drop.c
src/output-json.c
src/output-lua.c
src/reputation.c
src/respond-reject.c
src/source-af-packet.c
src/stream-tcp.c
src/util-checksum.c
src/util-lua-common.c
src/util-profiling.c