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 __SO_ACCEPTCON (1 << 16) 9 #define UNIX_HASH_SIZE 256 10 #define UNIX_ABSTRACT(unix_sk) (unix_sk->addr->hash < UNIX_HASH_SIZE) 11 12 #define SOL_TCP 6 13 #define TCP_CONGESTION 13 14 #define TCP_CA_NAME_MAX 16 15 16 #define ICSK_TIME_RETRANS 1 17 #define ICSK_TIME_PROBE0 3 18 #define ICSK_TIME_LOSS_PROBE 5 19 #define ICSK_TIME_REO_TIMEOUT 6 20 21 #define IFNAMSIZ 16 22 23 #define RTF_GATEWAY 0x0002 24 25 #define TCP_INFINITE_SSTHRESH 0x7fffffff 26 #define TCP_PINGPONG_THRESH 3 27 28 #define fib_nh_dev nh_common.nhc_dev 29 #define fib_nh_gw_family nh_common.nhc_gw_family 30 #define fib_nh_gw6 nh_common.nhc_gw.ipv6 31 32 #define inet_daddr sk.__sk_common.skc_daddr 33 #define inet_rcv_saddr sk.__sk_common.skc_rcv_saddr 34 #define inet_dport sk.__sk_common.skc_dport 35 36 #define ir_loc_addr req.__req_common.skc_rcv_saddr 37 #define ir_num req.__req_common.skc_num 38 #define ir_rmt_addr req.__req_common.skc_daddr 39 #define ir_rmt_port req.__req_common.skc_dport 40 #define ir_v6_rmt_addr req.__req_common.skc_v6_daddr 41 #define ir_v6_loc_addr req.__req_common.skc_v6_rcv_saddr 42 43 #define sk_num __sk_common.skc_num 44 #define sk_dport __sk_common.skc_dport 45 #define sk_family __sk_common.skc_family 46 #define sk_rmem_alloc sk_backlog.rmem_alloc 47 #define sk_refcnt __sk_common.skc_refcnt 48 #define sk_state __sk_common.skc_state 49 #define sk_v6_daddr __sk_common.skc_v6_daddr 50 #define sk_v6_rcv_saddr __sk_common.skc_v6_rcv_saddr 51 52 #define s6_addr32 in6_u.u6_addr32 53 54 #define tw_daddr __tw_common.skc_daddr 55 #define tw_rcv_saddr __tw_common.skc_rcv_saddr 56 #define tw_dport __tw_common.skc_dport 57 #define tw_refcnt __tw_common.skc_refcnt 58 #define tw_v6_daddr __tw_common.skc_v6_daddr 59 #define tw_v6_rcv_saddr __tw_common.skc_v6_rcv_saddr 60 61 #endif 62