1 /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */ 2 #ifndef __TCPTOP_H 3 #define __TCPTOP_H 4 5 #define TASK_COMM_LEN 16 6 7 struct ip_key_t { 8 unsigned __int128 saddr; 9 unsigned __int128 daddr; 10 __u32 pid; 11 char name[TASK_COMM_LEN]; 12 __u16 lport; 13 __u16 dport; 14 __u16 family; 15 }; 16 17 struct traffic_t { 18 size_t sent; 19 size_t received; 20 }; 21 22 #endif /* __TCPTOP_H */ 23