bpf_metadata: Skip using original source address if destination is local host#1371
Draft
jrajahalme wants to merge 1 commit intomainfrom
Draft
bpf_metadata: Skip using original source address if destination is local host#1371jrajahalme wants to merge 1 commit intomainfrom
jrajahalme wants to merge 1 commit intomainfrom
Conversation
13f88e1 to
a5d9d3f
Compare
Member
Author
|
added logging. |
acfde62 to
517ec7f
Compare
Member
Author
|
resolved conflict, no longer using a |
Original source address need not and can not be used if the destination is a local pod, or a local host. Add the local host case to bpf_metadata filter, and add handling of both cases to socket_option_source_address, as at that time the chosen destination is known. In principle, we should not need these checks in bpf_metadata any more, but tests/ currently depends on them. Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
517ec7f to
a808711
Compare
Member
|
Seems like we need to resolve conflict with main branch now |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Original source address need not and can not be used if the destination is a local pod, or a local host. Add the local host case to bpf_metadata filter, and add handling of both cases to socket_option_source_address, as at that time the chosen destination is known.
In principle, we should not need these checks in bpf_metadata any more, but tests/ currently depends on them.