aboutgitcodebugslistschat
path: root/tcp.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2023-01-06 11:43:12 +1100
committerStefano Brivio <sbrivio@redhat.com>2023-01-23 18:54:42 +0100
commitf5a950115be5aca6d19ea183247bc36088c472c9 (patch)
tree7e0add34ee2462c58da9d7db588aac427ca8d0cf /tcp.c
parent6d011c1faab0d149bb1cbd0e922f26746e50cae6 (diff)
downloadpasst-f5a950115be5aca6d19ea183247bc36088c472c9.tar
passt-f5a950115be5aca6d19ea183247bc36088c472c9.tar.gz
passt-f5a950115be5aca6d19ea183247bc36088c472c9.tar.bz2
passt-f5a950115be5aca6d19ea183247bc36088c472c9.tar.lz
passt-f5a950115be5aca6d19ea183247bc36088c472c9.tar.xz
passt-f5a950115be5aca6d19ea183247bc36088c472c9.tar.zst
passt-f5a950115be5aca6d19ea183247bc36088c472c9.zip
util: Introduce hton*_constant() in place of #ifdefs
We have several places where we have fairly ugly #ifdefs on __BYTE_ORDER where we need network order values in a constant expression (so we can't use htons() or htonl()). We can do this more cleanly by using a single __BYTE_ORDER ifdef to define htons_constant() and htonl_constant() macros, then using those in all the other places. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp.c')
0 files changed, 0 insertions, 0 deletions