Re: Binding sockets to devices in FreeBSD

2004-02-19 Thread Andreas Tønnesen
Thanks for your replies mr. Kumar and mr, Jardin. I've been informed by Bruce Simpson that two interfaces actually cannot be configured with the same broadcastaddress in FreeBSD. Bruce M Simpson wrote: > > Can't currently do this due to limitations in the routing > code (that is, can't have more

Re: Binding sockets to devices in FreeBSD

2004-02-19 Thread Naveen Kumar
Well it doesn't look like it would work for IPV4. If you look at the following code there is no place to specify the interface index at packet level in send as in IPV6. If the broadcast addresses on the different interfaces were different then there is no problem the sendto would work but if broad

Re: Binding sockets to devices in FreeBSD

2004-02-19 Thread Vincent Jardin
Hi, You need to use sendto or sendmsg. For example, with IPv6, Quagga is sending IPv6 multicast packet on a per interface basis. The interface's ifindex is provided into the pktinfo structure. int ripng_send_packet (caddr_t buf, int bufsize, struct sockaddr_in6 *to, struct i