summaryrefslogtreecommitdiff
path: root/packages/ixp425-eth/ixp400-eth-1.5
diff options
context:
space:
mode:
authorJohn Bowler <jbowler@nslu2-linux.org>2006-01-21 00:12:31 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-01-21 00:12:31 +0000
commit0c751c19a7e2899fb7e5ef19a05fda53b91fb899 (patch)
tree4ddc44c23e1c4adb9ff1f4e02d5b313e8b946ad8 /packages/ixp425-eth/ixp400-eth-1.5
parent8c9e9a740a81d8433c64242d499768972f31bbdd (diff)
ixp400-eth: correct the maclist handling in 1.5
Diffstat (limited to 'packages/ixp425-eth/ixp400-eth-1.5')
-rw-r--r--packages/ixp425-eth/ixp400-eth-1.5/mac-address.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/ixp425-eth/ixp400-eth-1.5/mac-address.patch b/packages/ixp425-eth/ixp400-eth-1.5/mac-address.patch
index 1845dd3089..471967fc68 100644
--- a/packages/ixp425-eth/ixp400-eth-1.5/mac-address.patch
+++ b/packages/ixp425-eth/ixp400-eth-1.5/mac-address.patch
@@ -109,7 +109,7 @@
+ /* fix dev_max_count to maclist_count - the actual number of
+ * available MACs
+ */
-+ if (dev_max_count <= 0)
++ if (dev_max_count <= 0 || (dev_max_count > maclist_count() && maclist_count() > 0))
+ dev_max_count = maclist_count();
+ if (dev_max_count <= 0)
+ dev_max_count = 1;