Documentation - HeMan/crapnet GitHub Wiki
Crapnet
Crapnet is a XML RPC wrapper to the Linux kernel Network emulator.
XML RPC
The XML RPC URL is http://externalip/cgi-bin/crapnet/do.lua.
hello
Function call hello is just a test function to test if the code is in place.
reset
Resets the network emulator so it has no delay, no bandwidth restrictions, no error induction and no reordring. No arguments. Returns the string "Reseted".
getpresets
Returns which presets it has available. No arguments. Returns an array of presets.
tcversion
Returns version of tc binary. No arguments. Returns a string with version or the numeric 0 if it's not installed.
usepreset
Configures the netem with the chosen preset.