mirror of
https://github.com/ipxe/ipxe
synced 2026-01-02 09:52:49 +03:00
[netdevice] Allow link layer to report broadcast/multicast packets via pull()
Allow the link layer to directly report whether or not a packet is multicast or broadcast at the time of calling pull(), rather than relying on heuristics to determine this at a later stage. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -38,11 +38,13 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
* @v netdev Network device
|
||||
* @v ll_dest Link-layer destination address
|
||||
* @v ll_source Link-layer source address
|
||||
* @v flags Packet flags
|
||||
*
|
||||
* This function takes ownership of the I/O buffer passed to it.
|
||||
*/
|
||||
static int eapol_rx ( struct io_buffer *iob, struct net_device *netdev,
|
||||
const void *ll_dest, const void *ll_source ) {
|
||||
const void *ll_dest, const void *ll_source,
|
||||
unsigned int flags __unused ) {
|
||||
struct eapol_frame *eapol = iob->data;
|
||||
struct eapol_handler *handler;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user