Signed-off-by: jack <jack@k-net.pro>
This commit is contained in:
jack 2017-04-02 14:08:17 +02:00
parent d0599e60ae
commit 2017097b30
No known key found for this signature in database
GPG Key ID: 1C625C4E15F0CF99

View File

@ -595,7 +595,7 @@ sub parse_sflow {
my $srcip = undef;
my $dstip= undef;
my (undef, $ethertype, $ipdata) = unpack('a12H4a*', $sFlowSample->{'HeaderBin'});
if($ethertype eq 8100){
if($ethertype eq '8100'){
(undef, $ethertype, $ipdata) = unpack('nH4a*', $ipdata);
}