Skip to contentSkip to conversation

iptables log Len ?

DISCUSSION Michael Gale 2 participants 2 messages Jan 29, 2004

lore
Share & tools
lore
#0 lore raw

Hello,

When you log a packet entry one of the fields is Len (example Len=78). Now does this mean the was
was 78 bytes ?

Signature · 3 lines
Michael Gale
Network Administrator
Utilitran Corporation
#1 lore raw

Good evening, Michael,

Quoted 2 lines · Michael Gale

When you log a packet entry one of the fields is Len (example
Len=78). Now does this mean the was was 78 bytes ?

Yes, the first LEN on the line is the length of the IP header, TCP
header, and payload. Some packets have 2 LEN tokens, I believe the second is TCP header + payload. For ICMP error messages where the original packet decode is inside [...], the LEN inside the square brackets is the length of the packet that elicited the error.
Cheers,
- Bill

---------------------------------------------------------------------------
"Whip me, beat me, make me use ipchains."
- Paul "Rusty" Russell
--------------------------------------------------------------------------
William Stearns ([email protected]). Mason, Buildkernel, freedups, p0f,
rsync-backup, ssh-keyinstall, dns-check, more at: http://www.stearns.org
--------------------------------------------------------------------------