[Click] a question about test.click

Eddie Kohler kohler at cs.ucla.edu
Sun Oct 10 18:22:48 EDT 2004


liuzhan_hn wrote:
>      I have a question about test.click. In the element 
> InfiniteSource(DATA \<00 00 c0 ae 67 ef  00 00 00 00 00 00  08 00
> 45 00 00 28  00 00 00 00  40 11 77 c3  01 00 00 01  02 00 00 02  
> 13 69 13 69  00 14 d6 41  
> 55 44 50 20  70 61 63 6b  65 74 21 0a>, LIMIT 5, STOP true)
>      I know "00 00 c0 ae 67 ef  00 00 00 00 00 00  08 00"is the ethenet header, "45 00 00 28  00 00 00 00  40 11 77 c3  01 00 00 01  02 00 00 02"is the ip header, "13 69 13 69  00 14 d6 41" is the udp header, and "55 44 50 20  70 61 63 6b  65 74 21 0a"is the udp
> payload. 
>      But why Print(ok) only prints message about ip head and udp head? The udp payload is not printed. Another question is why the ethernet package is less than 60 byte?(the minimum size of ethernet is 60 bytes)
>      Could anyone help me to figure it out,please? Thank you very much.

(1) You need to give Print more arguments to get it to print
UDP data.  Try Print(ok, NBYTES 10000).  man Print to learn
about its arguments.

(2) InfiniteSource doesn't generate "Ethernet packets", it
generates "packets".  This one happens to contain Ethernet
data, but InfiniteSource doesn't know anything about Ethernet.
Elements that actually send to the network, and that therefore
must understand Ethernet -- ToDevice, mostly -- pad packets
that would otherwise be too short.

Eddie




More information about the click mailing list