diff options
author | Michael Brown <mcb30@ipxe.org> | 2011-07-15 18:48:46 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2011-07-15 18:48:46 +0100 |
commit | a667bf044a37f9e96830f1f35627829860f7019f (patch) | |
tree | fabf3420f244fd35ed3576169db8cf0cd706dd9f /src/net/eth_slow.c | |
parent | 69b7d57265679d76e26581d034e8f8ab5168bb27 (diff) | |
download | ipxe-a667bf044a37f9e96830f1f35627829860f7019f.tar.gz |
[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>
Diffstat (limited to 'src/net/eth_slow.c')
-rw-r--r-- | src/net/eth_slow.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/eth_slow.c b/src/net/eth_slow.c index 9e68939c..593e45bc 100644 --- a/src/net/eth_slow.c +++ b/src/net/eth_slow.c @@ -234,12 +234,14 @@ static int eth_slow_marker_rx ( struct io_buffer *iobuf, * @v netdev Network device * @v ll_dest Link-layer destination address * @v ll_source Link-layer source address + * @v flags Packet flags * @ret rc Return status code */ static int eth_slow_rx ( struct io_buffer *iobuf, struct net_device *netdev, const void *ll_dest __unused, - const void *ll_source __unused ) { + const void *ll_source __unused, + unsigned int flags __unused ) { union eth_slow_packet *eth_slow = iobuf->data; /* Sanity checks */ |