out xmit (demux) pipe bw accounting
Chuck Swiger
cswiger at mac.com
Mon Aug 17 17:25:35 UTC 2009
Hi--
On Aug 17, 2009, at 7:32 AM, Michael Spratt wrote:
> Could not find answer to following question.
>
> Given :
> # pipe 1 config bw 1Mbit/sec
> # ipfw 1000 add pipe 1 ip from any to any out xmit em0
>
> Will the bandwidth limit include layer 2 Ethernet headers or will
> only the IP datagram itself be included in the accounting mechanism?
IPFW normally processes traffic at layer-3, but you can toggle
net.link.ether.ipfw sysctl to on, in which case the above rule would
also be run against layer-2 packets including the 802.3 ethernet
header. See the diagram in "PACKET FLOW" of "man ipfw"....
Regards,
--
-Chuck
More information about the freebsd-ipfw
mailing list