[Click] problems about fake-iprouter.click

Æë qiqi1982mm at 21cn.com
Mon Oct 11 04:10:59 EDT 2004


Hello 
  We have new problems about  the example "fake-iprouter".
  The major problems are as follows:
1.In the annotations, it tells us 
  eth0, 00:00:C0:AE:67:EF, 18.26.4.24
  eth1, 00:00:C0:4F:71:EF, 18.26.7.1
so we know MAC address of 18.26.4.24 is 00:00:C0:AE:67:EFbut in the InfiniteSource element,it shows us 
   InfiniteSource(DATA \<
  // Ethernet header
  00 00 c0 ae 67 ef  00 00 00 00 00 00  08 00
  // IP header
  45 00 00 28  00 00 00 00  40 11 77 c3  01 00 00 01  02 00 00 02
......
we can see the source ip is 01 00 00 01, the destination is 02 00 00 02, and the mac address of the source ip is 00 00 c0 ac 67 ef.
So we want to know why the mac address of 18.26.4.24 and 1.0.0.1 
are the same. Also I am wondering whether eth0 and eth1 are the 
two network cards in one machine?

2.In the beginning of program,it defines two Classifier elements,c0 and 
c1, but about the c0, which input is Idel, meaning input nothing to it.
and we want to know whether c0 is no use. If the answer is yes ,why we define this element?

3.The third problem is about EtherEncap element.In the program,it shows us
fake_arpq0 :: EtherEncap(0x0800, 00:00:c0:ae:67:ef, 00:00:c0:4f:71:ef);
fake_arpq1 :: EtherEncap(0x0800, 00:00:c0:4f:71:ef, 00:00:c0:4f:71:ef);
notice the second line,why it uses the same source and destination mac address?
thanks
                                                              xixi
                                                            2004.10.11
----------------------------------------------
À¬»øÓʼþ vs À¬»øɱÊÖ£¬whoÅÂwho£¿ 
http://www.polesoft.com/china/index_21cn.html 
Òƶ¯¿¨À²ok£¬¶À¼ÒÊÔ³ª 
http://mms.21cn.com/ring/ring.jsp 
רÌ⣺ÕÔޱָʹ˾»ú´òÈËʼþ 
http://news.21cn.com/social/ 
21CNÉÌÎñÓÊÏäÎåÒ»8ÕÛÓŻݣ¬·áºñ½±Æ·µÈÄãÄà 
http://mail.21cn.com/huodong/0405/business/detail.html 
ÆóÒµÓÊÏäÏÄÈÕ´óÓŻݣ¬ÊÖ»ú¡¢MP3¼´Ê±ËÍ 
http://mail.21cn.com/huodong/0405/corpmail/ 






More information about the click mailing list