Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
iPXE to redirect boot to another PXE server
2013-04-15, 14:39 (This post was last modified: 2013-04-15 14:42 by Kirioss.)
Post: #10
RE: iPXE to redirect boot to another PXE server
I may not understand your answer, but the IP I need to modify is not the client IP but the PXE server IP given by the DHCP (I want to overwrite it regarding some external rules)

My ugly code modification (for testing purposes) is in start_pxebs in src/net/udp/dhcp.c

Code:
/* Dump out PXE server lists */
    DBGC ( dhcp, "DHCP %p attempting", dhcp );
    for ( ip = dhcp->pxe_attempt ; ip->s_addr ; ip++ )
        DBGC ( dhcp, " %s", inet_ntoa ( *ip ) );
         inet_aton ("10.1.2.3",ip);      // <---- HERE
    DBGC ( dhcp, "\n" );
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: iPXE to redirect boot to another PXE server - Kirioss - 2013-04-15 14:39



User(s) browsing this thread: 1 Guest(s)