equal
deleted
inserted
replaced
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 |