Geert Stappers wrote:
Op 20100319 om 16:55 schreef Steven Shiau:
On 2010/3/19 ?????? 04:54, Stefan Hajnoczi wrote:
On Fri, Mar 19, 2010 at 1:47 AM, Steven Shiau<[email protected]> wrote:
No really. My dirty hacking is just to comment out that part in dhcp.c.
Does this mean you removed the client identifier and dhcpd handed out
the same IP address when Linux booted?
Yes. That's true here.
Okay, it solved your problem.
Do you want to share the solution with us?
(in other words: Please, pretty please, post a patch )
Attached. It's not pretty, as I mentioned, it's a dirty hacking.
Actually I have no idea what will happen if it's used for Infiniband case.
However, with this modification, my client machine will only lease _ONE_
IP address from DHCP server. Before it leased 2 different ones.
Steven.
Groeten
Geert Stappers
_______________________________________________
gPXE mailing list
[email protected]
http://etherboot.org/mailman/listinfo/gpxe
--
Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org>
National Center for High-performance Computing, Taiwan. http://www.nchc.org.tw
Public Key Server PGP Key ID: 1024D/9762755A
Fingerprint: A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A
--- gpxe-1.0.0/src/net/udp/dhcp.c 2010-02-03 00:12:44.000000000 +0800
+++ gpxe-1.0.0.new/src/net/udp/dhcp.c 2010-03-19 20:09:40.612052282 +0800
@@ -1132,12 +1132,12 @@
ll_addr_len = netdev->ll_protocol->ll_addr_len;
assert ( ll_addr_len <= sizeof ( client_id.ll_addr ) );
memcpy ( client_id.ll_addr, netdev->ll_addr, ll_addr_len );
- if ( ( rc = dhcppkt_store ( dhcppkt, DHCP_CLIENT_ID, &client_id,
+ /*if ( ( rc = dhcppkt_store ( dhcppkt, DHCP_CLIENT_ID, &client_id,
( ll_addr_len + 1 ) ) ) != 0 ) {
DBG ( "DHCP could not set client ID: %s\n",
strerror ( rc ) );
return rc;
- }
+ }*/
/* Add client UUID, if we have one. Required for PXE. */
client_uuid.type = DHCP_CLIENT_UUID_TYPE;
_______________________________________________
gPXE mailing list
[email protected]
http://etherboot.org/mailman/listinfo/gpxe