From: Horst Meissner Subject: iptables counters with ethernet frame with tcp header ??? Date: Thu, 30 Jan 2003 19:11:47 +0100 Sender: netfilter-admin@lists.netfilter.org Message-ID: <5.1.0.14.0.20030130191126.02795ec0@authsmtp.inline.de> Mime-Version: 1.0 Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit To: netfilter@lists.netfilter.org 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