netdev
[Top] [All Lists]

Re: sin6_scope_id and 2.2.x kernel

To: misiek@xxxxxxxxxx
Subject: Re: sin6_scope_id and 2.2.x kernel
From: Hideaki YOSHIFUJI (吉藤英明) <yoshfuji@xxxxxxxxxxxxxxxxx>
Date: Sat, 18 Nov 2000 08:22:11 +0900
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20001117181502.B25253@pld.ORG.PL>
References: <20001117181502.B25253@pld.ORG.PL>
Sender: owner-netdev@xxxxxxxxxxx
In article <20001117181502.B25253@xxxxxxxxxx> (at Fri, 17 Nov 2000 18:15:02 
+0100), Arkadiusz Miskiewicz <misiek@xxxxxxxxxx> says:

> in glibc 2.2 functions (ie. getnameinfo()) check for sizeof(struct 
> sockaddr_in6)
> passed from 2.2 kernel against sizeof(struct sockaddr_in6+with sin6_scope_id 
> field)
> and for 2.2.x kernels these functions will fail, so maybe such patch
> should be applied to 2.2.x kernel tree. Just add sin6_scope_id field
> to struct sockaddr_in6 (as in 2.4 kernel) but don't use it.

I don't think this is a good idea.

If you introduce sin6_scope_id into linux-2.2.x,
binaries on glibc-2.1 systems (including binaries
build on glibc-2.1 systems) encounter many random problem.

If you introduce sin6_scope_id into linux-2.2.x, sin6_scope_id
should take effect as of linux-2.4.x (usagi linux-2.2.x supports it)
to avoid any confusion.

Use linux-2.4.x (, or usagi linux-2.2.x).

-- 
Hideaki YOSHIFUJI @ USAGI Project  <yoshfuji@xxxxxxxxxxxxxx>
PGP5i FP: F731 6599 5EB2 BBA7 1515  1323 1806 A96F 5700 6B25 

<Prev in Thread] Current Thread [Next in Thread>