Module Name: src Committed By: pooka Date: Mon Mar 14 23:02:16 UTC 2011
Modified Files: src/usr.bin/rump_dhcpclient: main.c Log Message: Record address from offer to actually send it as part of the request. May fix interaction with some pickier dhcp servers (like riz's). Thanks to Jeff for debugging assistance. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/usr.bin/rump_dhcpclient/main.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/rump_dhcpclient/main.c diff -u src/usr.bin/rump_dhcpclient/main.c:1.1 src/usr.bin/rump_dhcpclient/main.c:1.2 --- src/usr.bin/rump_dhcpclient/main.c:1.1 Thu Jan 20 18:47:20 2011 +++ src/usr.bin/rump_dhcpclient/main.c Mon Mar 14 23:02:16 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.1 2011/01/20 18:47:20 pooka Exp $ */ +/* $NetBSD: main.c,v 1.2 2011/03/14 23:02:16 pooka Exp $ */ /*- * Copyright (c) 2011 Antti Kantee. All Rights Reserved. @@ -204,6 +204,8 @@ ifp->state->offer = xzalloc(sizeof(*ifp->state->offer)); memcpy(ifp->state->offer, dhcp, sizeof(*ifp->state->offer)); + ifp->state->lease.addr.s_addr = dhcp->yiaddr; + ifp->state->lease.cookie = dhcp->cookie; free(raw); }