Przeglądaj źródła

Updated to remove obsolete constants

tags/v0.9.3
Michael Brown 18 lat temu
rodzic
commit
b89ccac02d
1 zmienionych plików z 6 dodań i 6 usunięć
  1. 6
    6
      src/interface/pxe/pxe_undi.c

+ 6
- 6
src/interface/pxe/pxe_undi.c Wyświetl plik

@@ -168,9 +168,9 @@ PXENV_EXIT_t pxenv_undi_transmit ( struct s_PXENV_UNDI_TRANSMIT
168 168
 	 * the pre-assembled packet, then skip over the header.
169 169
 	 */
170 170
 	switch ( undi_transmit->Protocol ) {
171
-	case P_IP:	type = IP;	break;
172
-	case P_ARP:	type = ARP;	break;
173
-	case P_RARP:	type = RARP;	break;
171
+	case P_IP:	type = ETH_P_IP;	break;
172
+	case P_ARP:	type = ETH_P_ARP;	break;
173
+	case P_RARP:	type = ETH_P_RARP;	break;
174 174
 	case P_UNKNOWN:
175 175
 		media_header = (media_header_t*)data;
176 176
 		dest = media_header->dest;
@@ -496,9 +496,9 @@ PXENV_EXIT_t pxenv_undi_isr ( struct s_PXENV_UNDI_ISR *undi_isr ) {
496 496
 			memcpy ( pxe_stack->packet, nic.packet, nic.packetlen);
497 497
 			PTR_TO_SEGOFF16 ( pxe_stack->packet, undi_isr->Frame );
498 498
 			switch ( ntohs(media_header->nstype) ) {
499
-			case IP :	undi_isr->ProtType = P_IP;	break;
500
-			case ARP :	undi_isr->ProtType = P_ARP;	break;
501
-			case RARP :	undi_isr->ProtType = P_RARP;	break;
499
+			case ETH_P_IP:	undi_isr->ProtType = P_IP;	break;
500
+			case ETH_P_ARP:	undi_isr->ProtType = P_ARP;	break;
501
+			case ETH_P_RARP: undi_isr->ProtType = P_RARP;	break;
502 502
 			default :	undi_isr->ProtType = P_UNKNOWN;
503 503
 			}
504 504
 			if ( memcmp ( media_header->dest, broadcast_mac,

Ładowanie…
Anuluj
Zapisz