commit | e9a433cd8f1faffe01831a06317759d95664e056 | [log] [tgz] |
---|---|---|
author | Florian Grandel <jerico.dev@gmail.com> | Fri Aug 05 18:50:41 2022 +0200 |
committer | Fabio Baltieri <fabio.baltieri@gmail.com> | Mon Sep 05 14:35:17 2022 +0000 |
tree | 5aec0ff6e3b2954e6ac9e4a6b1ba1bb405db3c6c | |
parent | e608e92112d3396a4483d07f1ad6bfb6c4f891cb [diff] |
net: introduce NET_IP config to efficiently mark conditional code The code contained several repeated composite IPv4/v6 and UDP/TCP preprocessor statements that can be simplified by introducing a hidden NET_IP preprocessor constant that captures what probably is actually "meant" by this code. While we were on it we also used the new constant to further isolate IP-specific code from non-IP specific generics. Signed-off-by: Florian Grandel <jerico.dev@gmail.com>