Subject: Re: inet6 userland and non-inet6 kernel
To: None <current-users@netbsd.org>
From: Jaromir Dolecek <jdolecek@NetBSD.org>
List: current-users
Date: 05/27/2006 18:19:09
--7JfCtLOvnd9MIVvH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, May 27, 2006 at 06:04:18PM +0200, Jukka Salmi wrote:
> Is this userland / kernel combination considered "supported"? The
> attached patch seems to fix the problem.

Patch fine, just style nit:

>  		/* get dynamic pcblist node */
> -		if (sysctlnametomib(mibname, mib, &namelen) =3D=3D -1)
> +		if (sysctlnametomib(mibname, mib, &namelen) =3D=3D -1) {
> +			if (errno =3D=3D ENOENT) return;
>  			err(1, "sysctlnametomib");
> +		}

Proper style is this:
			if (errno =3D=3D ENOENT)
				return;

Jaromir
--=20
Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.cz/
-=3D- We can walk our road together if our goals are all the same;     -=3D-
-=3D- We can run alone and free if we pursue a different aim.          -=3D-

--7JfCtLOvnd9MIVvH
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: gRefc8nYzKN+LtMagm6GjIP4khKLbtNi

iQCVAwUBRHh7/LZjOQfIPRaZAQHLeAP9FpU1UebzpW5V5v39R6yJ1zLh/K8SJJpq
7y9Y2MlMbUINAfVGXgzNjrvG/w3lru3pkXh1bi/688FkSwxXOC7DYwrger0vFz7D
O8kHJMXdL9330PEAMC1aTye6r79cfeGWpUyOUD3FCIRA+YaB8fKXWgD7YoAhVJni
jv4H4Klejx0=
=SdAr
-----END PGP SIGNATURE-----

--7JfCtLOvnd9MIVvH--