HEADSUP! netgraph Metadata changing.
Gleb Smirnoff
glebius at cell.sick.ru
Mon Jun 7 07:44:16 GMT 2004
On Mon, Jun 07, 2004 at 10:38:12AM +0300, Ruslan Ermilov wrote:
R> On Mon, Jun 07, 2004 at 11:17:01AM +0400, Gleb Smirnoff wrote:
R> > On Sun, Jun 06, 2004 at 06:35:51PM -0700, Julian Elischer wrote:
R> > J> In addition the ng_ksocket node adds info into metadata and I suspect
R> > J> there are people using that.
R> >
R> > Since ng_ksocket tags packets for itself only, we can safely change it.
R> >
R> I use this feature in one proprietary module (need to send/recevive
R> UDP datagrams to/from different destinations).
Does your module reads/writes meta? Or just forwards the meta? If it just
forwards meta, does it allocate new mbuf? If it does, then you should copy
tag from old mbuf to a new one. If it does not allocate new mbuf, than
our ng_ksocket change won't break your module.
--
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE
More information about the freebsd-net
mailing list