brintos

brintos / linux-shallow public Read only

0
0
Text · 376 B · 70c7600 Raw
19 lines · c
1// SPDX-License-Identifier: GPL-2.02 3#include "vmlinux.h"4#include <bpf/bpf_helpers.h>5#include "bpf_misc.h"6 7SEC("tc/ingress")8__description("uninit/mtu: write rejected")9__failure __msg("invalid indirect read from stack")10int tc_uninit_mtu(struct __sk_buff *ctx)11{12	__u32 mtu;13 14	bpf_check_mtu(ctx, 0, &mtu, 0, 0);15	return TCX_PASS;16}17 18char LICENSE[] SEC("license") = "GPL";19