diff options
| author | Sam Hartman <hartmans@mit.edu> | 1995-07-18 22:00:47 +0000 |
|---|---|---|
| committer | Sam Hartman <hartmans@mit.edu> | 1995-07-18 22:00:47 +0000 |
| commit | d4091516be57fb8f76f0880c808a8281f06f1869 (patch) | |
| tree | 81d48e5782c2cae8c7bdd2d82bdd6bf29b7534cd /src/include/bstring.h | |
| parent | 1af820e9d3c8d1d9fb315fd0d2a1b9bf83d42925 (diff) | |
| download | krb5-d4091516be57fb8f76f0880c808a8281f06f1869.tar.gz krb5-d4091516be57fb8f76f0880c808a8281f06f1869.tar.xz krb5-d4091516be57fb8f76f0880c808a8281f06f1869.zip | |
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
Diffstat (limited to 'src/include/bstring.h')
0 files changed, 0 insertions, 0 deletions
