1 /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */ 2 #ifndef __BPF_TRACING_NET_H__ 3 #define __BPF_TRACING_NET_H__ 4 5 #define AF_INET 2 6 #define AF_INET6 10 7 8 #define ICSK_TIME_RETRANS 1 9 #define ICSK_TIME_PROBE0 3 10 #define ICSK_TIME_LOSS_PROBE 5 11 #define ICSK_TIME_REO_TIMEOUT 6 12 13 #define IFNAMSIZ 16 14 15 #define RTF_GATEWAY 0x0002 16 17 #define TCP_INFINITE_SSTHRESH 0x7fffffff 18 #define TCP_PINGPONG_THRESH 3 19 20 #define fib_nh_dev nh_common.nhc_dev 21 #define fib_nh_gw_family nh_common.nhc_gw_family 22 #define fib_nh_gw6 nh_common.nhc_gw.ipv6 23 24 #define inet_daddr sk.__sk_common.skc_daddr 25 #define inet_rcv_saddr sk.__sk_common.skc_rcv_saddr 26 #define inet_dport sk.__sk_common.skc_dport 27 28 #define ir_loc_addr req.__req_common.skc_rcv_saddr 29 #define ir_num req.__req_common.skc_num 30 #define ir_rmt_addr req.__req_common.skc_daddr 31 #define ir_rmt_port req.__req_common.skc_dport 32 #define ir_v6_rmt_addr req.__req_common.skc_v6_daddr 33 #define ir_v6_loc_addr req.__req_common.skc_v6_rcv_saddr 34 35 #define sk_family __sk_common.skc_family 36 #define sk_rmem_alloc sk_backlog.rmem_alloc 37 #define sk_refcnt __sk_common.skc_refcnt 38 #define sk_state __sk_common.skc_state 39 #define sk_v6_daddr __sk_common.skc_v6_daddr 40 #define sk_v6_rcv_saddr __sk_common.skc_v6_rcv_saddr 41 42 #define s6_addr32 in6_u.u6_addr32 43 44 #define tw_daddr __tw_common.skc_daddr 45 #define tw_rcv_saddr __tw_common.skc_rcv_saddr 46 #define tw_dport __tw_common.skc_dport 47 #define tw_refcnt __tw_common.skc_refcnt 48 #define tw_v6_daddr __tw_common.skc_v6_daddr 49 #define tw_v6_rcv_saddr __tw_common.skc_v6_rcv_saddr 50 51 #endif 52