Browse Source

[pxe] Fix broadcast transmissions via PXENV_UDP_WRITE

pxenv_udp_write() needs to specify a net device, otherwise ipv4 is
unable to route broadcast transmissions.
tags/v0.9.4
Michael Brown 16 years ago
parent
commit
2090aade04
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/interface/pxe/pxe_udp.c

+ 1
- 0
src/interface/pxe/pxe_udp.c View File

@@ -255,6 +255,7 @@ PXENV_EXIT_t pxenv_udp_write ( struct s_PXENV_UDP_WRITE *pxenv_udp_write ) {
255 255
 	struct xfer_metadata meta = {
256 256
 		.src = ( struct sockaddr * ) &pxe_udp.local,
257 257
 		.dest = ( struct sockaddr * ) &dest,
258
+		.netdev = pxe_netdev,
258 259
 	};
259 260
 	size_t len;
260 261
 	struct io_buffer *iobuf;

Loading…
Cancel
Save