http://git.etherboot.org
/
people
/
lynusvaz
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7be5fa8
)
[ethernet] Fix eth_mc_hash() return status
author
Michael Brown
<mcb30@etherboot.org>
Wed, 21 Jan 2009 03:37:36 +0000
(
03:37
+0000)
committer
Michael Brown
<mcb30@etherboot.org>
Wed, 21 Jan 2009 03:38:25 +0000
(
03:38
+0000)
eth_mc_hash() was missing a return within a switch statement, and so
always falling through to the default case and returning failure.
src/net/ethernet.c
patch
|
blob
|
history
diff --git
a/src/net/ethernet.c
b/src/net/ethernet.c
index
3b28970
..
b16135a
100644
(file)
--- a/
src/net/ethernet.c
+++ b/
src/net/ethernet.c
@@
-127,6
+127,7
@@
static int eth_mc_hash ( unsigned int af, const void *net_addr,
ll_addr_bytes[3] = net_addr_bytes[1] & 0x7f;
ll_addr_bytes[4] = net_addr_bytes[2];
ll_addr_bytes[5] = net_addr_bytes[3];
+ return 0;
default:
return -ENOTSUP;
}