diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2025-04-04 21:15:38 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2025-04-07 21:43:53 +0200 |
commit | fd844a90bce0274d2488370ed7fadd850b6a0294 (patch) | |
tree | 95da21ce581402a20da70eaa310f6d970b17ac18 | |
parent | fc6ee68ad3a8863cba534dfa4b88767114a6701e (diff) | |
download | passt-fd844a90bce0274d2488370ed7fadd850b6a0294.tar passt-fd844a90bce0274d2488370ed7fadd850b6a0294.tar.gz passt-fd844a90bce0274d2488370ed7fadd850b6a0294.tar.bz2 passt-fd844a90bce0274d2488370ed7fadd850b6a0294.tar.lz passt-fd844a90bce0274d2488370ed7fadd850b6a0294.tar.xz passt-fd844a90bce0274d2488370ed7fadd850b6a0294.tar.zst passt-fd844a90bce0274d2488370ed7fadd850b6a0294.zip |
udp: Move UDP_MAX_FRAMES to udp.c
Recent changes mean that this define is no longer used anywhere except in
udp.c. Move it back into udp.c from udp_internal.h.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r-- | udp.c | 2 | ||||
-rw-r--r-- | udp_internal.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -116,6 +116,8 @@ #include "udp_internal.h" #include "udp_vu.h" +#define UDP_MAX_FRAMES 32 /* max # of frames to receive at once */ + /* Maximum UDP data to be returned in ICMP messages */ #define ICMP4_MAX_DLEN 8 #define ICMP6_MAX_DLEN (IPV6_MIN_MTU \ diff --git a/udp_internal.h b/udp_internal.h index 02724e5..f7d8426 100644 --- a/udp_internal.h +++ b/udp_internal.h @@ -8,8 +8,6 @@ #include "tap.h" /* needed by udp_meta_t */ -#define UDP_MAX_FRAMES 32 /* max # of frames to receive at once */ - /** * struct udp_payload_t - UDP header and data for inbound messages * @uh: UDP header |