|
Server : Apache System : Linux iZ6xhqomji47p1Z 5.10.134-15.al8.x86_64 #1 SMP Thu Jul 20 00:44:04 CST 2023 x86_64 User : www ( 1000) PHP Version : 8.1.30 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv Directory : /usr/include/linux/ |
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
*
* Copyright (C) 2021 Alibaba Group
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
*/
#ifndef __LINUX_PING_TRACE_H
#define __LINUX_PING_TRACE_H
#include <linux/types.h>
/* magic number in icmp header's code.
* Although the value 1 seems not like a magic number,
* it actually plays the role of magic number,
* and it connot be modidied now due to some historical reasons.
*/
#define PINGTRACE_CODE_MAGIC 1
#define PINGTRACE_HDR_MAGIC 0x7ace
enum pingtrace_function {
P_L_TX_USER,
P_L_TX_DEVQUEUE,
P_L_TX_DEVOUT,
P_R_RX_ICMPRCV,
P_R_TX_DEVOUT,
P_L_RX_IPRCV,
P_L_RX_SKDATAREADY,
P_L_RX_WAKEUP,
P_L_RX_USER,
};
enum PINGTRACE_HDR_FLAGS {
PINGTRACE_F_DONTADD = 1,
};
struct pingtrace_timestamp {
__u32 ns_id;
__u32 ifindex;
__u16 user_id;
__u16 function_id;
__u32 ts;
};
struct pingtrace_hdr {
__u8 version;
__u8 num;
__u16 flags;
__u16 magic;
__u16 reserve;
__u32 id;
__u32 seq;
};
struct pingtrace_pkt {
struct pingtrace_hdr hdr;
struct pingtrace_timestamp entries[];
};
#endif