On Mon, May 13, 2002 at 09:18:17PM +0800, zjh...@so... wrote:
> hi,jim
> how are you ? Are you busy ? Wish you happy in your life !
>
> Now I have a question to discuss with you.
>
> In your code you create a UDP socket to send LDP Link Hellos .This is basic discovery mechanism .In your LDP code you make the UDP socket join a multicast group by setsockopt( ). This work well on ethernet link because the if->destaddr is a multicast group addr.
> In the case of PPP,you also join a multicast by this way;but in your code the destaddr of ppp interface is not a multicast group addr.So there is the problem .
If I remeber correctly when joining the interface to a multicast group you
can either specify the interface index or the address of the interface.
I thought I was using the correct one at the correct time, but I could be
wrong. Have you tried to run it over a PPP link?
> Does I understand your code correctly ? Perhaps you can give me your design of the code.
>
> Why your code have a destaddr in the ldp_if_linux struct. What's the use of the data element "destaddr "?
If we are using a PtP interface the dstaddr is part of what is returned,
I don't I use it in the ldp_linux porting layer.
Jim
>
> Forgive my pool English!! you can also mail me:jh...@ma... your answer!
>
> All thanks!
>
> your sincerely :
> zhangjh
>
> _______________________________________________________________
>
> Have big pipes? SourceForge.net is looking for download mirrors. We supply
> the hardware. You get the recognition. Email Us: ban...@so...
> _______________________________________________
> mpls-linux-general mailing list
> mpl...@li...
> https://lists.sourceforge.net/lists/listinfo/mpls-linux-general
--
James R. Leu
|