diff options
| author | Michael Brown | 2006-04-19 04:11:56 +0200 |
|---|---|---|
| committer | Michael Brown | 2006-04-19 04:11:56 +0200 |
| commit | b89ccac02de464f2a1c5060060e4174c04eeff83 (patch) | |
| tree | 2082c841bd5c6d0c194da98ab34136f1df2c2f24 /src | |
| parent | Added the concept of a network interface (a network-layer concept) as (diff) | |
| download | ipxe-b89ccac02de464f2a1c5060060e4174c04eeff83.tar.gz ipxe-b89ccac02de464f2a1c5060060e4174c04eeff83.tar.xz ipxe-b89ccac02de464f2a1c5060060e4174c04eeff83.zip | |
Updated to remove obsolete constants
Diffstat (limited to 'src')
| -rw-r--r-- | src/interface/pxe/pxe_undi.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/interface/pxe/pxe_undi.c b/src/interface/pxe/pxe_undi.c index 3919915bd..b6e74632f 100644 --- a/src/interface/pxe/pxe_undi.c +++ b/src/interface/pxe/pxe_undi.c @@ -168,9 +168,9 @@ PXENV_EXIT_t pxenv_undi_transmit ( struct s_PXENV_UNDI_TRANSMIT * the pre-assembled packet, then skip over the header. */ switch ( undi_transmit->Protocol ) { - case P_IP: type = IP; break; - case P_ARP: type = ARP; break; - case P_RARP: type = RARP; break; + case P_IP: type = ETH_P_IP; break; + case P_ARP: type = ETH_P_ARP; break; + case P_RARP: type = ETH_P_RARP; break; case P_UNKNOWN: media_header = (media_header_t*)data; dest = media_header->dest; @@ -496,9 +496,9 @@ PXENV_EXIT_t pxenv_undi_isr ( struct s_PXENV_UNDI_ISR *undi_isr ) { memcpy ( pxe_stack->packet, nic.packet, nic.packetlen); PTR_TO_SEGOFF16 ( pxe_stack->packet, undi_isr->Frame ); switch ( ntohs(media_header->nstype) ) { - case IP : undi_isr->ProtType = P_IP; break; - case ARP : undi_isr->ProtType = P_ARP; break; - case RARP : undi_isr->ProtType = P_RARP; break; + case ETH_P_IP: undi_isr->ProtType = P_IP; break; + case ETH_P_ARP: undi_isr->ProtType = P_ARP; break; + case ETH_P_RARP: undi_isr->ProtType = P_RARP; break; default : undi_isr->ProtType = P_UNKNOWN; } if ( memcmp ( media_header->dest, broadcast_mac, |
