From zhangwqh at 126.com Wed Jan 15 17:29:04 2014 From: zhangwqh at 126.com (=?GBK?B?1cXOsA==?=) Date: Wed, 15 Jan 2014 22:29:04 -0000 Subject: [Click] When run_task function starts to run in element Message-ID: <56caf33.197cf.14398057ef6.Coremail.zhangwqh@126.com> Hi all, I starts to learn click router recently. I have a question that make me confused. Does anybody give me some advices. I will be appreciated. In each element, there is a function named run_task. I can not understand when this run_task function will be executed. If my following understanding is not correct, please help to point them out. From the document, it seems that there is a kernel thread. Whether this thread will manage a queue, in this queue, the tasks in this queue are the run_tasks tasks. When I learn the code, I want to find where the run_task function will be called, however I can not find the places. There are many places that call the function _task.fast_reschedule(). What is the function and aim for this function _task.fast_reschedule()? Whether does it have some relation with the task queue? Where is the code for task scheduling? I do not know where they are. I am looking forward to anybody's reply. From wrightsophia119 at gmail.com Thu Jan 30 14:35:17 2014 From: wrightsophia119 at gmail.com (sophia wright) Date: Thu, 30 Jan 2014 19:35:17 -0000 Subject: [Click] ToHost: dropped a packet with null skb->dev Message-ID: Hello, i want to create a number of TCP reset packets. To create my new RST packet i use the code that is in tcpipsend.cc file. the path: /click/elements/tcpudp/tcpipsend.cc the RST packets are created normaly, but when i forward it on the router path then i have the message : ToHost: dropped a packet with null skb->dev also the packet doesn't appear on the wireshark. Any idea , or some hints , why my packet that i create is dropped??? thank you in advance From Steven.Berson at aero.org Fri Jan 31 18:24:15 2014 From: Steven.Berson at aero.org (Steven Berson) Date: Fri, 31 Jan 2014 23:24:15 -0000 Subject: [Click] click linux module problems with linuxmodule tests Message-ID: <52EC3086.8040002@aero.org> I am trying to install click on an Ubuntu12-64-LTS Emulab image running a 3.2.0-56-generic kernel. It should be stock or pretty close to stock. root at nm-3:~# uname -a Linux nm-3.v1.wgs.sntb.aero.org 3.2.0-56-generic #86-Ubuntu SMP Wed Oct 23 09:20:45 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux root at nm-3:~# I built and installed the click linuxmodule, then I tried the tests. The following tests ran without a hitch (all successes, no failures, and no skipped) - compound, ethernet, handlers, ip, standard, tcpudp, tools. But it has failures in several of the other packages. In particular, it seems to have a lot of problems in linuxmodule. If I do the linux module tests individually, ToHost-01, ToHost-02, and clickfs-01 all work, then there was an error in ToHost-udpsocket-01, then deviceup-01 hangs (or sometimes wedges the OS). Am I doing something wrong? I have been having similar issues with Ubuntu10_LTS, and Centos55. Thanks, Steve root at wgs:~/CLICK/click.ubuntu-12-64-LTS/test# ./testie analysis/ analysis/FromIPSummaryDump-ipopt-01.testie:18: failure at '# use tcpdump to verify dump^Jtcpdump -n...' analysis/FromIPSummaryDump-ipopt-01.testie:18: tcpdump: OUT1: Permission denied testie: 9 successes, 1 failure, 2 skipped oot at wgs:~/CLICK/click.ubuntu-12-64-LTS/test# ./testie icmp/ icmp/ICMPPingEncap-01.testie:13: failure at 'tcpdump -n -r FOO > CHECK' icmp/ICMPPingEncap-01.testie:13: tcpdump: FOO: Permission denied testie: 5 successes, 1 failure, 0 skipped root at wgs:~/CLICK/click.ubuntu-12-64-LTS/test# ./testie IPRewriter/ IPRewriter/FTPPortMapper-01.testie:57: file NETCAT2 has unexpected value starting at line 2 IPRewriter/FTPPortMapper-01.testie:57: NETCAT2:2: expected 'money' IPRewriter/FTPPortMapper-01.testie:57: NETCAT2:2: but got '' IPRewriter/IPRewriter-10.testie:88: file RM has unexpected value starting at line 1 IPRewriter/IPRewriter-10.testie:88: RM:1: expected '1.0.0.2 1024 2.115.2.2 2' IPRewriter/IPRewriter-10.testie:88: RM:1: but got '' testie: 29 successes, 2 failures, 0 skipped root at wgs:~/CLICK/click.ubuntu-12-64-LTS/test# ./testie -V threads/ threads/StaticThreadSched-01.testie: Running... threads/StaticThreadSched-01.testie:5: requirement failure at 'click-buildtool provides umultithread' testie: 0 successes, 0 failures, 1 skipped oot at wgs:~/CLICK/click.ubuntu-12-64-LTS/test# ./testie userlevel/ userlevel/timewarp-01.testie:30: standard output has unexpected value starting at line 2 userlevel/timewarp-01.testie:30: stdout:2: expected '.{{(48|49|50|51|52).*}}' userlevel/timewarp-01.testie:30: stdout:2: but got '.545928879' testie: requirement failures blocked 2 tests, use '-V' for details testie: (commands 'click-buildtool provides umultithread', 'false') testie: 9 successes, 1 failure, 2 skipped root at nm-3:~/CLICK/click.ubuntu-12-64-LTS/test/linuxmodule# testie ToHost-01.testie testie: 1 success, 0 failures, 0 skipped root at nm-3:~/CLICK/click.ubuntu-12-64-LTS/test/linuxmodule# testie ToHost-02.testie testie: 1 success, 0 failures, 0 skipped root at nm-3:~/CLICK/click.ubuntu-12-64-LTS/test/linuxmodule# testie clickfs-01.testie testie: 1 success, 0 failures, 0 skipped root at nm-3:~/CLICK/click.ubuntu-12-64-LTS/test/linuxmodule# testie ToHost-udpsocket-01.testie ToHost-udpsocket-01.testie:14: failure at 'kill $ncproc' ToHost-udpsocket-01.testie:14: ./%script: 22: kill: No such process testie: 0 successes, 1 failure, 0 skipped root at nm-3:~/CLICK/click.ubuntu-12-64-LTS/test/linuxmodule# testie deviceup-01.testie