iptables counters with ethernet frame with tcp header ???

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux