demikernel
demikernel copied to clipboard
[inetstack] Rely on `SocketAddr` `enum` Rather Than `SocketAddrV4` `struct`
Description
Catnip uses the ~~Ipv4Endpoint
~~ SocketAddrV4
structure to refer to remote and local endpoints. While this is fine when supporting IPv4 addresses only, once we add support to IPv6 it is make the stack a mess. Therefore, we should change the stack so as to refer to local and remote endpoints using a more generic type, like ~~IpEndpoint
~~SocketAddr
.
Maybe something like std::net::SocketAddr from the standard library?
Maybe something like std::net::SocketAddr from the standard library?
Yes, our Ipv4Endpoint is broken. See Issue demikernel/inetstack#172.
Since we removed the Ipv4Endpoint struct and replaced it with SocketAddrV4 (in PR demikernel/inetstack#177), I updated the title and description to reflect this.
@anandbonde are we done with this?