Skip to content

Conversation

@Fredi-raspall
Copy link
Contributor

targets #1227 (review)

@Fredi-raspall Fredi-raspall requested a review from qmonnet January 22, 2026 10:08
@Fredi-raspall Fredi-raspall requested a review from a team as a code owner January 22, 2026 10:08
@qmonnet qmonnet force-pushed the pr/qmonnet/fix-default-src-suggestions branch from b6aec0f to 90ad5ef Compare January 22, 2026 12:48
Fredi-raspall and others added 7 commits January 22, 2026 12:49
Signed-off-by: Fredi Raspall <fredi@githedgehog.com>
Signed-off-by: Quentin Monnet <qmo@qmon.net>
Include the fallback case in the lookup method of VpcConnectionsTable.
We'll do the same for the lookup from the DstConnectionData object in a
follow-up commit.

Signed-off-by: Fredi Raspall <fredi@githedgehog.com>
Signed-off-by: Quentin Monnet <qmo@qmon.net>
Wrapping the VPC discriminant for the "default" destination in a
RemotePrefixPortData is not strictly necessary, but is more consistent
with the rest of the code and with how we fall back to the default
object for the checks on the source of the packet. This will also allow
us to move the fallback to the DstConnectionData.lookup() method in a
follow-up commit.

Signed-off-by: Quentin Monnet <qmo@qmon.net>
Similar to what we did for the source lookup in a previous commit, move
the fallback to the default destination data object to the
DstConnectionData.lookup() method rather than the main lookup in the
FlowFilterTable implementation. This makes the code clearer and more
consistent.

Signed-off-by: Quentin Monnet <qmo@qmon.net>
Replace format_packet_addrs_ports() by a Display implementation
to avoid memory allocations per packet which occur in the original
code even when the loglevel is not debug. The call to
FlowTuple::new() could also be made within the debug!() but it is
probably very cheap to call it per packet.

Signed-off-by: Fredi Raspall <fredi@githedgehog.com>
Make sure we log intermediate lookup failures in the flow-filter lookup.

Co-authored-by: Quentin Monnet <qmo@qmon.net>
Signed-off-by: Fredi Raspall <fredi@githedgehog.com>
Signed-off-by: Quentin Monnet <qmo@qmon.net>
Improve the Display implementation for types PrefixWithPorts and
PrefixWithOptionalPorts. In particular, get rid of the "</>" used to
represent the absence of specified port ranges for the latter type, and
use the more explicit "[all]" instead to indicate it applies to all
ports.

Thanks to Fredi for the format suggestions.

Signed-off-by: Quentin Monnet <qmo@qmon.net>
@qmonnet qmonnet force-pushed the pr/qmonnet/fix-default-src-suggestions branch from 90ad5ef to 96a9b86 Compare January 22, 2026 12:49
@qmonnet qmonnet merged commit f2db856 into pr/qmonnet/fix-default-src Jan 22, 2026
7 of 11 checks passed
@qmonnet qmonnet deleted the pr/qmonnet/fix-default-src-suggestions branch January 22, 2026 12:51
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.

3 participants