diff options
author | Xiao Liang <shaw.leon@gmail.com> | 2021-08-21 00:12:37 +0800 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-08-23 16:34:52 +0200 |
commit | bd6ba14bebd27181ee18cfc3aebb21a78d96d672 (patch) | |
tree | 5e88ef776bfc3e6f6b418239d51b218689f76417 /tests/json_echo/run-test.py | |
parent | ffde58ab86507755ba7049a00dde5c4df6f26fbe (diff) |
src: Optimize prefix match only if is big-endian
A prefix of integer type is big-endian in nature. Prefix match can be
optimized to truncated 'cmp' only if it is big-endian.
[ Add one tests/py for this use-case --pablo ]
Fixes: 25338cdb6c77 ("src: Optimize prefix matches on byte-boundaries")
Signed-off-by: Xiao Liang <shaw.leon@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/json_echo/run-test.py')
0 files changed, 0 insertions, 0 deletions