Re: divert(4) socket isn't connection oriented
From: Archie Cobbs (archie_at_dellroad.org)
Date: 11/15/04
- Previous message: FreeBSD bugmaster: "Current problem reports assigned to you"
- In reply to: Gleb Smirnoff: "divert(4) socket isn't connection oriented"
- Next in thread: Gleb Smirnoff: "Re: divert(4) socket isn't connection oriented"
- Reply: Gleb Smirnoff: "Re: divert(4) socket isn't connection oriented"
- Reply: Robert Watson: "Re: divert(4) socket isn't connection oriented"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: Gleb Smirnoff <glebius@freebsd.org> Date: Mon, 15 Nov 2004 08:17:41 -0600 (CST)
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 packet enters divert socket, duplicated... a
> forever loop and total freeze.
Your fix makes sense, but is it more of a workaround than a proper fix?
It seems like the real bug is that divert is promising to write the packet
as "outgoing" yet the packet loops back as "incoming". Maybe it would make
more sense to attach a tag to the packet that divert would recognize and
know to ignore the extra incoming packet.
Also, does the same thing happen with broadcast packets?
-Archie
__________________________________________________________________________
Archie Cobbs * CTO, Awarix * http://www.awarix.com
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
- Previous message: FreeBSD bugmaster: "Current problem reports assigned to you"
- In reply to: Gleb Smirnoff: "divert(4) socket isn't connection oriented"
- Next in thread: Gleb Smirnoff: "Re: divert(4) socket isn't connection oriented"
- Reply: Gleb Smirnoff: "Re: divert(4) socket isn't connection oriented"
- Reply: Robert Watson: "Re: divert(4) socket isn't connection oriented"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|