mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 03:28:19 +00:00
Protocol field for NULL encapsulation was read big endian.
This commit is contained in:
parent
1f58ac875b
commit
eca3261077
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ void PktSrc::Process()
|
||||||
switch ( datalink ) {
|
switch ( datalink ) {
|
||||||
case DLT_NULL:
|
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 )
|
if ( protocol != AF_INET && protocol != AF_INET6 )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue