|
|
| 541 |
header.SetProtocol (PROT_NUMBER); |
541 |
header.SetProtocol (PROT_NUMBER); |
| 542 |
Socket::SocketErrno errno_; |
542 |
Socket::SocketErrno errno_; |
| 543 |
Ptr<Ipv4Route> route; |
543 |
Ptr<Ipv4Route> route; |
| 544 |
Ptr<NetDevice> oif (0); //specify non-zero if bound to a source address |
|
|
| 545 |
if (ipv4->GetRoutingProtocol () != 0) |
544 |
if (ipv4->GetRoutingProtocol () != 0) |
| 546 |
{ |
545 |
{ |
| 547 |
route = ipv4->GetRoutingProtocol ()->RouteOutput (packet, header, oif, errno_); |
546 |
route = ipv4->GetRoutingProtocol ()->RouteOutput (packet, header, oif, errno_); |
|
|
| 585 |
header.SetNextHeader (PROT_NUMBER); |
584 |
header.SetNextHeader (PROT_NUMBER); |
| 586 |
Socket::SocketErrno errno_; |
585 |
Socket::SocketErrno errno_; |
| 587 |
Ptr<Ipv6Route> route; |
586 |
Ptr<Ipv6Route> route; |
| 588 |
Ptr<NetDevice> oif (0); //specify non-zero if bound to a source address |
|
|
| 589 |
if (ipv6->GetRoutingProtocol () != 0) |
587 |
if (ipv6->GetRoutingProtocol () != 0) |
| 590 |
{ |
588 |
{ |
| 591 |
route = ipv6->GetRoutingProtocol ()->RouteOutput (packet, header, oif, errno_); |
589 |
route = ipv6->GetRoutingProtocol ()->RouteOutput (packet, header, oif, errno_); |