22 lines · c
1// SPDX-License-Identifier: GPL-2.02 3#include "vmlinux.h"4 5#include <bpf/bpf_helpers.h>6#include <bpf/bpf_tracing.h>7 8char _license[] SEC("license") = "GPL";9 10SEC("struct_ops")11size_t BPF_PROG(unsupp_cong_op_get_info, struct sock *sk, u32 ext, int *attr,12 union tcp_cc_info *info)13{14 return 0;15}16 17SEC(".struct_ops")18struct tcp_congestion_ops unsupp_cong_op = {19 .get_info = (void *)unsupp_cong_op_get_info,20 .name = "bpf_unsupp_op",21};22