|
539 |
// 4) packet is not broadcast, and is passed in with a route entry but route->GetGateway is not set (e.g., on-demand) |
539 |
// 4) packet is not broadcast, and is passed in with a route entry but route->GetGateway is not set (e.g., on-demand) |
540 |
// 5) packet is not broadcast, and route is NULL (e.g., a raw socket call, or ICMP) |
540 |
// 5) packet is not broadcast, and route is NULL (e.g., a raw socket call, or ICMP) |
541 |
|
541 |
|
542 |
// 1) packet is destined to limited broadcast address |
542 |
// 1) packet is destined to limited broadcast address or link-local multicast address |
543 |
if (destination.IsBroadcast ()) |
543 |
if (destination.IsBroadcast () || destination.IsLocalMulticast ()) |
544 |
{ |
544 |
{ |
545 |
NS_LOG_LOGIC ("Ipv4L3Protocol::Send case 1: limited broadcast"); |
545 |
NS_LOG_LOGIC ("Ipv4L3Protocol::Send case 1: limited broadcast"); |
546 |
ipHeader = BuildHeader (source, destination, protocol, packet->GetSize (), ttl, mayFragment); |
546 |
ipHeader = BuildHeader (source, destination, protocol, packet->GetSize (), ttl, mayFragment); |