Files
xdp-project-bpf-examples/AF_XDP-example/xdpsock.h
Magnus Karlsson c425a168a1 AF_XDP-example: move xdpsock example to bpf-examples repo
Move the xdpsock sample application from the Linux repo to the
bpf-examples repo. This example demonstrates a number of capabilities
of AF_XDP sockets.

Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
2022-09-23 06:06:57 +00:00

20 lines
305 B
C

/* SPDX-License-Identifier: GPL-2.0
*
* Copyright(c) 2019 - 2022 Intel Corporation.
*/
#ifndef XDPSOCK_H_
#define XDPSOCK_H_
#define MAX_SOCKS 4
#define SOCKET_NAME "sock_cal_bpf_fd"
#define MAX_NUM_OF_CLIENTS 10
#define CLOSE_CONN 1
typedef __u64 u64;
typedef __u32 u32;
#endif /* XDPSOCK_H */