At 09:19 AM 14/09/2004, David S. Miller wrote:
quoted
As you can see, I am applying it unconditionally when fits. For most
cases, this will be OK.
There can be situations when this is not wanted (for example, when
debugging something), so in general, tuning knob will be useful, but
I just don't know where to add it, maybe tunnel->parms.i_flags ...
I don't think adding such a knob is necessary, but yes i_flags
would be the place to do it.
I will apply your patch with the "if(1)" simply removed.
the logic is correct, but it may make sense to call the appropriate
netfilter hook again with the "unwrapped" GRE packet, as otherwise
packets-inside-GRE represent a possible security hole where one can inject
packets externally and bypass firewall rules.
cheers,
lincoln.