Browse Source

Dump buffer and packet information in PXENV_UDP_READ as well

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
ce7289a766
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      src/interface/pxe/pxe_udp.c

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

@@ -407,6 +407,13 @@ PXENV_EXIT_t pxenv_udp_read ( struct s_PXENV_UDP_READ *pxenv_udp_read ) {
407 407
 	if ( d_port && ( d_port != pxenv_udp_read->d_port ) )
408 408
 		goto no_packet;
409 409
 
410
+	DBG ( " %04x:%04x+%x %s:%d<-%s:%d", pxenv_udp_read->buffer.segment,
411
+	      pxenv_udp_read->buffer.offset, pxenv_udp_read->buffer_size,
412
+	      inet_ntoa ( *( ( struct in_addr * ) &pxenv_udp_read->src_ip ) ),
413
+	      ntohs ( pxenv_udp_read->s_port ),
414
+	      inet_ntoa ( *( ( struct in_addr * ) &pxenv_udp_read->dest_ip ) ),
415
+	      ntohs ( pxenv_udp_read->d_port ) );
416
+
410 417
 	pxenv_udp_read->Status = PXENV_STATUS_SUCCESS;
411 418
 	return PXENV_EXIT_SUCCESS;
412 419
 

Loading…
Cancel
Save