Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpf: Remove duplicate code in bpf_sock.c
This commit refactors __sock{4,6}_xlate() functions in a way that they can be used to replace __sock{4,6}_snd_xlate(). The refactoring also allows us to get rid of the sock6_xlate_snd_v4_in_v6() function. Signed-off-by: Martynas Pumputis <m@lambda.lt>
- Loading branch information
Showing
1 changed file
with
29 additions
and
157 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