Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bpf/pkt_translation.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ static inline void dump_xlated_flow(struct xlat_metrics_t *flow) {

static void __always_inline parse_tuple(struct nf_conntrack_tuple *t, struct xlat_metrics_t *flow,
u16 zone_id, u16 family, u8 protocol, bool invert) {
__builtin_memset(flow, 0, sizeof(*flow));
if (invert) {
if (is_transport_protocol(protocol)) {
flow->dport = bpf_ntohs(t->src.u.all);
Expand Down Expand Up @@ -74,6 +73,7 @@ static inline long translate_lookup_and_update_flow(flow_id *id, u16 flags,
u16 family, u16 eth_protocol) {
long ret = 0;
struct xlat_metrics_t orig;
__builtin_memset(&orig, 0, sizeof(orig));

parse_tuple(orig_t, &orig, zone_id, family, id->transport_protocol, false);

Expand Down
Binary file modified pkg/ebpf/bpf_arm64_bpfel.o
Binary file not shown.
Binary file modified pkg/ebpf/bpf_powerpc_bpfel.o
Binary file not shown.
Binary file modified pkg/ebpf/bpf_s390_bpfeb.o
Binary file not shown.
Binary file modified pkg/ebpf/bpf_x86_bpfel.o
Binary file not shown.