[1769] in Kerberos-V5-bugs
Re: Kerberos 5-B4-pl3 bug report (lib/krb5/os/localaddr.c)
daemon@ATHENA.MIT.EDU (Theodore Ts'o)
Thu Jan 4 16:17:57 1996
Date: Thu, 4 Jan 1996 16:17:33 -0500
From: Theodore Ts'o <tytso@MIT.EDU>
To: Craig Leres <leres@ee.lbl.gov>
Cc: krb5-bugs@MIT.EDU, hobbit@asylum.sf.ca.us, mike@fionn.lbl.gov,
kfall@ee.lbl.gov, torek@bsdi.com, bostic@vangogh.CS.Berkeley.EDU,
smb@research.att.com
In-Reply-To: Craig Leres's message of Mon, 01 Jan 96 22:08:57 PST,
<199601020608.WAA26405@ren.ee.lbl.gov>
Date: Mon, 01 Jan 96 22:08:57 PST
From: Craig Leres <leres@ee.lbl.gov>
The routine krb5_os_localaddr() returns only one address when running
under 4.4 BSD or BSDI; if the first interface is not configured, it
return no addresses. I ran into the latter case which caused k5init to
fail with "Incorrect net address while getting initial credentials."
I imported some code from our libpcap package that works under BSDI 2
and SunOS 4. It behaves the same as the old code for most systems but
handles the variable length addresses found in newer 4 BSD based systems.
The new localaddr.c source is appended.
In general, I'd really prefer diffs as opposed to rewrites of existing
files. It makes it a lot easier for me to integrate changes! I'm not
sure which version of localaddr.c you're using, but it doesn't have the
Macintosh and Windows support, which means it's definitely older than
beta 5.
If you can send me diffs against either your original localaddr.c, or
you can make your changes to our current version of localaddr.c (which
I'll send to you under separate cover), I'd greatly appreciate it.
Thanks!!
- Ted