serenity/Kernel/Net
Lenny Maiorani bdf3baa8ac MACAddress: AK::Array as member variable instead of C-array
Problem:
- C-style arrays do not automatically provide bounds checking and are
  less type safe overall.
- `__builtin_memcmp` is not a constant expression in the current gcc.

Solution:
- Change private m_data to be AK::Array.
- Eliminate constructor from C-style array.
- Change users of the C-style array constructor to use the default
  constructor.
- Change `operator==()` to be a hand-written comparison loop and let
  the optimizer figure out to use `memcmp`.
2020-11-20 21:18:14 +01:00
..
ARP.h AK: Add Endian.h header to replace NetworkOrdered.h. 2020-08-25 16:22:14 +02:00
E1000NetworkAdapter.cpp MACAddress: AK::Array as member variable instead of C-array 2020-11-20 21:18:14 +01:00
E1000NetworkAdapter.h Kernel: Use AK::Span a bunch in the network adapter code 2020-07-28 20:19:22 +02:00
EthernetFrameHeader.h AK: Add Endian.h header to replace NetworkOrdered.h. 2020-08-25 16:22:14 +02:00
EtherType.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
ICMP.h Meta+Kernel: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
IPv4.h AK: Add Endian.h header to replace NetworkOrdered.h. 2020-08-25 16:22:14 +02:00
IPv4Socket.cpp IPv4: Include IP headers when receiving from a raw socket 2020-10-31 13:56:21 +01:00
IPv4Socket.h Kernel: Plumb packet receive timestamp from NetworkAdapter to Socket::recvfrom 2020-09-17 17:23:01 +02:00
IPv4SocketTuple.h SinglyLinkedList: Remove unused includes 2020-10-08 09:54:41 +02:00
LocalSocket.cpp Kernel: Plumb packet receive timestamp from NetworkAdapter to Socket::recvfrom 2020-09-17 17:23:01 +02:00
LocalSocket.h Kernel: Plumb packet receive timestamp from NetworkAdapter to Socket::recvfrom 2020-09-17 17:23:01 +02:00
LoopbackAdapter.cpp Kernel: Switch singletons to use new Singleton class 2020-08-25 09:48:48 +02:00
LoopbackAdapter.h Kernel: Switch singletons to use new Singleton class 2020-08-25 09:48:48 +02:00
NetworkAdapter.cpp Meta+Kernel: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
NetworkAdapter.h Kernel: Plumb packet receive timestamp from NetworkAdapter to Socket::recvfrom 2020-09-17 17:23:01 +02:00
NetworkTask.cpp IPv4: Take the socket lock more (fixes TCP connection to localhost) 2020-10-21 20:51:02 +02:00
NetworkTask.h Kernel: Move NetworkTask startup into NetworkTask::spawn() 2020-04-09 13:31:05 +02:00
Routing.cpp Kernel: Switch singletons to use new Singleton class 2020-08-25 09:48:48 +02:00
Routing.h Kernel: Add the SO_BINDTODEVICE socket option 2020-04-05 09:50:48 +02:00
RTL8139NetworkAdapter.cpp MACAddress: AK::Array as member variable instead of C-array 2020-11-20 21:18:14 +01:00
RTL8139NetworkAdapter.h Kernel: Use AK::Span a bunch in the network adapter code 2020-07-28 20:19:22 +02:00
Socket.cpp IPv4: Take the socket lock more (fixes TCP connection to localhost) 2020-10-21 20:51:02 +02:00
Socket.h Kernel+LibC+UserspaceEmulator: Add SO_TIMESTAMP, and cmsg definitions 2020-09-17 17:23:01 +02:00
TCP.h TCP: Remove unnecessarily defined constructor and destructor 2020-10-08 10:01:10 +02:00
TCPSocket.cpp AK: Make RefPtr, NonnullRefPtr, WeakPtr thread safe 2020-11-10 19:11:52 +01:00
TCPSocket.h AK: Make RefPtr, NonnullRefPtr, WeakPtr thread safe 2020-11-10 19:11:52 +01:00
UDP.h Meta+Kernel: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
UDPSocket.cpp Kernel: Make copy_to/from_user safe and remove unnecessary checks 2020-09-13 21:19:15 +02:00
UDPSocket.h Kernel: Make copy_to/from_user safe and remove unnecessary checks 2020-09-13 21:19:15 +02:00