defaults.c: fix ipv6 flow offloading master
authorFelix Fietkau <nbd@nbd.name>
Fri, 18 Oct 2024 06:00:20 +0000 (08:00 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 18 Oct 2024 06:00:26 +0000 (08:00 +0200)
commit1aef9791a21e3d15d4357060f09a7bb9ed3d6e4e
treea6612c6c674bbfdd82a75d3590cfd57c939da88e
parentbf1d5fdf623473419f8f738fc9071fee84cb13e5
defaults.c: fix ipv6 flow offloading

The xt_FLOWOFFLOAD target expects that par->thoff points to the beginning
of the TCP header. For IPv4 that is always the case. However, on IPv6, the
field is only initialized, if a protocol match was performed.
Simply matching any protocol (protocol = 0) is enough to trigger the thoff
initialization, so add it to the emitted rule.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
defaults.c