diff options
author | Jordan Augé <jordan.auge+fdio@cisco.com> | 2022-09-21 17:11:22 +0200 |
---|---|---|
committer | Jordan Augé <jordan.auge+fdio@cisco.com> | 2022-09-30 09:17:13 +0200 |
commit | 3476dd9ddecc87d9212c3bf56a5be52079e27def (patch) | |
tree | 3c7ea2664e8f99fc4fd4588b9e4493f0dc9bbb93 /hicn-light/src/hicn/io/udp.c | |
parent | 29647f687c8dadc90e2ba4d3a772eee09a1a4f1b (diff) |
feat: support for new packet format in hicn-light
Ref: HICN-792
Change-Id: I3204006bd2dd2be6504c33035c6578ec0292455a
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Diffstat (limited to 'hicn-light/src/hicn/io/udp.c')
-rw-r--r-- | hicn-light/src/hicn/io/udp.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/hicn-light/src/hicn/io/udp.c b/hicn-light/src/hicn/io/udp.c index b06ee7bce..d704a64f1 100644 --- a/hicn-light/src/hicn/io/udp.c +++ b/hicn-light/src/hicn/io/udp.c @@ -15,10 +15,8 @@ /** * @file udp.c - * #brief Implementation of the UDP face - * - * Old comment: - * - The Send() function may overflow the output buffer + * #brief Implementation of the native UDP face leveraging the new packet format + * to avoid encapsulation. * */ @@ -59,14 +57,6 @@ #include "../core/listener.h" #include "../core/listener_vft.h" #include "../core/msgbuf.h" -//#include "../hicn-light/config.h" - -// Batching based on recvmmsg is also generic -// the difference is the handling of packet as in tcp we need to go through the -// ring buffer first to do the framing, while in UDP this is already done -// -// each module should have a function to process a packet, then call a callback -// in the forwarder again #define BATCH_SOCKET_BUFFER 512 * 1024 /* 256k */ |