extract icmp into its own static library; replace all __attribute__((constructor)) self-registrations with explicit init() calls in dispatch_init

This commit is contained in:
Ian Gulliver
2026-05-01 13:44:53 -07:00
parent 2d7ff98b82
commit a56e034bfb
12 changed files with 30 additions and 23 deletions

View File

@@ -41,10 +41,7 @@ void handle(std::span<const uint8_t> frame, span_writer& tx) {
eth::send_raw(buf.span());
}
void init() {}
__attribute__((constructor))
static void register_ethertype() {
void init() {
eth::register_ethertype(eth::ETH_ARP, handle);
}