mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-22 17:31:58 -05:00
ac44ec5ebc
Since we take a socket address with an address type, this allows us to support setting an IPv6 address using an IPv4 socket without a particularly hacky API. This deviates from Linux's behavior (see https://www.man7.org/linux/man-pages/man7/netdevice.7.html ) where AF_INET6 uses a completely different control structure, but this doesn't seem necessary. This requires changing the sockaddr size to fit sockaddr_in6, as the network ioctl's are the only place where sockaddr is used with a fixed size (and not with variable size data like in POSIX APIs, which would support sockaddr_in6 without changes). ifconfig takes a new parameter for setting the IPv6 address of an interface. The IPv4 address short option '-i' is removed, as it only yields confusion (which IP version is the default? and usually such options are called -4 or -6, if they exist) and isn't necessary thanks to the brief long option name. This commit's main purpose for now is to allow participating in IPv6 NDP and pings without requiring SLAC. Co-authored-by: Dominique Liberda <ja@sdomi.pl> |
||
---|---|---|
.. | ||
FileSystem | ||
POSIX | ||
archctl_numbers.h | ||
BeepInstruction.h | ||
DeviceEvent.h | ||
DeviceFileTypes.h | ||
InodeWatcherEvent.h | ||
InodeWatcherFlags.h | ||
Ioctl.h | ||
kcov.h | ||
KeyCode.h | ||
MajorNumberAllocation.h | ||
MemoryLayout.h | ||
MousePacket.h | ||
prctl_numbers.h | ||
serenity_limits.h | ||
Syscall.h | ||
SyscallString.h | ||
TimePage.h | ||
ttydefaults.h | ||
ttydefaultschars.h | ||
Unshare.h | ||
Unveil.h | ||
VirGL.h | ||
VirtualMemoryAnnotations.h |