|
From: | Doug Evans |
Subject: | Re: [PATCH v3 0/3] |
Date: | Thu, 18 Feb 2021 12:30:21 -0800 |
[...]
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.
[Prev in Thread] | Current Thread | [Next in Thread] |