david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Always include code for sending multicast packets.

This commit is contained in:
Michael Brown 2005-06-02 10:14:26 +00:00
parent 95967adc8c
commit cbed5ed9ad
1 changed files with 0 additions and 4 deletions

View File

@ -424,7 +424,6 @@ int ip_transmit(int len, const void *buf)
destip = ip->dest.s_addr;
if (destip == IP_BROADCAST) {
eth_transmit(broadcast, ETH_P_IP, len, buf);
#ifdef MULTICAST_LEVEL1
} else if ((destip & htonl(MULTICAST_MASK)) == htonl(MULTICAST_NETWORK)) {
unsigned char multicast[6];
unsigned long hdestip;
@ -436,7 +435,6 @@ int ip_transmit(int len, const void *buf)
multicast[4] = (hdestip >> 8) & 0xff;
multicast[5] = hdestip & 0xff;
eth_transmit(multicast, ETH_P_IP, len, buf);
#endif
} else {
if (((destip & netmask) !=
(arptable[ARP_CLIENT].ipaddr.s_addr & netmask)) &&
@ -1152,10 +1150,8 @@ RFC2131_SLEEP_INTERVAL - sleep for expotentially longer times (base << exp) +- 1
long rfc2131_sleep_interval(long base, int exp)
{
unsigned long tmo;
#ifdef BACKOFF_LIMIT
if (exp > BACKOFF_LIMIT)
exp = BACKOFF_LIMIT;
#endif
tmo = (base << exp) + (TICKS_PER_SEC - (random()/TWO_SECOND_DIVISOR));
return tmo;
}