Protocol field for NULL encapsulation was read big endian.

This commit is contained in:
Seth Hall 2012-02-06 15:49:03 -05:00
parent 1f58ac875b
commit eca3261077

View file

@ -191,7 +191,7 @@ void PktSrc::Process()
switch ( datalink ) {
case DLT_NULL:
{
protocol = (data[3] << 24) + (data[2] << 16) + (data[1] << 8) + data[0];
protocol = (data[0] << 24) + (data[1] << 16) + (data[2] << 8) + data[3];
if ( protocol != AF_INET && protocol != AF_INET6 )
{