Skip to content

Commit 2a3c9b4

Browse files
committed
refactor: remove dead code
1 parent 89f523a commit 2a3c9b4

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/bpf_program.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,4 @@ void BpfProgram::attach_xdp(int ifindex, const std::string& interface)
5353
if (!link) {
5454
throw BpfError("Failed to attach XDP program to interface " + interface);
5555
}
56-
interface_name = interface;
5756
}

src/bpf_program.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ class BpfProgram {
77
private:
88
knock_bpf* skel = nullptr;
99
bpf_link* link = nullptr;
10-
std::string interface_name;
1110

1211
public:
1312
explicit BpfProgram(const knock_config& config);

0 commit comments

Comments
 (0)