Skip to content

Commit

Permalink
libbpf-tools: Use __u16 for bindsnoop protocol.
Browse files Browse the repository at this point in the history
  • Loading branch information
eiffel-fl committed Feb 21, 2022
1 parent 2895551 commit 2e0804e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion libbpf-tools/bindsnoop.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include <bpf/bpf_tracing.h>
#include <bpf/bpf_endian.h>
#include "bindsnoop.h"
#include "maps.bpf.h"

#define MAX_ENTRIES 10240
#define MAX_PORTS 1024
Expand Down
2 changes: 1 addition & 1 deletion libbpf-tools/bindsnoop.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ struct bind_event {
__u32 bound_dev_if;
int ret;
__u16 port;
__u16 proto;
__u8 opts;
__u8 proto;
__u8 ver;
char task[TASK_COMM_LEN];
};
Expand Down

0 comments on commit 2e0804e

Please sign in to comment.