diff options
author | Patrick Rohr <prohr@google.com> | 2022-02-11 13:14:45 +0100 |
---|---|---|
committer | Patrick Rohr <prohr@google.com> | 2022-02-11 13:24:51 +0100 |
commit | f0f690981efe363e2fa764a22741bd9500f82190 (patch) | |
tree | 601688613dc0eb62cc11a93b364486d6eb1a9c0f | |
parent | b5a4dc8a7c775ce689e9c2b6b7dec0c4cb35da19 (diff) | |
download | net-f0f690981efe363e2fa764a22741bd9500f82190.tar.gz |
Fix wrong nla_type for matchall
TCA_U32_ACT was missed when converting from the u32 filter to matchall.
Interestingly, cls_matchall does not seem to validate this type as the
kernel happily accepted this configuration (which absolutely should not
happen as TCA_U32_ACT is greater than __TCA_MATCHALL_MAX).
Bug: 218840346
Test: atest CtsNetTestCases:RateLimitTest
Change-Id: Ia24683cbd5fbd10084163db6e6a4415ec03f6f3f
-rw-r--r-- | common/native/tcutils/tcutils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/native/tcutils/tcutils.cpp b/common/native/tcutils/tcutils.cpp index 0e17f67c..144a4c94 100644 --- a/common/native/tcutils/tcutils.cpp +++ b/common/native/tcutils/tcutils.cpp @@ -196,7 +196,7 @@ public: .acts = { .attr = { .nla_len = sizeof(mRequest.opt.acts), - .nla_type = TCA_U32_ACT, + .nla_type = TCA_MATCHALL_ACT, }, .act1 = { .attr = { |