nufw-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nufw-devel] Re: [PATCH] Add mark to packet from libipq


From: Henrik Nordstrom
Subject: [Nufw-devel] Re: [PATCH] Add mark to packet from libipq
Date: Thu, 16 Oct 2003 09:31:06 +0200 (CEST)

On Thu, 16 Oct 2003, Eric Leblond wrote:

> > but in reality this is not needed either as the userspace knows the
> > original mask and can a apply whatever transformations it likes 
> > when giving the new verdict mask.
> 
> How could userspace knows it ?

It got the mark with the packet in packet_msg->mark, so the userspace
application can just apply the transformation it likes when setting the
verdict.

Example using mask operation

   mark = newvalue | (packet_msg->mark & mask);

but obviously other transformations is possible as well.

Regards
Henrik





reply via email to

[Prev in Thread] Current Thread [Next in Thread]