[gPXE-devel] [PATCH 21/31] [ipv6] handle netdev parameter being non-null in ipv6_tx
matthew at theiselins.net
matthew at theiselins.net
Fri Jul 8 10:28:30 EDT 2011
From: Matthew Iselin <matthew at theiselins.net>
Signed-off-by: Matthew Iselin <matthew at theiselins.net>
---
src/net/ipv6.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/net/ipv6.c b/src/net/ipv6.c
index 97665b8..78e1eb2 100644
--- a/src/net/ipv6.c
+++ b/src/net/ipv6.c
@@ -212,6 +212,11 @@ static int ipv6_tx ( struct io_buffer *iobuf,
/* Determine the next hop address and interface. */
next_hop = dest->sin6_addr;
list_for_each_entry ( miniroute, &miniroutes, list ) {
+ /* Check for specific netdev */
+ if ( netdev && ( miniroute->netdev != netdev ) ) {
+ continue;
+ }
+
/* Link-local route? */
linklocal = (miniroute->address.in6_u.u6_addr16[0] & htons(0xFE80)) == htons(0xFE80);
--
1.7.2.5
More information about the gPXE-devel
mailing list