src/node/ethernet-trailer.cc
changeset 1866 e7dbcc4df546
parent 1505 286ec92f4113
child 2643 2a3324f4dabe
equal deleted inserted replaced
1865:829dc1815014 1866:e7dbcc4df546
    54 {
    54 {
    55   m_calcFcs = enable;
    55   m_calcFcs = enable;
    56 }
    56 }
    57 
    57 
    58 bool
    58 bool
    59 EthernetTrailer::CheckFcs (const Packet& p) const
    59 EthernetTrailer::CheckFcs (Ptr<Packet> p) const
    60 {
    60 {
    61   if (!m_calcFcs)
    61   if (!m_calcFcs)
    62     {
    62     {
    63       return true;
    63       return true;
    64     } else {
    64     } else {
    66       return false;
    66       return false;
    67     }
    67     }
    68 }
    68 }
    69 
    69 
    70 void
    70 void
    71 EthernetTrailer::CalcFcs (const Packet& p)
    71 EthernetTrailer::CalcFcs (Ptr<Packet> p)
    72 {
    72 {
    73   NS_LOG_WARN ("FCS calculation is not yet enabled");
    73   NS_LOG_WARN ("FCS calculation is not yet enabled");
    74 }
    74 }
    75 
    75 
    76 void
    76 void