]> git.ipfire.org Git - thirdparty/suricata.git/commit
src: make include guards more library friendly 10610/head
authorJason Ish <jason.ish@oisf.net>
Sat, 9 Mar 2024 18:12:43 +0000 (12:12 -0600)
committerVictor Julien <victor@inliniac.net>
Sun, 10 Mar 2024 06:59:54 +0000 (07:59 +0100)
commit44388f1b69ea6ed813dc1126e327b60817d5d50b
treeb5186a1d537404ece1cabef2c11cce51d8481e1a
parent632ca75dd3f49bee865f047cc5336870f3a431d2
src: make include guards more library friendly

Include guards for libraries should use a prefix that is meaningful for
the library to avoid conflicts with other user code. For Suricata, use
SURICATA.

Additionally, remove the pattern of leading and trailing underscores as
these are reserved for the language implementation per the C and C++
standards.
579 files changed:
src/action-globals.h
src/alert-debuglog.h
src/alert-fastlog.h
src/alert-syslog.h
src/app-layer-detect-proto.h
src/app-layer-dnp3-objects.h
src/app-layer-dnp3.h
src/app-layer-enip-common.h
src/app-layer-enip.h
src/app-layer-events.h
src/app-layer-expectation.h
src/app-layer-frames.h
src/app-layer-ftp.h
src/app-layer-htp-body.h
src/app-layer-htp-file.h
src/app-layer-htp-libhtp.h
src/app-layer-htp-range.h
src/app-layer-htp-xff.h
src/app-layer-htp.h
src/app-layer-http2.h
src/app-layer-ike.h
src/app-layer-krb5.h
src/app-layer-modbus.h
src/app-layer-nfs-tcp.h
src/app-layer-nfs-udp.h
src/app-layer-ntp.h
src/app-layer-parser.h
src/app-layer-protos.h
src/app-layer-quic.h
src/app-layer-rdp.h
src/app-layer-register.h
src/app-layer-rfb.h
src/app-layer-sip.h
src/app-layer-smb.h
src/app-layer-smtp.h
src/app-layer-snmp.h
src/app-layer-ssh.h
src/app-layer-ssl.h
src/app-layer-tftp.h
src/app-layer.h
src/conf-yaml-loader.h
src/conf.h
src/counters.h
src/datasets-ipv4.h
src/datasets-ipv6.h
src/datasets-md5.h
src/datasets-reputation.h
src/datasets-sha256.h
src/datasets-string.h
src/datasets.h
src/decode-chdlc.h
src/decode-erspan.h
src/decode-esp.h
src/decode-ethernet.h
src/decode-events.h
src/decode-geneve.h
src/decode-gre.h
src/decode-icmpv4.h
src/decode-icmpv6.h
src/decode-ipv4.h
src/decode-ipv6.h
src/decode-mpls.h
src/decode-nsh.h
src/decode-ppp.h
src/decode-pppoe.h
src/decode-raw.h
src/decode-sctp.h
src/decode-sll.h
src/decode-tcp.h
src/decode-template.h
src/decode-teredo.h
src/decode-udp.h
src/decode-vlan.h
src/decode-vntag.h
src/decode-vxlan.h
src/decode.h
src/defrag-hash.h
src/defrag-queue.h
src/defrag-timeout.h
src/defrag.h
src/detect-app-layer-event.h
src/detect-app-layer-protocol.h
src/detect-asn1.h
src/detect-base64-data.h
src/detect-base64-decode.h
src/detect-bsize.h
src/detect-bypass.h
src/detect-byte-extract.h
src/detect-byte.h
src/detect-bytejump.h
src/detect-bytemath.h
src/detect-bytetest.h
src/detect-classtype.h
src/detect-config.h
src/detect-content.h
src/detect-csum.h
src/detect-datarep.h
src/detect-dataset.h
src/detect-dce-iface.h
src/detect-dce-opnum.h
src/detect-dce-stub-data.h
src/detect-depth.h
src/detect-detection-filter.h
src/detect-dhcp-leasetime.h
src/detect-dhcp-rebinding-time.h
src/detect-dhcp-renewal-time.h
src/detect-distance.h
src/detect-dnp3.h
src/detect-dns-answer-name.h
src/detect-dns-opcode.h
src/detect-dns-query-name.h
src/detect-dns-query.h
src/detect-dns-rcode.h
src/detect-dns-rrtype.h
src/detect-dsize.h
src/detect-engine-address-ipv4.h
src/detect-engine-address-ipv6.h
src/detect-engine-address.h
src/detect-engine-alert.h
src/detect-engine-analyzer.h
src/detect-engine-build.h
src/detect-engine-content-inspection.h
src/detect-engine-dcepayload.h
src/detect-engine-enip.h
src/detect-engine-event.h
src/detect-engine-file.h
src/detect-engine-iponly.h
src/detect-engine-loader.h
src/detect-engine-mpm.h
src/detect-engine-payload.h
src/detect-engine-port.h
src/detect-engine-prefilter-common.h
src/detect-engine-prefilter.h
src/detect-engine-proto.h
src/detect-engine-register.h
src/detect-engine-siggroup.h
src/detect-engine-sigorder.h
src/detect-engine-state.h
src/detect-engine-tag.h
src/detect-engine-threshold.h
src/detect-engine-uint.h
src/detect-engine.h
src/detect-fast-pattern.h
src/detect-file-data.h
src/detect-file-hash-common.h
src/detect-filemagic.h
src/detect-filemd5.h
src/detect-filename.h
src/detect-filesha1.h
src/detect-filesha256.h
src/detect-filesize.h
src/detect-filestore.h
src/detect-flow-age.h
src/detect-flow-pkts.h
src/detect-flow.h
src/detect-flowbits.h
src/detect-flowint.h
src/detect-flowvar.h
src/detect-fragbits.h
src/detect-fragoffset.h
src/detect-frame.h
src/detect-ftpbounce.h
src/detect-ftpdata.h
src/detect-geoip.h
src/detect-gid.h
src/detect-hostbits.h
src/detect-http-accept-enc.h
src/detect-http-accept-lang.h
src/detect-http-accept.h
src/detect-http-client-body.h
src/detect-http-connection.h
src/detect-http-content-len.h
src/detect-http-content-type.h
src/detect-http-header-common.h
src/detect-http-header-names.h
src/detect-http-header.h
src/detect-http-headers.h
src/detect-http-host.h
src/detect-http-location.h
src/detect-http-method.h
src/detect-http-protocol.h
src/detect-http-raw-header.h
src/detect-http-referer.h
src/detect-http-request-line.h
src/detect-http-response-line.h
src/detect-http-server-body.h
src/detect-http-server.h
src/detect-http-start.h
src/detect-http-ua.h
src/detect-icmp-id.h
src/detect-icmp-seq.h
src/detect-icode.h
src/detect-id.h
src/detect-ike-chosen-sa.h
src/detect-ike-exch-type.h
src/detect-ike-key-exchange-payload-length.h
src/detect-ike-key-exchange-payload.h
src/detect-ike-nonce-payload-length.h
src/detect-ike-nonce-payload.h
src/detect-ike-spi.h
src/detect-ike-vendor.h
src/detect-ipaddr.h
src/detect-ipopts.h
src/detect-ipproto.h
src/detect-iprep.h
src/detect-isdataat.h
src/detect-itype.h
src/detect-krb5-cname.h
src/detect-krb5-errcode.h
src/detect-krb5-msgtype.h
src/detect-krb5-sname.h
src/detect-krb5-ticket-encryption.h
src/detect-l3proto.h
src/detect-lua-extensions.h
src/detect-lua.h
src/detect-mark.h
src/detect-metadata.h
src/detect-modbus.h
src/detect-mqtt-connack-sessionpresent.h
src/detect-mqtt-connect-clientid.h
src/detect-mqtt-connect-flags.h
src/detect-mqtt-connect-password.h
src/detect-mqtt-connect-protocol-string.h
src/detect-mqtt-connect-username.h
src/detect-mqtt-connect-willmessage.h
src/detect-mqtt-connect-willtopic.h
src/detect-mqtt-flags.h
src/detect-mqtt-protocol-version.h
src/detect-mqtt-publish-message.h
src/detect-mqtt-publish-topic.h
src/detect-mqtt-qos.h
src/detect-mqtt-reason-code.h
src/detect-mqtt-subscribe-topic.h
src/detect-mqtt-type.h
src/detect-mqtt-unsubscribe-topic.h
src/detect-msg.h
src/detect-nfs-procedure.h
src/detect-nfs-version.h
src/detect-noalert.h
src/detect-nocase.h
src/detect-offset.h
src/detect-parse.h
src/detect-pcre.h
src/detect-pkt-data.h
src/detect-pktvar.h
src/detect-prefilter.h
src/detect-priority.h
src/detect-quic-cyu-hash.h
src/detect-quic-cyu-string.h
src/detect-quic-sni.h
src/detect-quic-ua.h
src/detect-quic-version.h
src/detect-rawbytes.h
src/detect-reference.h
src/detect-replace.h
src/detect-requires.h
src/detect-rev.h
src/detect-rfb-name.h
src/detect-rfb-secresult.h
src/detect-rfb-sectype.h
src/detect-rpc.h
src/detect-sameip.h
src/detect-sid.h
src/detect-sip-method.h
src/detect-sip-protocol.h
src/detect-sip-request-line.h
src/detect-sip-response-line.h
src/detect-sip-stat-code.h
src/detect-sip-stat-msg.h
src/detect-sip-uri.h
src/detect-smb-ntlmssp.h
src/detect-smb-share.h
src/detect-smb-version.h
src/detect-snmp-community.h
src/detect-snmp-pdu_type.h
src/detect-snmp-usm.h
src/detect-snmp-version.h
src/detect-ssh-hassh-server-string.h
src/detect-ssh-hassh-server.h
src/detect-ssh-hassh-string.h
src/detect-ssh-hassh.h
src/detect-ssh-proto-version.h
src/detect-ssh-proto.h
src/detect-ssh-software-version.h
src/detect-ssh-software.h
src/detect-tag.h
src/detect-target.h
src/detect-tcp-ack.h
src/detect-tcp-flags.h
src/detect-tcp-seq.h
src/detect-tcp-window.h
src/detect-template-rust-buffer.h
src/detect-template.h
src/detect-threshold.h
src/detect-tls-cert-fingerprint.h
src/detect-tls-cert-issuer.h
src/detect-tls-cert-serial.h
src/detect-tls-cert-subject.h
src/detect-tls-cert-validity.h
src/detect-tls-certs.h
src/detect-tls-ja3-hash.h
src/detect-tls-ja3-string.h
src/detect-tls-ja3s-hash.h
src/detect-tls-ja3s-string.h
src/detect-tls-random.h
src/detect-tls-sni.h
src/detect-tls-version.h
src/detect-tls.h
src/detect-tos.h
src/detect-transform-casechange.h
src/detect-transform-compress-whitespace.h
src/detect-transform-dotprefix.h
src/detect-transform-header-lowercase.h
src/detect-transform-md5.h
src/detect-transform-pcrexform.h
src/detect-transform-sha1.h
src/detect-transform-sha256.h
src/detect-transform-strip-pseudo-headers.h
src/detect-transform-strip-whitespace.h
src/detect-transform-urldecode.h
src/detect-transform-xor.h
src/detect-uricontent.h
src/detect-within.h
src/detect-xbits.h
src/detect.h
src/device-storage.h
src/feature.h
src/flow-bit.h
src/flow-bypass.h
src/flow-hash.h
src/flow-manager.h
src/flow-private.h
src/flow-queue.h
src/flow-spare-pool.h
src/flow-storage.h
src/flow-timeout.h
src/flow-util.h
src/flow-var.h
src/flow-worker.h
src/flow.h
src/host-bit.h
src/host-queue.h
src/host-storage.h
src/host-timeout.h
src/host.h
src/ippair-bit.h
src/ippair-queue.h
src/ippair-storage.h
src/ippair-timeout.h
src/ippair.h
src/log-cf-common.h
src/log-httplog.h
src/log-pcap.h
src/log-stats.h
src/log-tcp-data.h
src/log-tlslog.h
src/log-tlsstore.h
src/output-eve-stream.h
src/output-eve-syslog.h
src/output-file.h
src/output-filedata.h
src/output-filestore.h
src/output-flow.h
src/output-json-alert.h
src/output-json-anomaly.h
src/output-json-bittorrent-dht.h
src/output-json-dcerpc.h
src/output-json-dhcp.h
src/output-json-dnp3-objects.h
src/output-json-dnp3.h
src/output-json-dns.h
src/output-json-drop.h
src/output-json-email-common.h
src/output-json-file.h
src/output-json-flow.h
src/output-json-frame.h
src/output-json-ftp.h
src/output-json-http.h
src/output-json-http2.h
src/output-json-ike.h
src/output-json-krb5.h
src/output-json-metadata.h
src/output-json-modbus.h
src/output-json-mqtt.h
src/output-json-netflow.h
src/output-json-nfs.h
src/output-json-pgsql.h
src/output-json-quic.h
src/output-json-rdp.h
src/output-json-rfb.h
src/output-json-sip.h
src/output-json-smb.h
src/output-json-smtp.h
src/output-json-snmp.h
src/output-json-ssh.h
src/output-json-stats.h
src/output-json-template.h
src/output-json-tftp.h
src/output-json-tls.h
src/output-json.h
src/output-lua.h
src/output-packet.h
src/output-stats.h
src/output-streaming.h
src/output-tx.h
src/output.h
src/packet-queue.h
src/packet.h
src/pkt-var.h
src/reputation.h
src/respond-reject-libnet11.h
src/respond-reject.h
src/runmode-af-packet.h
src/runmode-af-xdp.h
src/runmode-dpdk.h
src/runmode-erf-dag.h
src/runmode-erf-file.h
src/runmode-ipfw.h
src/runmode-napatech.h
src/runmode-netmap.h
src/runmode-nflog.h
src/runmode-nfq.h
src/runmode-pcap-file.h
src/runmode-pcap.h
src/runmode-pfring.h
src/runmode-unittests.h
src/runmode-unix-socket.h
src/runmode-windivert.h
src/runmodes.h
src/rust-context.h
src/rust.h
src/source-af-packet.h
src/source-af-xdp.h
src/source-dpdk.h
src/source-erf-dag.h
src/source-erf-file.h
src/source-ipfw.h
src/source-napatech.h
src/source-netmap.h
src/source-nflog.h
src/source-nfq-prototypes.h
src/source-nfq.h
src/source-pcap-file-directory-helper.h
src/source-pcap-file-helper.h
src/source-pcap-file.h
src/source-pcap.h
src/source-pfring.h
src/source-windivert-prototypes.h
src/source-windivert.h
src/stream-tcp-cache.h
src/stream-tcp-inline.h
src/stream-tcp-list.h
src/stream-tcp-private.h
src/stream-tcp-reassemble.h
src/stream-tcp-sack.h
src/stream-tcp-util.h
src/stream-tcp.h
src/stream.h
src/suricata-common.h
src/suricata-plugin.h
src/suricata.h
src/threads-debug.h
src/threads-profile.h
src/threads.h
src/threadvars.h
src/tm-modules.h
src/tm-queuehandlers.h
src/tm-queues.h
src/tm-threads-common.h
src/tm-threads.h
src/tmqh-flow.h
src/tmqh-packetpool.h
src/tmqh-simple.h
src/util-action.h
src/util-affinity.h
src/util-atomic.h
src/util-base64.h
src/util-bloomfilter-counting.h
src/util-bloomfilter.h
src/util-bpf.h
src/util-buffer.h
src/util-byte.h
src/util-checksum.h
src/util-cidr.h
src/util-classification-config.h
src/util-clock.h
src/util-conf.h
src/util-config.h
src/util-coredump-config.h
src/util-cpu.h
src/util-daemon.h
src/util-datalink.h
src/util-debug-filters.h
src/util-debug.h
src/util-device.h
src/util-ebpf.h
src/util-enum.h
src/util-error.h
src/util-exception-policy.h
src/util-file-decompression.h
src/util-file-swf-decompression.h
src/util-file.h
src/util-fmemopen.h
src/util-hash-lookup3.h
src/util-hash-string.h
src/util-hash.h
src/util-hashlist.h
src/util-host-info.h
src/util-host-os-info.h
src/util-hyperscan.h
src/util-ip.h
src/util-ja3.h
src/util-landlock.h
src/util-log-redis.h
src/util-logopenfile.h
src/util-lua-common.h
src/util-lua-dnp3-objects.h
src/util-lua-dnp3.h
src/util-lua-dns.h
src/util-lua-hassh.h
src/util-lua-http.h
src/util-lua-ja3.h
src/util-lua-smtp.h
src/util-lua-ssh.h
src/util-lua-tls.h
src/util-lua.h
src/util-luajit.h
src/util-macset.h
src/util-magic.h
src/util-mem.h
src/util-memcmp.h
src/util-memcpy.h
src/util-memrchr.h
src/util-misc.h
src/util-mpm-ac-ks.h
src/util-mpm-ac.h
src/util-mpm-hs.h
src/util-mpm.h
src/util-napatech.h
src/util-optimize.h
src/util-pages.h
src/util-path.h
src/util-pidfile.h
src/util-plugin.h
src/util-pool-thread.h
src/util-pool.h
src/util-port-interval-tree.h
src/util-prefilter.h
src/util-print.h
src/util-profiling-locks.h
src/util-profiling.h
src/util-proto-name.h
src/util-radix-tree.h
src/util-random.h
src/util-reference-config.h
src/util-rohash.h
src/util-rule-vars.h
src/util-runmodes.h
src/util-running-modes.h
src/util-signal.h
src/util-spm-bm.h
src/util-spm-bs.h
src/util-spm-bs2bm.h
src/util-spm-hs.h
src/util-spm.h
src/util-storage.h
src/util-streaming-buffer.h
src/util-thash.h
src/util-threshold-config.h
src/util-time.h
src/util-unittest-helper.h
src/util-unittest.h
src/util-validate.h
src/util-var-name.h
src/util-var.h
src/win32-misc.h
src/win32-service.h
src/win32-syscall.h
src/win32-syslog.h