Better interface detection? (was Re: krb5kdc crashes)
Tom Yu
tlyu at MIT.EDU
Wed Apr 10 09:35:38 EDT 2002
>>>>> "cg2v" == Chaskiel M Grundman <cg2v at andrew.cmu.edu> writes:
cg2v> He's not talking about msg_control/msg_accrights, but msg_name,
cg2v> which irix 6.5 claims to support:
cg2v> "
cg2v> struct msghdr {
cg2v> caddr_t msg_name; /* optional address */
cg2v> int msg_namelen; /* size of address */
[...]
This is a strategy I've heard before (perhaps from Marc Horowitz?) ;
do a recvmsg() with MSG_PEEK to get the destination address, and then
do a recvfrom() to get the source address. We may actually already be
doing it elsewhere in our code.
---Tom
More information about the Kerberos
mailing list