Skip to content

Commit

Permalink
Merge pull request iovisor#1483 from kinvolk/iaguis/fix-tcptracer-old…
Browse files Browse the repository at this point in the history
…-kernels

tcptracer: initialize skc_net variable
  • Loading branch information
yonghong-song committed Jan 9, 2018
2 parents 2d45e02 + 926d667 commit 956a983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/tcptracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@
// Get network namespace id, if kernel supports it
#ifdef CONFIG_NET_NS
possible_net_t skc_net;
possible_net_t skc_net = { };
bpf_probe_read(&skc_net, sizeof(skc_net), &newsk->__sk_common.skc_net);
bpf_probe_read(&net_ns_inum, sizeof(net_ns_inum), &skc_net.net->ns.inum);
#else
Expand Down

0 comments on commit 956a983

Please sign in to comment.