Skip to contentSkip to conversation

iptables counters with ethernet frame with tcp header ???

DISCUSSION Horst Meissner 1 participant 1 message Jan 30, 2003

lore
Share & tools
lore
#0 lore raw

Hello,
what exactly does the counters count

shaper:~# iptables -xvL OUT
Chain OUT (1 references)
    pkts      bytes target     prot opt 
in     out     source               destination
 1047519 
565962605            all  --  any    any     anywhere             anywhere
....

The first number is the number of the packets, and the second one the number of bytes. But witch size with ethernet frame (14 bytes + 4 bytes CRC) with IP header 20 bytes.... or without ?

What ist the correct one:

bytes target = 14 Bytes Ethernet  +  20 Bytes IP  + 20 Bytes TCP + XX Bytes Data + 4 Bytes  CRC
bytes target = 14 Bytes Ethernet  +  20 Bytes IP  + 20 Bytes TCP + XX Bytes Data

bytes target = 20 Bytes IP + 20 Bytes TCP + XX Bytes Data bytes target = 20 Bytes TCP + XX Bytes Data
bytes target = XX Bytes Data