diff options
author | Laurent Vivier <lvivier@redhat.com> | 2024-06-13 14:36:49 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-06-13 15:45:05 +0200 |
commit | fba2b544b6c60904ac1818fba44aa86772e40ebf (patch) | |
tree | 7cdcaa97c9959cfd3ee5c2c6dea8f8e34b8e1ae1 /Makefile | |
parent | ec26fa013ad94cab4e7585c3eaedddb4b41a64fa (diff) | |
download | passt-fba2b544b6c60904ac1818fba44aa86772e40ebf.tar passt-fba2b544b6c60904ac1818fba44aa86772e40ebf.tar.gz passt-fba2b544b6c60904ac1818fba44aa86772e40ebf.tar.bz2 passt-fba2b544b6c60904ac1818fba44aa86772e40ebf.tar.lz passt-fba2b544b6c60904ac1818fba44aa86772e40ebf.tar.xz passt-fba2b544b6c60904ac1818fba44aa86772e40ebf.tar.zst passt-fba2b544b6c60904ac1818fba44aa86772e40ebf.zip |
tcp: move buffers management functions to their own file
Move all the TCP parts using internal buffers to tcp_buf.c
and keep generic TCP management functions in tcp.c.
Add tcp_internal.h to export needed functions from tcp.c and
tcp_buf.h from tcp_buf.c
With this change we can use existing TCP functions with a
different kind of memory storage as for instance the shared
memory provided by the guest via vhost-user.
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -47,7 +47,7 @@ FLAGS += -DDUAL_STACK_SOCKETS=$(DUAL_STACK_SOCKETS) PASST_SRCS = arch.c arp.c checksum.c conf.c dhcp.c dhcpv6.c flow.c fwd.c \ icmp.c igmp.c inany.c iov.c ip.c isolation.c lineread.c log.c mld.c \ ndp.c netlink.c packet.c passt.c pasta.c pcap.c pif.c tap.c tcp.c \ - tcp_splice.c udp.c util.c + tcp_buf.c tcp_splice.c udp.c util.c QRAP_SRCS = qrap.c SRCS = $(PASST_SRCS) $(QRAP_SRCS) @@ -56,7 +56,8 @@ MANPAGES = passt.1 pasta.1 qrap.1 PASST_HEADERS = arch.h arp.h checksum.h conf.h dhcp.h dhcpv6.h flow.h fwd.h \ flow_table.h icmp.h icmp_flow.h inany.h iov.h ip.h isolation.h \ lineread.h log.h ndp.h netlink.h packet.h passt.h pasta.h pcap.h pif.h \ - siphash.h tap.h tcp.h tcp_conn.h tcp_splice.h udp.h util.h + siphash.h tap.h tcp.h tcp_buf.h tcp_conn.h tcp_internal.h tcp_splice.h \ + udp.h util.h HEADERS = $(PASST_HEADERS) seccomp.h C := \#include <linux/tcp.h>\nstruct tcp_info x = { .tcpi_snd_wnd = 0 }; |