Máté Eckl wrote:
> On Mon, May 28, 2018 at 05:43:18PM +0200, Florian Westphal wrote:
> > Máté Eckl wrote:
> > > > +const struct socket_template socket_templates[] = {
> > > > + [NFT_SOCKET_TRANSPARENT]= {.token = "transparent",
> > > > +
On Mon, May 28, 2018 at 05:43:18PM +0200, Florian Westphal wrote:
> Máté Eckl wrote:
> > > +const struct socket_template socket_templates[] = {
> > > + [NFT_SOCKET_TRANSPARENT]= {.token = "transparent",
> > > +.dtype = _type,
> > > +
Máté Eckl wrote:
> > +const struct socket_template socket_templates[] = {
> > + [NFT_SOCKET_TRANSPARENT]= {.token = "transparent",
> > + .dtype = _type,
> > + .len = 1 * BITS_PER_BYTE,
>
> I
> +const struct socket_template socket_templates[] = {
> + [NFT_SOCKET_TRANSPARENT]= {.token = "transparent",
> +.dtype = _type,
> +.len = 1 * BITS_PER_BYTE,
I wanted to use len = 1 here to only make 0 and
For now it can only match sockets with IP(V6)_TRANSPARENT socket option
set.
Example:
table inet sockin {
chain sockchain {
type filter hook prerouting priority -150; policy accept;
socket transparent 1 mark set 0x0001 nftrace set 1 counter
packets 0