[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with mx lookups on DEC Alpha




> I just jumped from 2.99.38 to .42 and ran into problems -- mx lookups
> in smtp stopped working.  The problem occurs in getmxrr(), when bumping cp
> past the class and ttl values:
> 
> 	  cp += sizeof(u_short) + sizeof(u_long);
> 
> u_long on an Alpha is 64-bits, but we're bumping past a 32-bit value.  The
> problem cropped up while moving getmxrr() from router/libdb/bind.c.  bind.c 
> redefined u_long to u_int for Alpha.

	Yes, it is somewhat painfull..  I decided finally
	to use numeric constants 2 and 4 instead of sizeof()
	anything..

> I chose a different route, but there's got to be a better way (I don't
> know how widely available INT32SZ is).

> Applicable section of diff follows.
> 
> -timmo
> 
> Tim DiLauro                          Milton S. Eisenhower Library
> Library Systems Jack                 Johns Hopkins University
> (410) 516-5263                       3400 N. Charles Street
> timmo@jhu.edu                        Baltimore, MD  21218

	/Matti Aarnio <mea@nic.funet.fi>