Tom
49de4d5f33
LibDNS: Remove the 'DNS' prefix from the various type and class names
...
Since all types and class names live in the DNS namespace, we don't
need to spell it out twice each time.
2022-04-15 16:34:26 +01:00
Tom
be4a4144f2
LookupServer: Move DNS related code into new LibDNS library
...
This allows other code to use the DNSPacket class, e.g. when sent
over IPC.
2022-04-15 16:34:26 +01:00
Idan Horowitz
086969277e
Everywhere: Run clang-format
2022-04-01 21:24:45 +01:00
sin-ack
0cca6cef95
LibCore+LookupServer: Implement and use UDPServer::send
2021-12-16 22:21:35 +03:30
Andreas Kling
587f9af960
AK: Make JSON parser return ErrorOr<JsonValue> (instead of Optional)
...
Also add slightly richer parse errors now that we can include a string
literal with returned errors.
This will allow us to use TRY() when working with JSON data.
2021-11-17 00:21:10 +01:00
Jean-Baptiste Boric
8e6241b78b
LookupServer: Fix missing POSIX includes
2021-05-23 18:10:29 +02:00
Gunnar Beutner
53d0150827
AK+Userland: Remove nullability feature for the ByteBuffer type
...
Nobody seems to use this particular feature, in fact there were some
bugs which were uncovered by removing operator bool.
2021-05-16 17:49:42 +02:00
Ali Mohammad Pur
a91a49337c
LibCore+Everywhere: Move OpenMode out of IODevice
...
...and make it an enum class so people don't omit "OpenMode".
2021-05-12 11:00:45 +01:00
Gunnar Beutner
3304d675e1
LookupServer: Correct some flags for DNS packets
...
This corrects some of the flags in the DNS packets to match
what I saw on my local network.
2021-05-10 17:26:17 +02:00
Gunnar Beutner
7b3bed7910
LookupServer: Turn #defines into enum classes and add formatter
2021-05-10 17:26:17 +02:00
Gunnar Beutner
6e70888315
LookupServer: Split mDNS flags into separate field
2021-05-10 17:26:17 +02:00
Andreas Kling
6024617df3
LookupServer: Remove some unnecessary "rc" temporaries
2021-05-06 13:37:46 +02:00
Sergey Bugaev
bb06e720de
LookupServer: Implement basic mDNS support :^)
...
The implementation is extremely basic, and is far from fully conforming
to the spec. Among other things, it does not really work in case there
are multiple network adapters.
Nevertheless, it works quite well for the simple case! You can now do
this on your host machine:
$ ping courage.local
and same on your Serenity box:
$ ping host-machine-name.local
2021-05-05 21:16:17 +02:00