1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:28:12 +00:00
serenity/Userland/Services/LookupServer
Sergey Bugaev d8967e4dff LookupServer+LibC: Pass IP addresses in binary
Now that we no longer depend on the textual IPC format, we can pass IP addresses
in the format most code actually has and needs it: in binary. The only places we
actually have to deal with textual address representation is:

* When reading /etc/hosts, we have to parse textual addresses & convert them to
  binary;
* When doing reverse lookups, we have to form a pseudo-hostname of the form
  x.x.x.x.in-addr.arpa.

So we do the conversion in those two cases.

This also increases uniformity between how we handle A (IPv4 address) and other
resource record types. Namely, we now store the raw binary data as received from
a DNS server.
2021-02-06 17:52:47 +01:00
..
ClientConnection.cpp LookupServer+LibC: Pass IP addresses in binary 2021-02-06 17:52:47 +01:00
ClientConnection.h LookupServer: Switch to LibIPC :^) 2021-02-06 16:12:18 +01:00
CMakeLists.txt LookupServer: Switch to LibIPC :^) 2021-02-06 16:12:18 +01:00
DNSAnswer.cpp LookupServer: Move into LookupServer namespace 2021-02-06 16:12:18 +01:00
DNSAnswer.h LookupServer: Move into LookupServer namespace 2021-02-06 16:12:18 +01:00
DNSPacket.h LookupServer: Move into LookupServer namespace 2021-02-06 16:12:18 +01:00
DNSQuestion.h Services: Move to Userland/Services/ 2021-01-12 12:23:01 +01:00
DNSRequest.cpp LookupServer: Move into LookupServer namespace 2021-02-06 16:12:18 +01:00
DNSRequest.h LookupServer: Move into LookupServer namespace 2021-02-06 16:12:18 +01:00
DNSResponse.cpp LookupServer+LibC: Pass IP addresses in binary 2021-02-06 17:52:47 +01:00
DNSResponse.h LookupServer: Move into LookupServer namespace 2021-02-06 16:12:18 +01:00
LookupClient.ipc LookupServer: Switch to LibIPC :^) 2021-02-06 16:12:18 +01:00
LookupServer.cpp LookupServer+LibC: Pass IP addresses in binary 2021-02-06 17:52:47 +01:00
LookupServer.h LookupServer: Switch to LibIPC :^) 2021-02-06 16:12:18 +01:00
LookupServer.ipc LookupServer: Switch to LibIPC :^) 2021-02-06 16:12:18 +01:00
main.cpp LookupServer: Move into LookupServer namespace 2021-02-06 16:12:18 +01:00