Set mac mode to fixed for pcap imported streams
We need to explicitly set it to fixed 'coz the default has changed from fixed to resolve. Fixes #282
This commit is contained in:
parent
c8a4c3eee9
commit
884990d03c
@ -122,3 +122,12 @@ void PdmlEthProtocol::unknownFieldHandler(QString name, int /*pos*/,
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void PdmlEthProtocol::postProtocolHandler(OstProto::Protocol *pbProto,
|
||||||
|
OstProto::Stream* /*stream*/)
|
||||||
|
{
|
||||||
|
OstProto::Mac *mac = pbProto->MutableExtension(OstProto::mac);
|
||||||
|
|
||||||
|
mac->set_dst_mac_mode(OstProto::Mac::e_mm_fixed);
|
||||||
|
mac->set_src_mac_mode(OstProto::Mac::e_mm_fixed);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -30,6 +30,8 @@ public:
|
|||||||
virtual void unknownFieldHandler(QString name, int pos, int size,
|
virtual void unknownFieldHandler(QString name, int pos, int size,
|
||||||
const QXmlStreamAttributes &attributes,
|
const QXmlStreamAttributes &attributes,
|
||||||
OstProto::Protocol *pbProto, OstProto::Stream *stream);
|
OstProto::Protocol *pbProto, OstProto::Stream *stream);
|
||||||
|
virtual void postProtocolHandler(OstProto::Protocol *pbProto,
|
||||||
|
OstProto::Stream *stream);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
PdmlEthProtocol();
|
PdmlEthProtocol();
|
||||||
|
Loading…
Reference in New Issue
Block a user