diff options
author | Jeremy Sowden <jeremy@azazel.net> | 2021-12-11 18:55:23 +0000 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-12-15 22:49:50 +0100 |
commit | 1239804fa06f346b10c9b36773812d7e0fa9aa7c (patch) | |
tree | 7c2a4dc6111b367adb14e8f9acf4b97ebbcb629d /doc/ispell_nft | |
parent | b2591d4b13ab95240216a93d682b842c28b2b884 (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 'doc/ispell_nft')
0 files changed, 0 insertions, 0 deletions