mirror of
https://github.com/xdp-project/bpf-examples.git
synced 2024-05-06 15:54:53 +00:00
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>
20 lines
305 B
C
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 */
|