Files
bpf-developer-tutorial/src/30-sslsniff/sslsniff.h
云微 af2d46a846 Add sslsniff documents (#67)
* impl 25 signal

* update more about openssl analysis

* add skeleton for sslsniff

* add code

* fix summary link

* add link for signal

* add ci for 25 and 30

* fix docs
2023-08-22 06:56:18 +08:00

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 */