aboutgitcodebugslistschat
path: root/tcp_conn.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2023-08-03 17:19:41 +1000
committerStefano Brivio <sbrivio@redhat.com>2023-08-04 01:24:52 +0200
commiteff3bcb24547e671e63df9b70157c3ff9bb9f95a (patch)
treea5525772899f39b4fe48644b567a5bca937231fa /tcp_conn.h
parente96182e9c28197a8f868df5d2a9975bc51a090e9 (diff)
downloadpasst-eff3bcb24547e671e63df9b70157c3ff9bb9f95a.tar
passt-eff3bcb24547e671e63df9b70157c3ff9bb9f95a.tar.gz
passt-eff3bcb24547e671e63df9b70157c3ff9bb9f95a.tar.bz2
passt-eff3bcb24547e671e63df9b70157c3ff9bb9f95a.tar.lz
passt-eff3bcb24547e671e63df9b70157c3ff9bb9f95a.tar.xz
passt-eff3bcb24547e671e63df9b70157c3ff9bb9f95a.tar.zst
passt-eff3bcb24547e671e63df9b70157c3ff9bb9f95a.zip
netlink: Split nl_addr() into separate operation functions
nl_addr() can perform three quite different operations based on the 'op' parameter, each of which uses a different subset of the parameters. Split them up into a function for each operation. This does use more lines of code, but the overlap wasn't that great, and the separated logic is much easier to follow. It's also clearer in the callers what we expect the netlink operations to do, and what information it uses. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> [sbrivio: Minor formatting fixes in pasta_ns_conf()] Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp_conn.h')
0 files changed, 0 insertions, 0 deletions