[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(usagi-users 04086) Re: mip6d portability issues
- To: usagi-users@xxxxxxxxxxxxxxxxx
- Subject: (usagi-users 04086) Re: mip6d portability issues
- From: Romain KUNTZ <kuntz@xxxxxxxxxxxxxxxxxx>
- Date: Sat, 15 Nov 2008 21:40:48 +0100
- In-reply-to: <491EF4A6.2020601@xxxxxxxxx>
- References: <491397C4.7090808@xxxxxxxxx> <479D68F2-42D2-4EEC-9C79-D5EE054BA47B@xxxxxxxxxxxxxxxxxx> <491EF4A6.2020601@xxxxxxxxx>
- Reply-to: usagi-users@xxxxxxxxxxxxxxxxx
Hi Jozsef,
On 2008/11/15, at 17:11, Jozsef Kovacs wrote:
I simply replaced the sizeof part to a predefined size. It's ugly,
but I didn't want to modify the headers as they are part of *libc
and not mip6d. None of the structs in netinet/* are packed. I think
the correct fix would be to stop checking data taken from the
network against struct sizes assuming they will have the correct size.
We unfortunately can't assume they would have the correct size as
forged packet could be used by malicious people against mip6d.
Regards,
romain