Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

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


-----BEGIN PGP SIGNED MESSAGE-----
> On 26-Nov-98 Richard Guy Briggs wrote:

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

Understood. The parts that I am concerned about are *print?() statements that will want %ld or %Ld to differentiate between 'long' and 'long long' on x86. From the 'man 3 printf' I gather that <no options> imply 'int'

Do you need help?X

> struct sk_buff *

Perhaps these should have used 'u_int iv[2]' or even '__u64 iv[1]'.

> Hope this helps.

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-----
Version: 2.6.3i
Charset: noconv

iQCVAwUBNl2d8d+sBuIhFagtAQF8oQQAkBZ4yvTOysqNtdnp6mR0PkfmdrSNabhk CMhOciQ7aNzGYSCyROjdPSCnCQMUOAj+cRHWerfSy9f8VHaweP/HB3uFLofiKQbQ wg3XHa2ZQrGxvwsLL6nGNNIBhg0QyzMANej0ib3QUqlEs+L8wbBQOD+ELpY0nrDc Vv4TQZ58OrE=
=9q1Y
-----END PGP SIGNATURE----- Received on Thu Nov 26 14:00:58 1998

Do you need more help?X

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 12:59:08 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library