diff options
author | Michael Brown | 2011-07-15 19:48:46 +0200 |
---|---|---|
committer | Michael Brown | 2011-07-15 19:48:46 +0200 |
commit | a667bf044a37f9e96830f1f35627829860f7019f (patch) | |
tree | fabf3420f244fd35ed3576169db8cf0cd706dd9f /src/net/rarp.c | |
parent | [http] Include port in HTTP Host header as needed (diff) | |
download | ipxe-a667bf044a37f9e96830f1f35627829860f7019f.tar.gz ipxe-a667bf044a37f9e96830f1f35627829860f7019f.tar.xz ipxe-a667bf044a37f9e96830f1f35627829860f7019f.zip |
[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/rarp.c')
-rw-r--r-- | src/net/rarp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/rarp.c b/src/net/rarp.c index da67c459..59cb1d07 100644 --- a/src/net/rarp.c +++ b/src/net/rarp.c @@ -38,6 +38,7 @@ 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 * @ret rc Return status code * * This is a dummy method which simply discards RARP packets. @@ -45,7 +46,8 @@ FILE_LICENCE ( GPL2_OR_LATER ); static int rarp_rx ( struct io_buffer *iobuf, struct net_device *netdev __unused, const void *ll_dest __unused, - const void *ll_source __unused ) { + const void *ll_source __unused, + unsigned int flags __unused ) { free_iob ( iobuf ); return 0; } |