|
@@ -387,7 +387,7 @@ use rbpf::helpers;
|
|
fn main() {
|
|
fn main() {
|
|
// Load a program from an ELF file, e.g. compiled from C to eBPF with
|
|
// Load a program from an ELF file, e.g. compiled from C to eBPF with
|
|
// clang/LLVM. Some minor modification to the bytecode may be required.
|
|
// clang/LLVM. Some minor modification to the bytecode may be required.
|
|
- let filename = "my_ebpf_object_file.o";
|
|
|
|
|
|
+ let filename = "examples/load_elf__block_a_port.o";
|
|
|
|
|
|
let path = PathBuf::from(filename);
|
|
let path = PathBuf::from(filename);
|
|
let file = match elf::File::open_path(&path) {
|
|
let file = match elf::File::open_path(&path) {
|