mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-19 08:59:16 +00:00
Instead of going through the socket fd, addresses are obtained in kprobe/tcp_sendmsg on ssl write and kprobe/tcp_recvmsg on ssl read. The tcp kprobes and the openssl uprobes communicate through the id->sslInfo bpf map.
24 lines
541 B
C
24 lines
541 B
C
/*
|
|
Note: This file is licenced differently from the rest of the project
|
|
SPDX-License-Identifier: GPL-2.0
|
|
Copyright (C) UP9 Inc.
|
|
*/
|
|
|
|
#include "include/headers.h"
|
|
#include "include/util.h"
|
|
#include "include/maps.h"
|
|
#include "include/log.h"
|
|
#include "include/logger_messages.h"
|
|
#include "include/pids.h"
|
|
|
|
// To avoid multiple .o files
|
|
//
|
|
#include "common.c"
|
|
#include "openssl_uprobes.c"
|
|
#include "tcp_kprobes.c"
|
|
#include "go_uprobes.c"
|
|
#include "fd_tracepoints.c"
|
|
#include "fd_to_address_tracepoints.c"
|
|
|
|
char _license[] SEC("license") = "GPL";
|