github.com/inspektor-gadget/inspektor-gadget@v0.28.1/pkg/gadgets/trace/network/tracer/bpf/network.h (about) 1 // SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) OR Apache-2.0 2 /* Copyright (c) 2023 The Inspektor Gadget authors */ 3 4 #ifndef GADGET_NETWORK_H 5 #define GADGET_NETWORK_H 6 7 struct event_t { 8 // Keep netns at the top: networktracer depends on it 9 __u32 netns; 10 11 __u64 timestamp; 12 __u64 mount_ns_id; 13 __u32 pid; 14 __u32 tid; 15 __u32 uid; 16 __u32 gid; 17 __u8 task[TASK_COMM_LEN]; 18 19 __u32 pkt_type; 20 __u32 ip; 21 __u16 proto; 22 __u16 port; 23 }; 24 25 #endif