Skip to content

Commit 6058f0c

Browse files
committed
Implement get and set for StrongEndSystemModel
Signed-off-by: Anders Martinsson <anders.martinsson@intinor.se>
1 parent 61f8aae commit 6058f0c

6 files changed

Lines changed: 45 additions & 0 deletions

File tree

model/freebsd/ipv4-freebsd.cc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,18 @@ Ipv4FreeBSD::GetWeakEsModel (void) const
542542
return m_weakEsModel;
543543
}
544544

545+
void
546+
Ipv4FreeBSD::SetStrongEndSystemModel(bool model)
547+
{
548+
m_strongEsModel = model;
549+
}
550+
551+
bool
552+
Ipv4FreeBSD::GetStrongEndSystemModel() const
553+
{
554+
return m_strongEsModel;
555+
}
556+
545557
void
546558
Ipv4FreeBSD::InstallNode (Ptr<Node> node)
547559
{

model/freebsd/ipv4-freebsd.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,13 +356,16 @@ class Ipv4FreeBSD : public Ipv4
356356
virtual bool GetIpForward (void) const;
357357
virtual void SetWeakEsModel (bool model);
358358
virtual bool GetWeakEsModel (void) const;
359+
virtual void SetStrongEndSystemModel(bool model);
360+
virtual bool GetStrongEndSystemModel() const;
359361
uint32_t AddIpv4Interface (Ptr<Ipv4Interface> interface);
360362
Ptr<Ipv4Interface> GetInterface (uint32_t i) const;
361363

362364
typedef std::vector<Ptr<Ipv4Interface> > Ipv4InterfaceList;
363365
Ptr<Ipv4RoutingProtocol> m_routingProtocol;
364366
bool m_ipForward;
365367
bool m_weakEsModel;
368+
bool m_strongEsModel;
366369
Ipv4InterfaceList m_interfaces;
367370
uint64_t m_nanoSec;
368371
};

model/linux/ipv4-linux.cc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,18 @@ Ipv4Linux::GetWeakEsModel (void) const
522522
return m_weakEsModel;
523523
}
524524

525+
void
526+
Ipv4Linux::SetStrongEndSystemModel(bool model)
527+
{
528+
m_strongEsModel = model;
529+
}
530+
531+
bool
532+
Ipv4Linux::GetStrongEndSystemModel() const
533+
{
534+
return m_strongEsModel;
535+
}
536+
525537
void
526538
Ipv4Linux::InstallNode (Ptr<Node> node)
527539
{

model/linux/ipv4-linux.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,13 +355,16 @@ class Ipv4Linux : public Ipv4
355355
virtual bool GetIpForward (void) const;
356356
virtual void SetWeakEsModel (bool model);
357357
virtual bool GetWeakEsModel (void) const;
358+
virtual void SetStrongEndSystemModel(bool model);
359+
virtual bool GetStrongEndSystemModel() const;
358360
uint32_t AddIpv4Interface (Ptr<Ipv4Interface> interface);
359361
Ptr<Ipv4Interface> GetInterface (uint32_t i) const;
360362

361363
typedef std::vector<Ptr<Ipv4Interface> > Ipv4InterfaceList;
362364
Ptr<Ipv4RoutingProtocol> m_routingProtocol;
363365
bool m_ipForward;
364366
bool m_weakEsModel;
367+
bool m_strongEsModel;
365368
Ipv4InterfaceList m_interfaces;
366369
uint64_t m_nanoSec;
367370
};

model/linux/ipv6-linux.cc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,18 @@ Ipv6Linux::GetWeakEsModel (void) const
453453
return m_weakEsModel;
454454
}
455455

456+
void
457+
Ipv6Linux::SetStrongEndSystemModel(bool model)
458+
{
459+
m_strongEsModel = model;
460+
}
461+
462+
bool
463+
Ipv6Linux::GetStrongEndSystemModel() const
464+
{
465+
return m_strongEsModel;
466+
}
467+
456468
void
457469
Ipv6Linux::InstallNode (Ptr<Node> node)
458470
{

model/linux/ipv6-linux.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,8 @@ class Ipv6Linux : public Ipv6
327327

328328
virtual void SetWeakEsModel (bool model);
329329
virtual bool GetWeakEsModel (void) const;
330+
virtual void SetStrongEndSystemModel(bool model);
331+
virtual bool GetStrongEndSystemModel() const;
330332
uint32_t AddIpv6Interface (Ptr<Ipv6Interface> interface);
331333
Ptr<Ipv6Interface> GetInterface (uint32_t i) const;
332334

@@ -336,6 +338,7 @@ class Ipv6Linux : public Ipv6
336338
bool m_mtuDiscover;
337339
Ptr<Ipv6PmtuCache> m_pmtuCache;
338340
bool m_weakEsModel;
341+
bool m_strongEsModel;
339342
Ipv6InterfaceList m_interfaces;
340343
uint64_t m_nanoSec;
341344
};

0 commit comments

Comments
 (0)