Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

socket_options: small cleanup regarding setting socket options (IP_TRANSPARENT & SO_REUSEADDR) #1071

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mhofstetter
Copy link
Member

@mhofstetter mhofstetter commented Dec 19, 2024

socket_options: combine setting IP_TRANSPARENT for ipv4 & ipv6

This commit reduces boilerplate by reducing the different codepaths
for setting the IP_TRANSPARENT socket option for IPv4 & IPv6.
socket_options: move comment for SO_REUSEADDR

This commit moves the comment about setting SO_REUSEADDR
socket option to the code that is actually setting the option.

@mhofstetter mhofstetter requested a review from a team as a code owner December 19, 2024 12:53
@mhofstetter mhofstetter requested review from jrajahalme and removed request for a team December 19, 2024 12:53
This commit reduces boilerplate by reducing the different codepaths
for setting the IP_TRANSPARENT socket option for IPv4 & IPv6.

Signed-off-by: Marco Hofstetter <[email protected]>
This commit moves the comment about setting SO_REUSEADDR
socket option to the code that is actually setting the option.

Signed-off-by: Marco Hofstetter <[email protected]>
@mhofstetter mhofstetter force-pushed the pr/mhofstetter/bpfmetadata-rem-iptrans-boilerplate branch from f1236fb to 4e79729 Compare December 19, 2024 13:00
@mhofstetter mhofstetter changed the title bpf_metadata: small cleanup regarding setting socket options (IP_TRANSPARENT & SO_REUSEADDR) socket_options: small cleanup regarding setting socket options (IP_TRANSPARENT & SO_REUSEADDR) Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant