|
|||||||||||
|
Re: linux-ipsec: Building freeSwan on DEC Alpha pt 3 :-)
From: Richard Guy Briggs <rgb(at)conscoop.ottawa.on.ca>
Date: Thu Nov 26 1998 - 13:29:07 EST
We probably knew this, but on an x86, I get: Sizeof(char) = 1 Sizeof(short) = 2 Sizeof(int) = 4 Sizeof(long) = 4 Sizeof(long long) = 8 Given all this, I would suggest changing all longs to ints. However, I have seen some embedded 68k systems that use Sizeof(char) = 4. > > I will go through the kernel code and change things manually. Stuff that
They could be changed to u_int or to __u32. I would prefer the former, but the latter would be more certain. 16-bit compilers thought Sizeof(int) = 2, but I really doubt we will ever see one of those... > BUT I'm fairly sure that code like this from klips/src/ipsec_esp3des.c will
Perhaps these should have used 'u_int iv[2]' or even '__u64 iv[1]'. Yup. > E-Mail: Peter Onion <ponion@srd.bt.co.uk>
slainte mhath, RGB
Richard Guy Briggs -- PGP key available Auto-Free Ottawa! Canada rgb at conscoop dot ottawa dot on dot ca < http://flora.org/afo/><http://www.conscoop.ottawa.on.ca/rgb/> FreeS/WAN:<http://flora.org/freeswan> Please send all spam to root(at)127.0.0.1 Marillion:<http://www.marillion.co.uk> -----BEGIN PGP SIGNATURE-----
iQCVAwUBNl2d8d+sBuIhFagtAQF8oQQAkBZ4yvTOysqNtdnp6mR0PkfmdrSNabhk
CMhOciQ7aNzGYSCyROjdPSCnCQMUOAj+cRHWerfSy9f8VHaweP/HB3uFLofiKQbQ
wg3XHa2ZQrGxvwsLL6nGNNIBhg0QyzMANej0ib3QUqlEs+L8wbBQOD+ELpY0nrDc
Vv4TQZ58OrE=
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 12:59:08 EDT |
||||||||||
|
|||||||||||