Default to ethernet if the server doesn't specify

Still need to recompile sniffer, but this will fix the immediate problem
of stack traces and failing to save the pcap.
unstable
James Lee 2012-05-23 10:06:30 -06:00
parent e97994fdde
commit dc08bc337b
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ class Sniffer < Extension
{
:packets => response.get_tlv_value(TLV_TYPE_SNIFFER_PACKET_COUNT),
:bytes => response.get_tlv_value(TLV_TYPE_SNIFFER_BYTE_COUNT),
:linktype => response.get_tlv_value(TLV_TYPE_SNIFFER_INTERFACE_ID),
:linktype => response.get_tlv_value(TLV_TYPE_SNIFFER_INTERFACE_ID) || 1,
}
end