On Thu, Feb 11, 2021 at 1:12 AM Daniel P. Berrangé <berra...@redhat.com> wrote:
> [...] > > I think the key useful part to keep common impl for is the handling > of the [] brackets for IPv6 raw addrs. I'd suggest we try to pull the > "address:port" part out into a new inet_addr_parse() helper that can be > called from inet_pase and from slirp. > > inet_parse() can split on the first ",", and then call inet_addr_parse > on the first segment. > > slirp can split on "-", and call inet_addr_parse with both segments. > v4 here: https://lists.nongnu.org/archive/html/qemu-devel/2021-02/msg06011.html