shaper: add output port for packets that do meet the shaping condition

For example, you can do rate limited printing in pull context as
follows:
..
-> Shaper(10)
=> ( [0] -> Print -> [0];
     [1] -> [1] )
=> RoundRobinSched
-> ..

Also, add a reset handler for use by the testie that's part of this
change.

Reviewed-by: cliff@meraki.com
Signed-off-by: Patrick Verkaik <patrick@meraki.net>
shaper: fix header file documentation
Merge pull request #88 from trackpick/shaper

shaper: add output port for packets that do meet the shaping condition
Update .gitignores.
Update configury and code for Linux 3.8.

This is a partial commit (not completely ready yet).
Improve configury for finding Linux <asm/alternative.h>.

Old configury did not find it on this 3.8 box.
Linuxmodule: Linux has changed the format for KERN_ALERT, etc.

Use those constants instead of hand-coded <1>, <2>, etc.
Linuxmodule: Use kthread_create.

Rather than kernel_thread. And with this we can run on Linux 3.8.
Email address updates.
Clarify licensing terms.

Clickfs is not a derived work of the Linux kernel.

Signed-off-by: Eddie Kohler <ekohler@gmail.com>
move inputswitch elements to the correct directory

Commit 217eb6c7d4d70587262ed1c4b98abb6cd0060c16 ("add click
inputswitch") created a top-level click directory and added the
inputswitch files there. This change moves them to their correct
location. Cliff Frey caught this.

Signed-off-by: Patrick Verkaik <patrick@meraki.net>
Merge pull request #89 from trackpick/inputswitch

move inputswitch elements to the correct directory
Recent versions of Linux require that symbols not contain periods.

Cliff Frey report, shared fix.
Internal: Adjust warning avoidance for linuxmodule package compiles.

Cliff Frey reported that our previous mechanism, which involved
redirections, screwed up make -j compilation.
Merge pull request #86 from trackpick/inputswitch

add click inputswitch
ToDevice.u: Only select default METHOD if supported.

Fix bug introduced in 3d46d1b5, triggered if the methods enabled by
TODEVICE_ALLOW_* and FROMDEVICE_ALLOW_* do not match, in which case a
default METHOD could be selected that was only enabled for FromDevice.u
and not for ToDevice.u, causing ToDevice.u to silently drop packets.

Signed-off-by: Søren Løvborg <soeren.j.loevborg@siemens.com>
ToDevice.u: Document METHOD values and defaults.

Signed-off-by: Søren Løvborg <soeren.j.loevborg@siemens.com>
configure: Fix argument order for probing libpcap.

Fix configure script, which would incorrectly pass -lpcap to gcc
BEFORE the source file, causing problems detecting libpcap features
under some circumstances.

Signed-off-by: Søren Løvborg <soeren.j.loevborg@siemens.com>
Merge pull request #85 from kwi-dk/master

ToDevice.u and configure bugfixes
linuxmodule/FromHost: add ether handler

Previously, one would need to

	ifconfig dev down
	ifconfig dev hw ether 01:02:03:04:05:06
	ifconfig dev up

in order to change the MAC address of a FromDevice.  This commit adds a
handler that does all of this automatically, which means you can change the
MAC from a Script.

This is useful if you have a FromHost/ToHost that are hooked up to a
ToDevice/FromDevice and you want the MACs to match.  If the actual interface
might not actually be available at click initialization time, this handler
make it possible to adjust the FromHost once the FromDevice is attached.