patchpanel: enable conntrack helpers on ARC start.
PPTP clients use GRE protocol to carry packets to the server. ARC
provides a PPTP client as legacy VPN, thus requires GRE to be
transmitted correctly through the NAT which is not possible without
conntrack helpers. This CL enables conntrack helpers when ARC is started
and disable them on ARC stop.
BUG=b:172214190
TEST="configure a PPTP VPN in ARC;
ensure it connects successfully."
Change-Id: I3ccd41fb7eaa55beac73f86529a67aaa91a87861
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/2912093
Tested-by: Damien Dejean <damiendejean@google.com>
Reviewed-by: Hugo Benichi <hugobenichi@google.com>
Reviewed-by: Garrick Evans <garrick@chromium.org>
Commit-Queue: Damien Dejean <damiendejean@google.com>
(cherry picked from commit 40e1598dbb523efcfd6ddfcd59a90570f05ab9f0)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/2919689
diff --git a/patchpanel/mock_datapath.h b/patchpanel/mock_datapath.h
index aecda79..45432b0 100644
--- a/patchpanel/mock_datapath.h
+++ b/patchpanel/mock_datapath.h
@@ -73,6 +73,7 @@
MOCK_METHOD2(RemoveIPv6Forwarding,
void(const std::string& ifname1, const std::string& ifname2));
MOCK_METHOD3(AddIPv4Route, bool(uint32_t gw, uint32_t dst, uint32_t netmask));
+ MOCK_METHOD1(SetConntrackHelpers, bool(const bool enable_helpers));
};
} // namespace patchpanel