Re: divert(4) socket isn't connection oriented

2004-11-15 Thread Julian Elischer
Archie Cobbs wrote: Julian Elischer wrote: If I did it again I think I'd suggest that divert not be a part of the INET family.. It was easiest tat that time to make it so.. Archie, do you remember why we decided this? At the time, the goal was to minimize the size of the divert patch rath

Re: divert(4) socket isn't connection oriented

2004-11-15 Thread Julian Elischer
Gleb Smirnoff wrote: On Mon, Nov 15, 2004 at 08:17:41AM -0600, Archie Cobbs wrote: A> > Since it is working, it was not noticed quickly. Real problems occur when A> > a multicast packet comes on interface: it is diverted to ng_ksocket, returned A> > and div_output() sends it to ip_output(). In ip_

Re: divert(4) socket isn't connection oriented

2004-11-15 Thread Julian Elischer
Gleb Smirnoff wrote: Hi! I've spent several days digging in interaction between divert protocol and ng_ksocket. I've find some oddities in there. Look at div_output(), it tells incoming packet from outgoing by presence of sockaddr_in structure. Depending on it packet is passed either to ip_inpu

Re: divert(4) socket isn't connection oriented

2004-11-15 Thread Robert Watson
On Mon, 15 Nov 2004, Archie Cobbs wrote: > Gleb Smirnoff wrote: > > Since it is working, it was not noticed quickly. Real problems occur when > > a multicast packet comes on interface: it is diverted to ng_ksocket, > > returned > > and div_output() sends it to ip_output(). In ip_output() it is

Re: divert(4) socket isn't connection oriented

2004-11-15 Thread Gleb Smirnoff
On Mon, Nov 15, 2004 at 08:17:41AM -0600, Archie Cobbs wrote: A> > Since it is working, it was not noticed quickly. Real problems occur when A> > a multicast packet comes on interface: it is diverted to ng_ksocket, returned A> > and div_output() sends it to ip_output(). In ip_output() it is ip_ml

Re: divert(4) socket isn't connection oriented

2004-11-15 Thread Archie Cobbs
Gleb Smirnoff wrote: > Since it is working, it was not noticed quickly. Real problems occur when > a multicast packet comes on interface: it is diverted to ng_ksocket, returned > and div_output() sends it to ip_output(). In ip_output() it is > ip_mloopback()ed > and if_simloop()ed. A copy of packe

divert(4) socket isn't connection oriented

2004-11-15 Thread Gleb Smirnoff
Hi! I've spent several days digging in interaction between divert protocol and ng_ksocket. I've find some oddities in there. Look at div_output(), it tells incoming packet from outgoing by presence of sockaddr_in structure. Depending on it packet is passed either to ip_input() or ip_output(