[Click] questions about arpquerier

Eddie Kohler kohler at cs.ucla.edu
Sat Feb 27 20:13:06 EST 2010


Hi,

ARPQuerier expects its input packets to be IP.  your configuration sends ARP 
queries to ARPQuerier, which does not make sense.  Look at fake-iprouter.click 
for examples; Classifier(12/0800) detects IP packets; you then need to verify 
them as IP using CHeckIPHeader.

Eddie


科进 舒 wrote:
>     hi,all!
>     Now my condition is that,given an IP address,I want to get its MAC address.Nowadays,I learned much about ARPQuerier,but I don't know how to use it to get the MAC address.here is my code,which is just used to test ARPQuerier,but failed:
> c::Classifier(12/0806 20/0001,
>               12/0806 20/0002,
>               12/0800,
>                -);
> arpt::Tee(3);
> arpq::ARPQuerier(211.69.207.78,eth0);
> arpr::ARPResponder(211.69.207.78,eth1)
> FromDevice(eth0)
> ->c
> c[0]->[0]arpq
> c[1]->[1]arpq
> a->Queue(20)
>  ->Print(ok)->Discard;
> //DriverManager(wait_stop,print ar[0].table);
> c[2]->Discard;
> c[3]->Discard;
> error:[root at localhost click-1.6.0]# click conf/arptest.click
> a :: ARPQuerier: would query for 0.0.0.0; missing dest IP addr annotation?
> 
> Anybody who can give me some advice and help?
> 
> 
>       ___________________________________________________________ 
>   好玩贺卡等你发,邮箱贺卡全新上线! 
> http://card.mail.cn.yahoo.com/
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click



More information about the click mailing list