|
428 |
os << (m_dontFragment?"true":"false"); |
428 |
os << (m_dontFragment?"true":"false"); |
429 |
} |
429 |
} |
430 |
|
430 |
|
|
|
431 |
|
432 |
SocketRecvIfTag::SocketRecvIfTag () |
433 |
{ |
434 |
} |
435 |
|
436 |
void |
437 |
SocketRecvIfTag::SetRecvIf (uint32_t ifindex) |
438 |
{ |
439 |
m_ifindex = ifindex; |
440 |
} |
441 |
|
442 |
uint32_t |
443 |
SocketRecvIfTag::GetRecvIf (void) const |
444 |
{ |
445 |
return m_ifindex; |
446 |
} |
447 |
|
448 |
|
449 |
TypeId |
450 |
SocketRecvIfTag::GetTypeId (void) |
451 |
{ |
452 |
static TypeId tid = TypeId ("ns3::SocketRecvIfTag") |
453 |
.SetParent<Tag> () |
454 |
.AddConstructor<SocketRecvIfTag> () |
455 |
; |
456 |
return tid; |
457 |
} |
458 |
TypeId |
459 |
SocketRecvIfTag::GetInstanceTypeId (void) const |
460 |
{ |
461 |
return GetTypeId (); |
462 |
} |
463 |
|
464 |
uint32_t |
465 |
SocketRecvIfTag::GetSerializedSize (void) const |
466 |
{ |
467 |
return sizeof(uint32_t); |
468 |
} |
469 |
void |
470 |
SocketRecvIfTag::Serialize (TagBuffer i) const |
471 |
{ |
472 |
i.WriteU32 (m_ifindex); |
473 |
} |
474 |
void |
475 |
SocketRecvIfTag::Deserialize (TagBuffer i) |
476 |
{ |
477 |
m_ifindex = i.ReadU32 (); |
478 |
} |
479 |
void |
480 |
SocketRecvIfTag::Print (std::ostream &os) const |
481 |
{ |
482 |
os << "RecvIf=" << (uint32_t) m_ifindex; |
483 |
} |
484 |
|
431 |
}//namespace ns3 |
485 |
}//namespace ns3 |