mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-30 22:18:21 +00:00
eth: take size_t size in eth_process
This commit is contained in:
@@ -3,7 +3,10 @@
|
||||
#include <logging.h>
|
||||
|
||||
// runs on dpc context, called by the individual driver dpcs on a receive.
|
||||
void eth_process(netdev_t *netdev, void *buffer) {
|
||||
void eth_process(netdev_t *netdev, void *buffer, size_t size) {
|
||||
if (size < sizeof(ethframe_t))
|
||||
return;
|
||||
|
||||
ethframe_t *frame = buffer;
|
||||
|
||||
mac_t dst, src;
|
||||
|
||||
Reference in New Issue
Block a user