Bsd 4.4 has a field sa_len in struct sockaddr which is the
authorSam Hartman <hartmans@mit.edu>
Tue, 18 Jul 1995 22:00:47 +0000 (22:00 +0000)
committerSam Hartman <hartmans@mit.edu>
Tue, 18 Jul 1995 22:00:47 +0000 (22:00 +0000)
commitd4091516be57fb8f76f0880c808a8281f06f1869
tree81d48e5782c2cae8c7bdd2d82bdd6bf29b7534cd
parent1af820e9d3c8d1d9fb315fd0d2a1b9bf83d42925
Bsd 4.4 has a field sa_len in struct sockaddr which is the
length of the struct.  Often, sizeof(struct sockaddr) is not equal to
sockaddr.sa_len.  Unfortunately, this effects the side of structures
containing sockaddrs, like struct ifreq.  The size of an ifreq is,
under BSD 4.4, max(sizeof(struct ifreq),
sizeof(ifreq.ifr_name)+ifreq.ifr_caddr.sa_len).  To get
krb5_xcrypto_os_localaddr to work under NetBSD and other 4.4-based
systems, the following changes were made:

* aclocal.m4:  Ad KRB5_SOCKADDR_SA_LEN to determine if there appears
to be a sa_len element of struct sockaddr.

* lib/crypto/os/configure.in: use this test
* lib/crypto/os/localaddr.c: Deal with size changes if appropriate.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6310 dc483132-0cff-0310-8789-dd5450dbe970
src/ChangeLog
src/aclocal.m4
src/lib/crypto/os/ChangeLog
src/lib/crypto/os/configure.in
src/lib/crypto/os/localaddr.c