mirror of
https://github.com/eunomia-bpf/bpf-developer-tutorial.git
synced 2026-02-08 12:53:33 +08:00
27 lines
570 B
C
27 lines
570 B
C
// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
|
|
// Copyright (c) 2023 Yusheng Zheng
|
|
//
|
|
// Based on sslsniff from BCC by Adrian Lopez & Mark Drayton.
|
|
// 15-Aug-2023 Yusheng Zheng Created this.
|
|
#ifndef __SSLSNIFF_H
|
|
#define __SSLSNIFF_H
|
|
|
|
#define MAX_BUF_SIZE 8192
|
|
#define TASK_COMM_LEN 16
|
|
|
|
struct probe_SSL_data_t {
|
|
__u64 timestamp_ns;
|
|
__u64 delta_ns;
|
|
__u32 pid;
|
|
__u32 tid;
|
|
__u32 uid;
|
|
__u32 len;
|
|
int buf_filled;
|
|
int rw;
|
|
char comm[TASK_COMM_LEN];
|
|
__u8 buf[MAX_BUF_SIZE];
|
|
int is_handshake;
|
|
};
|
|
|
|
#endif /* __SSLSNIFF_H */
|