Skip to content

Add support for multiple interfaces#102

Merged
eliasol merged 2 commits into
masterfrom
multiple-ifaces
Nov 29, 2025
Merged

Add support for multiple interfaces#102
eliasol merged 2 commits into
masterfrom
multiple-ifaces

Conversation

@eliasol

@eliasol eliasol commented Nov 29, 2025

Copy link
Copy Markdown
Member

No description provided.

@eliasol
eliasol force-pushed the multiple-ifaces branch 3 times, most recently from 35f3c35 to 681b553 Compare November 29, 2025 16:05
Comment thread pixie-server/example.config.yaml Outdated
Comment thread test_config.yaml Outdated
Comment thread test_config.yaml Outdated
Comment thread pixie-server/src/udp.rs Outdated
.iter()
.map(|iface| {
let (tx, rx) = mpsc::channel(128);
((iface.network, tx), (iface.network, rx))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
((iface.network, tx), (iface.network, rx))
((iface.network, tx), (iface, rx))

Comment thread pixie-server/src/udp.rs Outdated
Comment on lines +242 to +244
for (network, rx) in net_rx {
tasks.push(broadcast_chunks(&state, &socket, network.broadcast(), rx).boxed());
tasks.push(broadcast_hint(&state, &socket, network.broadcast()).boxed());

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
for (network, rx) in net_rx {
tasks.push(broadcast_chunks(&state, &socket, network.broadcast(), rx).boxed());
tasks.push(broadcast_hint(&state, &socket, network.broadcast()).boxed());
for (iface, rx) in net_rx {
tasks.push(broadcast_chunks(&state, &socket, iface, rx).boxed());
tasks.push(broadcast_hint(&state, &socket, iface.network.broadcast()).boxed());

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Then broadcast_chunks takes an InterfaceConfig and does not need to find its broadcast_speed

@eliasol
eliasol force-pushed the multiple-ifaces branch 2 times, most recently from fa4399b to dc406b3 Compare November 29, 2025 17:22
@eliasol
eliasol merged commit 1e4ebff into master Nov 29, 2025
2 checks passed
@eliasol
eliasol deleted the multiple-ifaces branch November 29, 2025 18:33
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.

2 participants