diff --git a/scapy/packet.py b/scapy/packet.py index 656645c90250e314e4ecd2df475ec7caf10786fa..b4abb001531a53caedfd64c21c82827cf1fca9c3 100644 --- a/scapy/packet.py +++ b/scapy/packet.py @@ -226,7 +226,7 @@ class Packet(BasePacket): val = f.i2repr(self, self.overloaded_fields[f.name]) else: continue - if isinstance(f, Emph): + if isinstance(f, Emph) or f in conf.emph: ncol = ct.emph_field_name vcol = ct.emph_field_value else: @@ -775,7 +775,7 @@ Creates an EPS file describing a packet. If filename is not provided a temporary for f in self.fields_desc: if isinstance(f, ConditionalField) and not f._evalcond(self): continue - if isinstance(f, Emph): + if isinstance(f, Emph) or f in conf.emph: ncol = ct.emph_field_name vcol = ct.emph_field_value else: