summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/netinet
AgeCommit message (Collapse)Author
2021-09-20LibC: Spec compliant IN6_IS_ADDR_V4MAPPEDKenneth Myhra
An IPv4 mapped IPv6 address consist of 80 "0" bits, followed by 16 "1" bits, followed by the 32-bit IPv4 address. Example of IPv4 mapped IPv6 address: IPv4 address: 169.219.13.133 IPv6 address: 0000:0000:0000:0000:FFFF:A9DB:0D85 Simplified : ::FFFF:A9DB:0D85
2021-09-19LibC: Declare IN6_IS_ADDR_V4MAPPED correctlyKenneth Myhra
When using the IN6_IS_ADDR_V4MAPPED macro in Serenity's LibC it would fail when compiling with the error message: 'invalid type argument of '->''. This patch corrects the macro so that e.g. GLib port can compile again.
2021-08-22LibC: Make <netinet/in.h> more POSIX compliantPeter Elliott
1. Move htonl() etc. from <arpa/inet.h> to <netinet/in.h> (which <arpa/inet.h> includes). The htonl(), htons(), ntohl(), and ntohs() functions shall be available as described in <arpa/inet.h>. Inclusion of the <netinet/in.h> header may also make visible all symbols from <arpa/inet.h>. - POSIX 2. Define IN6_IS_ADDR_LOOPBACK() and IN6_IS_ADDR_V4MAPPED()
2021-08-14Kernel+LibC: Share definitions for netinet/in.hAndreas Kling
2021-08-03LibC: Add definition for 'struct ip' in netinet/ip.hThomas Wagenveld
The definition is equal to the one defined by the BSDs.
2021-05-09LibC: Add definitions/stubs for IPv6 functionalityGunnar Beutner
This lets us build some of the ports without patching out any of their IPv6 stuff.
2021-05-05Kernel: Implement IP multicast supportSergey Bugaev
An IP socket can now join a multicast group by using the IP_ADD_MEMBERSHIP sockopt, which will cause it to start receiving packets sent to the multicast address, even though this address does not belong to this host.
2021-04-22Everything: Move to SPDX license identifiers in all files.Brian Gianforcaro
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-04-18LibC: Add netinet/in_systm.hHendiadyoin1
2021-03-04Everywhere: Remove unnecessary `clang-format off`sWilliam McPherson
Mostly due to the fact that clang-format allows aligned comments via AlignTrailingComments. We could also use raw string literals in inline asm, which clang-format deals with properly (and would be nicer in a lot of places).
2021-02-15LibC: Fix typo in commentBen Wiederhake
2021-02-08LibC: Define ICMP header type constants in netinet/ip_icmp.hLinus Groh
Let's get rid of some magic numbers soon. :^)
2021-01-12Libraries: Move to Userland/Libraries/Andreas Kling