[ipxe-devel] [PATCH] [dhcpv6] Arguments to dhcpv6_register() are exchanged

Hannes Reinecke hare at suse.de
Tue Oct 11 14:58:38 UTC 2016


dhcpv6_register() takes the lease as first and the server as
second argument, not the other way around.

Signed-off-by: Hannes Reinecke <hare at suse.com>
---
 src/net/udp/dhcpv6.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/net/udp/dhcpv6.c b/src/net/udp/dhcpv6.c
index cfc0fa5..b7258fa 100644
--- a/src/net/udp/dhcpv6.c
+++ b/src/net/udp/dhcpv6.c
@@ -908,7 +908,7 @@ static int dhcpv6_rx ( struct dhcpv6_session *dhcpv6,
 	}
 
 	/* Register settings */
-	if ( ( rc = dhcpv6_register ( &src->sin6_addr, &dhcpv6->lease,
+	if ( ( rc = dhcpv6_register ( &dhcpv6->lease, &src->sin6_addr,
 				      &options, parent ) ) != 0 ) {
 		DBGC ( dhcpv6, "DHCPv6 %s could not register settings: %s\n",
 		       dhcpv6->netdev->name, strerror ( rc ) );
-- 
2.6.6




More information about the ipxe-devel mailing list