diff options
author | hpa <hpa> | 2003-04-08 00:24:26 +0000 |
---|---|---|
committer | hpa <hpa> | 2003-04-08 00:24:26 +0000 |
commit | b360d0d4c13b65b4afcaad96a75fda8296d9ce62 (patch) | |
tree | d572c45de1ab2d6173f087c4e7550018d5d2e697 | |
parent | 186cd6eb00a9523859fae2526479c073407d460b (diff) | |
download | syslinux-b360d0d4c13b65b4afcaad96a75fda8296d9ce62.tar.gz |
One more instance of gateway-setting
-rw-r--r-- | pxelinux.asm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pxelinux.asm b/pxelinux.asm index 15e78209..7798f21d 100644 --- a/pxelinux.asm +++ b/pxelinux.asm @@ -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 |