aboutgitcodebugslistschat
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-11-17 16:58:55 +1100
committerStefano Brivio <sbrivio@redhat.com>2022-11-25 01:35:32 +0100
commitca69c3f1964846b27f8333cd06f7594289cbf53b (patch)
treeea289d1244c82646134ee280b650b7dc73a509d2 /Makefile
parentb65d603e23d7f05c4974dcf22f3244d2ae987482 (diff)
downloadpasst-ca69c3f1964846b27f8333cd06f7594289cbf53b.tar
passt-ca69c3f1964846b27f8333cd06f7594289cbf53b.tar.gz
passt-ca69c3f1964846b27f8333cd06f7594289cbf53b.tar.bz2
passt-ca69c3f1964846b27f8333cd06f7594289cbf53b.tar.lz
passt-ca69c3f1964846b27f8333cd06f7594289cbf53b.tar.xz
passt-ca69c3f1964846b27f8333cd06f7594289cbf53b.tar.zst
passt-ca69c3f1964846b27f8333cd06f7594289cbf53b.zip
inany: Helper functions for handling addresses which could be IPv4 or IPv6
struct tcp_conn stores an address which could be IPv6 or IPv4 using a union. We can do this without an additional tag by encoding IPv4 addresses as IPv4-mapped IPv6 addresses. This approach is useful wider than the specific place in tcp_conn, so expose a new 'union inany_addr' like this from a new inany.h. Along with that create a number of helper functions to make working with these "inany" addresses easier. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index a9b4f79..ce159e5 100644
--- a/Makefile
+++ b/Makefile
@@ -46,9 +46,9 @@ SRCS = $(PASST_SRCS) $(QRAP_SRCS)
MANPAGES = passt.1 pasta.1 qrap.1
PASST_HEADERS = arch.h arp.h checksum.h conf.h dhcp.h dhcpv6.h icmp.h \
- isolation.h lineread.h log.h ndp.h netlink.h packet.h passt.h pasta.h \
- pcap.h port_fwd.h siphash.h tap.h tcp.h tcp_conn.h tcp_splice.h udp.h \
- util.h
+ inany.h isolation.h lineread.h log.h ndp.h netlink.h packet.h passt.h \
+ pasta.h pcap.h port_fwd.h siphash.h tap.h tcp.h tcp_conn.h \
+ tcp_splice.h udp.h util.h
HEADERS = $(PASST_HEADERS) seccomp.h
# On gcc 11 and 12, with -O2 and -flto, tcp_hash() and siphash_20b(), if