Skip to content

Conversation

pchaigno
Copy link
Member

Because dbg_ctx was declared 16-bit long, it would only hold the protocol and not the family (shifted to upper 16 bits). This incorrect implicit cast was discovered thanks to -Wimplicit-int-conversion, which I'm working on enabling.

Fixes: #11279.

Because dbg_ctx was declared 16-bit long, it would only hold the
protocol and not the family (shifted to upper 16 bits). This incorrect
implicit cast was discovered thanks to -Wimplicit-int-conversion, which
I'm working on enabling.

Fixes: b042aac ("bpf: Implement BPF TPROXY for traffic to the host")
Signed-off-by: Paul Chaignon <paul@cilium.io>
@pchaigno pchaigno added area/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages. release-note/misc This PR makes changes that have no direct user impact. labels Jan 10, 2022
@pchaigno pchaigno requested review from a team and kkourt January 10, 2022 17:17
@pchaigno pchaigno requested review from joestringer and removed request for kkourt January 10, 2022 17:17
Copy link
Member

@joestringer joestringer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@joestringer joestringer merged commit 108aa42 into cilium:master Jan 10, 2022
@pchaigno pchaigno deleted the fix-debug-message-value branch January 10, 2022 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants