![]() |
|
|||
0001 // SPDX-License-Identifier: GPL-2.0 0002 0003 #include <linux/bpf.h> 0004 #include <bpf/bpf_helpers.h> 0005 0006 char _license[] SEC("license") = "GPL"; 0007 0008 __u32 load_offset = 0; 0009 int test_result = 0; 0010 0011 SEC("tc") 0012 int skb_process(struct __sk_buff *skb) 0013 { 0014 char buf[16]; 0015 0016 test_result = bpf_skb_load_bytes(skb, load_offset, buf, 10); 0017 0018 return 0; 0019 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |