Skip to content

Commit

Permalink
WIP bpf: nodeport: populate ifindex in SNAT trace event
Browse files Browse the repository at this point in the history
Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
  • Loading branch information
julianwiedmann committed Nov 20, 2023
1 parent dc46279 commit d5164e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bpf/lib/nodeport.h
Original file line number Diff line number Diff line change
Expand Up @@ -3076,7 +3076,8 @@ int tail_handle_snat_fwd_ipv4(struct __ctx_buff *ctx)
* the interface to which the egress IP is assigned to.
*/
if (ret == CTX_ACT_OK)
send_trace_notify4(ctx, obs_point, 0, 0, saddr, 0, 0, trace.reason, trace.monitor);
send_trace_notify4(ctx, obs_point, 0, 0, saddr, 0,
NATIVE_DEV_IFINDEX, trace.reason, trace.monitor);

return ret;
}
Expand Down

0 comments on commit d5164e0

Please sign in to comment.