diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-05-10 16:33:24 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-05-11 15:37:31 +0200 |
commit | f80a206aa497c1a1ce2a7bfc024ea2080f357aeb (patch) | |
tree | 67d30dec5a6901de5434e671416a531f41186b0c /src/test | |
parent | 5c2e5957678462d871c5c2ea5261becec5f8f80f (diff) | |
download | systemd-f80a206aa497c1a1ce2a7bfc024ea2080f357aeb.tar.gz |
socket-bind: use lowercase "ipv4"/"ipv6" spelling
In most of our codebase when we referenced "ipv4" and "ipv6" on the
right-hand-side of an assignment, we lowercases it (on the
left-hand-side we used CamelCase, and thus "IPv4" and "IPv6"). In
particular all across the networkd codebase the various "per-protocol
booleans" use the lower-case spelling. Hence, let's use lower-case for
SocketBindAllow=/SocketBindDeny= too, just make sure things feel like
they belong together better.
(This work is not included in any released version, hence let's fix this
now, before any fixes in this area would be API breakage)
Follow-up for #17655
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test-socket-bind.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-socket-bind.c b/src/test/test-socket-bind.c index bfe5072bc3..16cfea7779 100644 --- a/src/test/test-socket-bind.c +++ b/src/test/test-socket-bind.c @@ -141,8 +141,8 @@ int main(int argc, char *argv[]) { assert_se(manager_startup(m, NULL, NULL) >= 0); assert_se(test_socket_bind(m, "socket_bind_test.service", netcat_path, "2000", STRV_MAKE("2000"), STRV_MAKE("any")) >= 0); - assert_se(test_socket_bind(m, "socket_bind_test.service", netcat_path, "2000", STRV_MAKE("IPv6:2001-2002"), STRV_MAKE("any")) >= 0); - assert_se(test_socket_bind(m, "socket_bind_test.service", netcat_path, "6666", STRV_MAKE("IPv4:6666", "6667"), STRV_MAKE("any")) >= 0); + assert_se(test_socket_bind(m, "socket_bind_test.service", netcat_path, "2000", STRV_MAKE("ipv6:2001-2002"), STRV_MAKE("any")) >= 0); + assert_se(test_socket_bind(m, "socket_bind_test.service", netcat_path, "6666", STRV_MAKE("ipv4:6666", "6667"), STRV_MAKE("any")) >= 0); assert_se(test_socket_bind(m, "socket_bind_test.service", netcat_path, "6666", STRV_MAKE("6667", "6668", ""), STRV_MAKE("any")) >= 0); assert_se(test_socket_bind(m, "socket_bind_test.service", netcat_path, "7777", STRV_MAKE_EMPTY, STRV_MAKE_EMPTY) >= 0); assert_se(test_socket_bind(m, "socket_bind_test.service", netcat_path, "8888", STRV_MAKE("any"), STRV_MAKE("any")) >= 0); |