summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/netinet
AgeCommit message (Collapse)Author
2022-08-23LibC: Add missing sys/cdefs.h includeEmily Trau
Some header files use __BEGIN_DECLS without including sys/cdefs.h. This causes issues for C code that compiles against these headers, which may occur with Ports.
2022-05-05LibC: Add IN6_IS_ADDR_MULTICASTTim Schumacher
2022-03-02LibC: Add TCP_MAXSEG to tcp.hPeter Ross
This is an unimplemented setsockopt. Defining it is sufficient to build FFmpeg with networking.
2022-03-02LibC: Add IN_MULTICAST to in.hPeter Ross
2022-02-03LibC: Add IN6_IS_ADDR_LINKLOCAL to in.hBrian Gianforcaro
I tried the OpenSSH port but it failed to compile due to a missing definition of this macro. It's simple enough to add, and it's addition allowed OpenSSH to compile once again. I also went ahead and added spec comments for these macros as well.
2021-12-22LibC: Add the netinet/if_ether.h header and define ETH_ALENIdan Horowitz
This header defines various constants related to ethernet packets, with ETH_ALEN being the length of an ethernet address (which is needed by some ports).
2021-11-06LibC: Correctly evaluate addr in IN6_IS_ADDR_LOOPBACKTim Schumacher
Without putting the argument in parentheses we might not evaluate it correctly.
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