Drop handle_udp parameter threading: ipv4::handle calls net_handle_udp directly
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
#include <array>
|
||||
#include <cstdint>
|
||||
#include <cstdio>
|
||||
#include <functional>
|
||||
#include <span>
|
||||
#include <string>
|
||||
#include "eth.h"
|
||||
@@ -57,7 +56,6 @@ void prepend(Buf& buf, const eth::mac_addr& dst_mac, const eth::mac_addr& src_ma
|
||||
}
|
||||
|
||||
void handle(std::span<const uint8_t> frame, span_writer& tx,
|
||||
eth::mac_addr our_mac, ip4_addr our_ip, ip4_addr subnet_broadcast,
|
||||
std::function<void(std::span<const uint8_t>, span_writer&)> handle_udp);
|
||||
eth::mac_addr our_mac, ip4_addr our_ip, ip4_addr subnet_broadcast);
|
||||
|
||||
} // namespace ipv4
|
||||
|
||||
@@ -31,3 +31,4 @@ frame_cb_handle net_add_frame_callback(net_frame_callback cb);
|
||||
void net_remove_frame_callback(frame_cb_handle h);
|
||||
void net_poll(std::span<uint8_t> tx);
|
||||
void net_send_raw(std::span<const uint8_t> data);
|
||||
void net_handle_udp(std::span<const uint8_t> frame, span_writer& tx);
|
||||
|
||||
Reference in New Issue
Block a user