[Drbd-dev] [PATCH master] Fix bug in split_address() when handling IPv6 addresses

Manuel Franceschini livewire at google.com
Tue Aug 31 15:18:17 CEST 2010


Hi all,

On Wed, Jul 21, 2010 at 4:55 PM, Manuel Franceschini
<livewire at google.com> wrote:
>
> Signed-off-by: Manuel Franceschini <livewire at google.com>
> ---
>
> Hi all,
>
> this small patch fixes a bug when using "drbdsetup /dev/drbdX net" with
> IPv6 addresses without specifying a port number as in
> "ipv6:2001:db8::1".
>
> This patch relies, however, on a slighlty different syntax:
>
> $ drbdsetup /dev/drbdX net ipv6:[2001:db8::1] ipv6:[2001:db8::2]:7799 A
>
> The introduction of brackets is necessary, since there is no way to
> reliably separate the IPv6 address with the port number being optional.
>
> I'm happy for any feedback/suggestions.
>
>
> Cheers, Manuel.
>
>
>  user/drbdsetup.c |   31 +++++++++++++++++++++++++------
>  1 files changed, 25 insertions(+), 6 deletions(-)

Any feedback/update on this patch?


Thanks, Manuel.


More information about the drbd-dev mailing list