[Click] Packet Size
Eddie Kohler
kohler at cs.ucla.edu
Mon Aug 27 16:56:44 EDT 2007
Hi Roman,
Just to confirm your self-reply: Linux device drivers/devices are
expected to add the Ethernet CRC themselves; Click elements do not need
to do this.
Eddie
Roman Chertov wrote:
> Hello,
> I have a question about frame sizes. When I use the script below I
> produce packets that are 242 bytes in length. I have modified
> AverageCounter to also count the number of bytes that pass through it by
> looking at p->length(). Both counter and ethereal report the packets to
> be 242 bytes in length. (200+14+20+8) However, I don't think this is
> correct as the Ethernet spec dictates that 4 byte footer must be used
> for CRC as well. So my question is this: Does the footer get added by
> the device driver and Click does not deal with it?
>
> src :: RatedSource(\<0800>, 10, 10, DATASIZE 200)
> -> DynamicUDPIPEncap(10.0.1.1, 1234, 10.0.2.1, 4321, 1)
> -> CheckIPHeader2(0)
> -> EtherEncap(0x0800, 01:02:03:04:05:06, 06:05:04:03:02:01)
> -> ctr :: AverageCounter
> -> ToHostSniffers(eth6);
>
>
> Many Thanks,
>
> Roman
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
More information about the click
mailing list