-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
downgrade github.com/iovisor/gobpf to last working version
- Loading branch information
Showing
4 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
--- module.go 2019-08-05 13:21:58.655304166 +0200 | ||
+++ module.go.new 2019-08-05 13:23:28.055125298 +0200 | ||
@@ -81,12 +81,12 @@ | ||
+++ module.go 2019-08-05 13:23:28.055125298 +0200 | ||
@@ -94,12 +94,12 @@ | ||
|
||
int bpf_attach_socket(int sock, int fd) | ||
{ | ||
- return setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, &fd, sizeof(fd)); | ||
+ return setsockopt(sock, SOL_SOCKET, SO_ATTACH_FILTER, &fd, sizeof(fd)); | ||
} | ||
|
||
int bpf_detach_socket(int sock, int fd) | ||
{ | ||
- return setsockopt(sock, SOL_SOCKET, SO_DETACH_BPF, &fd, sizeof(fd)); | ||
+ return setsockopt(sock, SOL_SOCKET, SO_DETACH_FILTER, &fd, sizeof(fd)); | ||
} | ||
*/ | ||
import "C" | ||
|
||
int bpf_attach_xdp(const char *dev_name, int progfd, uint32_t flags) |