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