From qq119512 at iii.u-tokyo.ac.jp Mon Oct 7 08:17:18 2013 From: qq119512 at iii.u-tokyo.ac.jp (Hamid Farhadi) Date: Mon, 07 Oct 2013 21:17:18 +0900 Subject: [Click] finding an element in the configuration using Router::find() In-Reply-To: <52403DC6.8070702@informatik.uni-bonn.de> References: <52403810.5050009@iii.u-tokyo.ac.jp> <52403DC6.8070702@informatik.uni-bonn.de> Message-ID: <5252A64E.1000405@iii.u-tokyo.ac.jp> now it works thanks On 9/23/13 10:10 PM, Sascha Alexander Jopen wrote: > Hi Hamid, > > you can either use Router::elements() to iterate over all elements in > your configuration if there are several potential candiates, or use > Router::find("elemB") if you give the element to be found a name like so: > > elemA :: elementA(); > elemB :: elementB(); > > Regards, > Sascha > > On 23.09.2013 14:46, Hamid Farhadi wrote: >> Hi >> >> using Router::visit_upstream/downstream() in this config elementA can >> find elementB: >> elementA()->elementB(); >> >> But in this one it can not: >> elementA(); >> elementB(); >> >> I mean consider some elements like ControlSocket, how can I find it from >> another element, please? >> >> Here is how I use Router::visit_upstream/downstream(): >> >> ElementCastTracker filter(router() , "elementB" ); >> Element* e = router()->visit_upstream( this , 0 , &filter ); >> elementB* b = (elementB*)filter[0]->cast( "elementB" ); >> >> If the solution is Router::find(), I could not find an example of how to >> use it. when it returns an element, how should I cast it to use its members? >> >> Any help is appreciated, >> Hamid >> >> >> _______________________________________________ >> click mailing list >> click at amsterdam.lcs.mit.edu >> https://amsterdam.lcs.mit.edu/mailman/listinfo/click >> > > From qq119512 at iii.u-tokyo.ac.jp Mon Oct 7 08:17:22 2013 From: qq119512 at iii.u-tokyo.ac.jp (Hamid Farhadi) Date: Mon, 07 Oct 2013 21:17:22 +0900 Subject: [Click] many compile errors on etc/samplepackage Message-ID: <5252A652.2060206@iii.u-tokyo.ac.jp> Hi I tried compiling etc/samplepackage but it fires many errors on many different elements in share/click/src ? I just run autoconfig in the folder then ./configure and make which goes through compiling all the elements. I know at least a couple of them that work in the Click main installation without problem. I kept deleting elements woth errors till I got this error: /usr/local/bin/click-buildtool -C /usr/local elem2package sample < uelements.conf > upackage.cc CXX upackage.cc upackage.cc: In function ?Element* beetlemonkey(uintptr_t)?: upackage.cc:828:25: error: expected type-specifier before ?MyNothingElement? upackage.cc:828:25: error: cannot convert ?int*? to ?Element*? in return upackage.cc:828:25: error: expected ?;? before ?MyNothingElement? upackage.cc:828:25: error: ?MyNothingElement? was not declared in this scope make[1]: *** [upackage.uo] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/home/yilong/Desktop/kohler-click-d3e8e31/etc/samplepackage' make: *** [sample.uo] Error 2 Whats wrong please? --Hamid From qq119512 at iii.u-tokyo.ac.jp Tue Oct 8 00:02:15 2013 From: qq119512 at iii.u-tokyo.ac.jp (Hamid Farhadi) Date: Tue, 08 Oct 2013 13:02:15 +0900 Subject: [Click] many compile errors on etc/samplepackage In-Reply-To: <5252A652.2060206@iii.u-tokyo.ac.jp> References: <5252A652.2060206@iii.u-tokyo.ac.jp> Message-ID: <525383C7.6020100@iii.u-tokyo.ac.jp> Sorry for my bad explanation, ofcourse i can comment out that line like previous errors and finish the compilation. but I am saying the compilation scripts look old. am I right? also the Click ./configure seems does not accept --with-PACKAGE switch or maybe I do not know how to use it. any idea please? --Hamid On 10/7/13 9:17 PM, Hamid Farhadi wrote: > Hi > > I tried compiling etc/samplepackage but it fires many errors on many > different elements in share/click/src ? > > I just run autoconfig in the folder then ./configure and make which goes > through compiling all the elements. I know at least a couple of them > that work in the Click main installation without problem. I kept > deleting elements woth errors till I got this error: > > /usr/local/bin/click-buildtool -C /usr/local elem2package sample < > uelements.conf > upackage.cc > CXX upackage.cc > upackage.cc: In function ?Element* beetlemonkey(uintptr_t)?: > upackage.cc:828:25: error: expected type-specifier before ?MyNothingElement? > upackage.cc:828:25: error: cannot convert ?int*? to ?Element*? in return > upackage.cc:828:25: error: expected ?;? before ?MyNothingElement? > upackage.cc:828:25: error: ?MyNothingElement? was not declared in this scope > make[1]: *** [upackage.uo] Error 1 > make[1]: *** Waiting for unfinished jobs.... > make[1]: Leaving directory > `/home/yilong/Desktop/kohler-click-d3e8e31/etc/samplepackage' > make: *** [sample.uo] Error 2 > > Whats wrong please? > > > --Hamid > > > > _______________________________________________ > click mailing list > click at amsterdam.lcs.mit.edu > https://amsterdam.lcs.mit.edu/mailman/listinfo/click > From roberto.riggio at create-net.org Mon Oct 14 09:22:25 2013 From: roberto.riggio at create-net.org (Roberto Riggio) Date: Mon, 14 Oct 2013 15:22:25 +0200 Subject: [Click] Number of backlogged packets from downstream element Message-ID: <525BF011.4080601@create-net.org> Hi, is there a way in click to know from a downstream element if a there are packet stored in one or more queues? E.g.: Queue -> ... -> MyElement Basically I need to set a bit in the packet if there are more packets in the queue. R. From latencybuster at gmail.com Thu Oct 17 19:11:56 2013 From: latencybuster at gmail.com (saasasasasas sasasasasasasasasas) Date: Thu, 17 Oct 2013 19:11:56 -0400 Subject: [Click] bad processing code: custom element Message-ID: I have a click element called TagForwarder that takes 1 input and writes to n output that is dependent on user configuration. So, to route packets based on Layer7 contents that contain interesting tags tag1 and tag2, the configuration would be: tf::TagForwarder(tag1, tag2, -). tf[0] -> packets containing tag1 tf[2] -> packets containing tag2 tf[3] -> Discard Inside the code of the element: 1. The processing_code for the element returns the string "PUSH" 2.. port count function returns "1/-" When I do the following: Socket() -> tf::TagForwarder(tag1, tag2, -).; tf[0] -> Socket() tf[2] -> Socket() tf[3] -> Discard I get the warning message : "bad processing code" Where's my mistake? From latencybuster at gmail.com Thu Oct 17 19:18:45 2013 From: latencybuster at gmail.com (Rakshit Baba) Date: Thu, 17 Oct 2013 19:18:45 -0400 Subject: [Click] bad processing code: custom element Message-ID: I have a click element called TagForwarder that takes 1 input and writes to n output that is dependent on user configuration. So, to route packets based on Layer7 contents that contain interesting tags tag1 and tag2, the configuration would be: tf::TagForwarder(tag1, tag2, -). tf[0] -> packets containing tag1 tf[2] -> packets containing tag2 tf[3] -> Discard Inside the code of the element: 1. The processing_code for the element returns the string "PUSH" 2.. port count function returns "1/-" When I do the following: Socket() -> tf::TagForwarder(tag1, tag2, -).; tf[0] -> Socket() tf[2] -> Socket() tf[3] -> Discard I get the warning message : "bad processing code" Where's my mistake? Thanks Rakshit From qq119512 at iii.u-tokyo.ac.jp Fri Oct 18 00:51:15 2013 From: qq119512 at iii.u-tokyo.ac.jp (Hamid Farhadi) Date: Fri, 18 Oct 2013 13:51:15 +0900 Subject: [Click] My element wasn't compiled! Click reports 'unknown element class'. In-Reply-To: <1382071073.83906.YahooMailNeo@web124706.mail.ne1.yahoo.com> References: <4E757693.2000802@iii.u-tokyo.ac.jp> <4E7B08B1.2000601@iii.u-tokyo.ac.jp> <1317381991.32673.YahooMailNeo@web120114.mail.ne1.yahoo.com> <1382071073.83906.YahooMailNeo@web124706.mail.ne1.yahoo.com> Message-ID: <5260BE43.9030609@iii.u-tokyo.ac.jp> spend 1 day reading click docs. its there. u will find it for sure. dont spam others with such questions On Fri Oct 18 13:37:53 2013, hamzeh Chavoshi wrote: > > > On Friday, September 30, 2011 7:26 AM, hamzeh Chavoshi > wrote: > > > ------------------------------------------------------------------------ > salam > Dear farhadi > *Please.. I want click router packet classification algorithms with c > + + programming I need to write the elements > Configuration can then > * > > From qq119512 at iii.u-tokyo.ac.jp Sun Oct 20 02:59:37 2013 From: qq119512 at iii.u-tokyo.ac.jp (Hamid Farhadi) Date: Sun, 20 Oct 2013 15:59:37 +0900 (JST) Subject: [Click] My element wasn't compiled! Click reports 'unknown element class'. In-Reply-To: <1382211560.3986.YahooMailNeo@web124702.mail.ne1.yahoo.com> References: <4E757693.2000802@iii.u-tokyo.ac.jp> <4E7B08B1.2000601@iii.u-tokyo.ac.jp> <1317381991.32673.YahooMailNeo@web120114.mail.ne1.yahoo.com> <1381991917.15899.YahooMailNeo@web124705.mail.ne1.yahoo.com> <5260B574.5010102@iii.u-tokyo.ac.jp> <1382072808.79624.YahooMailNeo@web124701.mail.ne1.yahoo.com> <1382211560.3986.YahooMailNeo@web124702.mail.ne1.yahoo.com> Message-ID: <0c5ca3eaf0f280f0f92f60805596400b.squirrel@webmail.iii.u-tokyo.ac.jp> salam dude seems u donno Linux basics. call me at +81-80-4422-3956 then I might be able to help u --Hamid > Dear frhadi > salam > what means make elemlist in third part ? > how run make elemlist? > can you help me? > please > > > > > > On Friday, October 18, 2013 1:06 AM, hamzeh Chavoshi > wrote: > > Dear hamid > > Excuse > > How can I add my own element class to Click? > thanks. > > > > > On Friday, October 18, 2013 12:13 AM, Hamid Farhadi > wrote: > > hamzeh > salam > I cant understand your English. > how can I help you? > please do not bomb my mailbox. > > --Hamid > > > On 10/17/13 3:38 PM, hamzeh Chavoshi wrote: >> Dear farhadi. >> >> How to compile elemnt in click? >> tanks. >> >> >> On Friday, September 30, 2011 7:26 AM, hamzeh Chavoshi >> wrote: >> >> >> ------------------------------------------------------------------------ >> salam >>� Dear farhadi >> *Please.. I want click router packet classification algorithms with c + >> + programming I need to write the elements >> Configuration can then >> * >> >> From yishuihan_1 at sjtu.edu.cn Thu Oct 24 05:47:48 2013 From: yishuihan_1 at sjtu.edu.cn (=?gb2312?B?t6635bfl?=) Date: Thu, 24 Oct 2013 17:47:48 +0800 (CST) Subject: [Click] help In-Reply-To: <568395737.4425634.1382603657025.JavaMail.root@sjtu.edu.cn> Message-ID: <900556806.4432567.1382608068679.JavaMail.root@sjtu.edu.cn> Dear Sir/Madam: I am a student from sjtu in China, my partner and I are vrey interested in the click. Now we are using the Example Configurations called simple-ipsec.click provided by you to run the click, but there are some wrongs, after we changed some codes it display no router for xx.xx.xx.xx, expensive packet wrong and so on, we try to do some modification, but it does not work. I wonder if we should do some modification to simple-ipsec.click and click itself or we should do something else and how we can do. It is a great pleasure for you to help us. We will be very appreciated for your warm-hearted reply. Following are some initial problems we found and some other informatiom. Simple-click Example configurations we run: http://www.read.cs.ucla.edu/click/examples/simple-ipsec.click Click version: Click 2.0.1 Codes we found may have problems: Problem1:We consider the enc_key and auth_ky length should be 128 bytes, but in /click/elements/ipsec/ipsecroutetable.cc, the length is 16,codes are: if (enc_key.length() != 16 || auth_key.length() != 16) { click_chatter("key has bad length"); I wonder if there any problems. Problem2: rt :: RadixIPsecLookup(18.26.4.24/32 0, 18.26.4.1/32 3, 18.26.7.1/32 2, 18.26.7.0/24 4, 18.26.8.0/24 18.26.4.1 1 234 ABCDEFFF001DEFD2354550FE40CD708E 112233EE556677888877665544332211 300 64); For these codes,we wonder if there any problems for the parameters, because when we run we find it report:key has bad length 95:while configuring rt::RadixIPsecLookup, argument 5 should be ADDR/MASK [GATE WAY] OUTPUT! Router could not be initialized. best wishes! -- Fengfeng Fan, Postgraduate Student Department of Computer Science and Engineering, Shanghai Jiao Tong University, Shanghai 200240, PR China Mobilephone: 150-2661-9238 E-mail: yishuihan_1 at sjtu.edu.cn From claudehangui at ymail.com Fri Oct 25 22:28:39 2013 From: claudehangui at ymail.com (Claude Hangui) Date: Fri, 25 Oct 2013 19:28:39 -0700 (PDT) Subject: [Click] testing qos using click !! Message-ID: <1382754519.30892.YahooMailNeo@web122401.mail.ne1.yahoo.com> Hi everyone !! I've been having compiling issues regarding a click code from the conf file.I have modified it a little bit to suit my purpose, I would like my router to guarantee qos for various kinds of data.I have started my tests by considering voip (eg skype audio call) and video streaming, with of course signalling for voip packets. I modified the "print-pings.click" file. Here it is : FromDevice(eth1)??? ??? ??? ??? // read packets from device ??? ??? ??? ??? ??? ??? ?? -> Classifier(12/0800)??? ??? ??? // select IP-in-Ethernet ?? -> Strip(14)??? ??? ??? ??? ??? // strip Ethernet header ?? -> CheckIPHeader?????? // check IP header, mark as IP ?? -> ip :: IPClassifier(ip dscp cs5, ???????????????????????? ip dscp ef, ??? ??? ??? ??? ???????????????????????? ip dscp cs6, ???????????????????????? ip dscp af31); rr :: DRRSched p :: PrioSched ip[0] -> Paint(255,255,255) -> Queue(20) -> [0]rr -> BandwidthRatedSplitter(32kBps)[0] -> [0]p?? // white colour for signalling packets ip[1] -> Paint(255,255,0) -> Queue(25) -> AdaptiveRED -> [1]rr -> Shaper(1) -> [1]p? // yellow colour for network control ip[2] -> Paint(0,0,255) -> Queue(1000) -> [2]rr -> Shaper(10) -> [2]p?? // blue colour for video streaming ip[3] -> Paint(255,0,0) -> Queue(1000) -> BandwidthRatedUnqueue(128kBps,10ms)[0] -> [3]p // red colour for voip packets ?? p -> ToDevice(eth1); While compiling the code I get these errors : ?BandwidthRatedSplitter at 10 :: BandwidthRatedSplitter? push output 0 connected to ?p :: PrioSched? pull input 0 ?BandwidthRatedUnqueue at 20 :: BandwidthRatedUnqueue? push output 0 connected to ?p :: PrioSched? pull input 3 ?rr :: DRRSched? pull output 0 connected to ?BandwidthRatedSplitter at 10 :: BandwidthRatedSplitter? push input 0 Router could not be initialized! I've been trying to figure out what's going on for the past 2 days, but I'm stuck. I would appreciate some help from anyone. I would also like to know if I made a mistake with the Paint element. I know it takes integers as parameters, but when I checked on the internet I saw that colours are represented using red,green and blue (RGB). So I would like to know if I made a mistake by defining 3 integers for representing 1 colour int the Paint element Thx again for your responses......... From vahab at cs.ucla.edu Mon Oct 28 05:52:07 2013 From: vahab at cs.ucla.edu (Vahab A. Pournaghshband) Date: Mon, 28 Oct 2013 02:52:07 -0700 Subject: [Click] A published paper using Click to be added to the list Message-ID: Hi, I just wanted to add to the published paper list the following paper: http://ieeexplore.ieee.org/xpl/login.jsp?tp=&arnumber=6364064&url=http%3A%2F%2Fieeexplore.ieee.org%2Fxpls%2Fabs_all.jsp%3Farnumber%3D6364064 *Controlling Applications by Managing Network Characteristics* Vahab Pournaghshband, Leonard Kleinrock, Peter Reiher, and Alexander Afanasyev IEEE Communication and Information Systems Security Symposium (ICC), June 2012. http://lasr.cs.ucla.edu/vahab/resources/dissuade.pdf Thanks, Vahab