Skip to content

Add multi-port switch with learning and flooding#5

Draft
chiroptical wants to merge 1 commit into
mainfrom
add_multiport_switch
Draft

Add multi-port switch with learning and flooding#5
chiroptical wants to merge 1 commit into
mainfrom
add_multiport_switch

Conversation

@chiroptical
Copy link
Copy Markdown
Owner

@chiroptical chiroptical commented May 29, 2026

  • Implement remaining wire/switch behaviors
  • Add basic tests for a switch, i.e. two NICs connected through a switch works
  • Implement MAC learning
  • Implement MAC flooding

Question: should we allow network endpoints to speak non-ethernet? I'll need to be able to pull out src MAC addresses for learning. This means NICs will also need to speak ethernet. A one-way door for sure. I suppose the binary encoding/decoding doesn't really need to be full ethernet compliant? It only needs to carry the source MAC and payload to work. As we build more functionality it will need more nuance.

Question: How do we know destination MACs when sending messages from a NIC? Is this ARP? I don't think we need ARP yet and we can just do MAC learning and flooding.

@chiroptical chiroptical force-pushed the add_multiport_switch branch from 8165d99 to a9839ac Compare May 29, 2026 00:50
?assertEqual([~"hello world"], TwoBuffer).

init_per_suite(Config) ->
{ok, _} = application:ensure_all_started(hauntstack),
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

One nice thing here is that now my CI checks will know when hauntstack can no longer boot. In theory, I should test everything but even if I didn't this will help protect me a bit.

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