forked from iovisor/bcc
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use local key/leaf definition instead of bpf_tunnel_key
Even after fixing the nested union issue in the preceding commits, this example was failing. The reason was that the kernel was filling in all bits of the bpf_tunnel_key, which in recent kernels includes non-zero fields such as ttl. That non-zero field would break the lookup in the tunkey2if table, which was populated assuming all extra bytes would be zero. Fix it by defining a simpler key structure, and copy the required fields out from the local variable. Fixes: iovisor#510
- Loading branch information
Brenden Blanco
committed
May 2, 2016
1 parent
e3e5ccd
commit 9911182
Showing
2 changed files
with
24 additions
and
14 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