]> git.ipfire.org Git - people/ms/suricata.git/commit
protos: renaming ALPROTO_HTTP* constants
authorPhilippe Antoine <contact@catenacyber.fr>
Thu, 17 Dec 2020 11:03:08 +0000 (12:03 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 18 Feb 2021 11:22:55 +0000 (12:22 +0100)
commit707f027231f11a93fbf7fbd111005afb6b22d443
treedc7258c092320003d6cd2d820a9234d00bb9a907
parent93e6401ce05789f77533667d37eab28a62616a3c
protos: renaming ALPROTO_HTTP* constants

Having now ALPROTO_HTTP1, ALPROTO_HTTP2 and ALPROTO_HTTP

Run with 3 sed commands
git grep ALPROTO_HTTP | cut -d: -f1 | uniq |
 xargs sed -i -e 's/ALPROTO_HTTP/ALPROTO_HTTP1/g'
git grep ALPROTO_HTTP12 | cut -d: -f1 | uniq |
 xargs sed -i -e 's/ALPROTO_HTTP12/ALPROTO_HTTP2/g'
git grep ALPROTO_HTTP1_ANY | cut -d: -f1 | uniq |
 xargs sed -i -e 's/ALPROTO_HTTP1_ANY/ALPROTO_HTTP/g'

and then running clang-format
62 files changed:
rust/src/http2/http2.rs
src/alert-prelude.c
src/app-layer-detect-proto.c
src/app-layer-detect-proto.h
src/app-layer-htp-file.c
src/app-layer-htp-xff.c
src/app-layer-htp.c
src/app-layer-parser.c
src/app-layer-protos.c
src/app-layer-protos.h
src/app-layer.c
src/detect-app-layer-event.c
src/detect-app-layer-protocol.c
src/detect-bypass.c
src/detect-engine-analyzer.c
src/detect-engine-state.c
src/detect-file-data.c
src/detect-filemagic.c
src/detect-filename.c
src/detect-filestore.c
src/detect-http-client-body.c
src/detect-http-cookie.c
src/detect-http-header-names.c
src/detect-http-header.c
src/detect-http-headers-stub.h
src/detect-http-host.c
src/detect-http-method.c
src/detect-http-protocol.c
src/detect-http-raw-header.c
src/detect-http-request-line.c
src/detect-http-response-line.c
src/detect-http-server-body.c
src/detect-http-start.c
src/detect-http-stat-code.c
src/detect-http-stat-msg.c
src/detect-http-ua.c
src/detect-http-uri.c
src/detect-lua.c
src/detect-parse.c
src/detect-pcre.c
src/detect-uricontent.c
src/detect-urilen.c
src/log-httplog.c
src/output-json-alert.c
src/output-json-file.c
src/output-json-http.c
src/output-lua.c
src/output-streaming.c
src/stream-tcp-reassemble.c
src/tests/detect-http-client-body.c
src/tests/detect-http-cookie.c
src/tests/detect-http-header.c
src/tests/detect-http-host.c
src/tests/detect-http-method.c
src/tests/detect-http-raw-header.c
src/tests/detect-http-server-body.c
src/tests/detect-http-stat-code.c
src/tests/detect-http-stat-msg.c
src/tests/detect-http-uri.c
src/tests/detect-http-user-agent.c
src/tests/detect.c
src/util-lua-http.c