Re: question about socket with link local addr

Robert Elz <[email protected]>
Newsgroups gmane.ietf.zeroconf
Message-ID <[email protected]>
    Date:        Fri, 11 Jul 2003 17:01:56 -0700
    From:        Mark Yang <[email protected]>
    Message-ID:  <[email protected]>

  | I created a socket, try to connect to a linklocal addr say 
  | "169.254.80.220". now I find i am using IP "10.1.1.157" to connect 
  | obviously this is not what I want.

Why not?   This should work just fine.

  |     Question is how do I create a socket on mac  such that the packet i 
  | send out shows my IP  LL addr?

I can't speak to what the mac implementation does, but what makes you
believe that your node actually has a LL addr?   Why do you believe
that you need one?

The current plan for LL addresses is that they should work exactly as
your are describing - you get one only if you don't get some other
kind of address, and never need one (unless no other address is available).

kre
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.