summaryrefslogtreecommitdiff
path: root/Kernel/Net/ICMP.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-12-30 22:44:54 +0100
committerAndreas Kling <kling@serenityos.org>2020-12-31 21:51:00 +0100
commitbbe787a0afd51307cdac2c023895c19df31519ca (patch)
tree44dc80cf50b22b461c27c1e9d99fa2c9ff00e22e /Kernel/Net/ICMP.h
parent2568a93b5dd29d2b06d613a4ece502ee696f189a (diff)
downloadserenity-bbe787a0afd51307cdac2c023895c19df31519ca.zip
Everywhere: Re-format with clang-format-11
Compared to version 10 this fixes a bunch of formatting issues, mostly around structs/classes with attributes like [[gnu::packed]], and incorrect insertion of spaces in parameter types ("T &"/"T &&"). I also removed a bunch of // clang-format off/on and FIXME comments that are no longer relevant - on the other hand it tried to destroy a couple of neatly formatted comments, so I had to add some as well.
Diffstat (limited to 'Kernel/Net/ICMP.h')
-rw-r--r--Kernel/Net/ICMP.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/Kernel/Net/ICMP.h b/Kernel/Net/ICMP.h
index be65fb5be5..bd598bd23d 100644
--- a/Kernel/Net/ICMP.h
+++ b/Kernel/Net/ICMP.h
@@ -36,8 +36,7 @@ struct ICMPType {
};
};
-class [[gnu::packed]] ICMPHeader
-{
+class [[gnu::packed]] ICMPHeader {
public:
ICMPHeader() { }
~ICMPHeader() { }
@@ -63,8 +62,7 @@ private:
static_assert(sizeof(ICMPHeader) == 4);
-struct [[gnu::packed]] ICMPEchoPacket
-{
+struct [[gnu::packed]] ICMPEchoPacket {
ICMPHeader header;
NetworkOrdered<u16> identifier;
NetworkOrdered<u16> sequence_number;