[Click] Packet Size

Roman Chertov rchertov at purdue.edu
Tue Aug 7 13:30:28 EDT 2007


Well to answer my own question.  In another email on the list, Eddie 
mentions that footer information might not be available.

http://osdir.com/ml/network.routing.click/2006-12/msg00011.html

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