[19011] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

RE: binding to a specific local interface?

daemon@ATHENA.MIT.EDU (Bin Lu)
Fri Sep 5 13:45:05 2014

From: Bin Lu <blu@paloaltonetworks.com>
To: Benjamin Kaduk <kaduk@mit.edu>
Date: Fri, 5 Sep 2014 17:44:45 +0000
Message-ID: <841A051D8BD4144AA7B5AC63D97F9F0517932363@sjccmbxpw01p.paloaltonetworks.local>
In-Reply-To: <alpine.GSO.1.10.1409051320060.21571@multics.mit.edu>
Content-Language: en-US
MIME-Version: 1.0
Cc: "krbdev@mit.edu" <krbdev@mit.edu>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu

Yeah, I just figured that out myself. It's on Linux.

Thanks,
-binlu

-----Original Message-----
From: Benjamin Kaduk [mailto:kaduk@MIT.EDU] 
Sent: Friday, September 05, 2014 10:34 AM
To: Bin Lu
Cc: krbdev@mit.edu
Subject: Re: binding to a specific local interface?

On Thu, 4 Sep 2014, Bin Lu wrote:

> Hi,
>
> I am trying to bind the socket to a specific local network interface
> (address) when it make socket connection to the KDC. Does the library 
> have a mechanism to do that? I briefly scanned through the code but it 
> does not seem to have any. If not, then I try to add a new API to pass 
> in the local binding address and do the binding when socket connection 
> is established. My problem is that the newly added API (defined in 
> krb5/krb5.h, and implemented in one of the source files) is always 
> complained as undefined symbol at link time, even though 'nm' output 
> shows it is defined ('t').  Is there any hidden trick that prevents a 
> new API to be added in this lib?

What platform are you on?  Some platforms enforce export symbol lists, such as the one found at src/lib/krb5/libkrb5.exports.  In order to make the symbol visible to consumers of the library, it would need to be added to the export symbol list.

-Ben

_______________________________________________
krbdev mailing list             krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev

home help back first fref pref prev next nref lref last post