Date: Mon, 21 Apr 2008 07:20:04 GMT From: "Stephen E. Halpin" <seh-k3t3z4@mail.quadrizen.com> To: freebsd-ipfw@FreeBSD.org Subject: Re: bin/104921: [patch] ipfw(8) sometimes treats ipv6 input as ipv4 (another variation on PR 91245) Message-ID: <200804210720.m3L7K4Zd078296@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/104921; it has been noted by GNATS.
From: "Stephen E. Halpin" <seh-k3t3z4@mail.quadrizen.com>
To: bug-followup@FreeBSD.org,
seh-k3t3z4@mail.quadrizen.com
Cc:
Subject: Re: bin/104921: [patch] ipfw(8) sometimes treats ipv6 input as ipv4 (another variation on PR 91245)
Date: Mon, 21 Apr 2008 03:14:22 -0400
(Note updated e-mail address...)
The same problem exists in FreeBSD 6.3, and essentially the same set
of diffs work:
*** ipfw2.c.orig Sun Oct 14 04:58:01 2007
--- ipfw2.c Sun Jan 20 12:35:46 2008
***************
*** 3816,3822 ****
if ((host = strdup(av)) == NULL)
return NULL;
! if ((ch = strrchr(host, '/')) != NULL)
*ch = '\0';
if (proto == IPPROTO_IPV6 || strcmp(av, "me6") == 0 ||
--- 3816,3822 ----
if ((host = strdup(av)) == NULL)
return NULL;
! if ((ch = strpbrk(host, "/,")) != NULL)
*ch = '\0';
if (proto == IPPROTO_IPV6 || strcmp(av, "me6") == 0 ||
***************
*** 3842,3848 ****
if ((host = strdup(av)) == NULL)
return NULL;
! if ((ch = strrchr(host, '/')) != NULL)
*ch = '\0';
if (proto == IPPROTO_IPV6 || strcmp(av, "me6") == 0 ||
--- 3842,3848 ----
if ((host = strdup(av)) == NULL)
return NULL;
! if ((ch = strpbrk(host, "/,")) != NULL)
*ch = '\0';
if (proto == IPPROTO_IPV6 || strcmp(av, "me6") == 0 ||
-Steve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804210720.m3L7K4Zd078296>
