summaryrefslogtreecommitdiffstats
path: root/tests/py
diff options
context:
space:
mode:
authorJeremy Sowden <jeremy@azazel.net>2021-12-11 18:55:23 +0000
committerPablo Neira Ayuso <pablo@netfilter.org>2021-12-15 22:49:50 +0100
commit1239804fa06f346b10c9b36773812d7e0fa9aa7c (patch)
tree7c2a4dc6111b367adb14e8f9acf4b97ebbcb629d /tests/py
parentb2591d4b13ab95240216a93d682b842c28b2b884 (diff)
proto: short-circuit loops over upper protocols
Each `struct proto_desc` contains a fixed-size array of higher layer protocols. Only the first few are not NULL. Therefore, we can stop iterating over the array once we reach a NULL member. Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py')
0 files changed, 0 insertions, 0 deletions