One more instance of gateway-setting
authorhpa <hpa>
Tue, 8 Apr 2003 00:24:26 +0000 (00:24 +0000)
committerhpa <hpa>
Tue, 8 Apr 2003 00:24:26 +0000 (00:24 +0000)
pxelinux.asm

index 15e7820..7798f21 100644 (file)
@@ -1623,6 +1623,12 @@ ack_packet:
                mov [pxe_udp_write_pkt.rport],ax
                mov eax,[si+tftp_remoteip]
                mov [pxe_udp_write_pkt.sip],eax
+               xor eax,[MyIP]
+               and eax,[Netmask]
+               jz .nogw
+               mov eax,[Gateway]
+.nogw:
+               mov [pxe_udp_write_pkt.gip],eax
                mov [pxe_udp_write_pkt.buffer],word ack_packet_buf
                mov [pxe_udp_write_pkt.buffersize], word 4
                mov di,pxe_udp_write_pkt