Loading...
1// SPDX-License-Identifier: GPL-2.0
2
3#include "bpf_tracing_net.h"
4#include <bpf/bpf_tracing.h>
5
6char _license[] SEC("license") = "X";
7
8SEC("struct_ops")
9void BPF_PROG(nogpltcp_init, struct sock *sk)
10{
11}
12
13SEC(".struct_ops")
14struct tcp_congestion_ops bpf_nogpltcp = {
15 .init = (void *)nogpltcp_init,
16 .name = "bpf_nogpltcp",
17};
1// SPDX-License-Identifier: GPL-2.0
2
3#include <linux/bpf.h>
4#include <linux/types.h>
5#include <bpf/bpf_helpers.h>
6#include <bpf/bpf_tracing.h>
7#include "bpf_tcp_helpers.h"
8
9char _license[] SEC("license") = "X";
10
11void BPF_STRUCT_OPS(nogpltcp_init, struct sock *sk)
12{
13}
14
15SEC(".struct_ops")
16struct tcp_congestion_ops bpf_nogpltcp = {
17 .init = (void *)nogpltcp_init,
18 .name = "bpf_nogpltcp",
19};