]> git.karo-electronics.de Git - karo-tx-redboot.git/blobdiff - packages/net/autotest/v2_0/host/_suping.c
Initial revision
[karo-tx-redboot.git] / packages / net / autotest / v2_0 / host / _suping.c
diff --git a/packages/net/autotest/v2_0/host/_suping.c b/packages/net/autotest/v2_0/host/_suping.c
new file mode 100644 (file)
index 0000000..6689f2e
--- /dev/null
@@ -0,0 +1,14 @@
+// _suping.c
+
+#include <unistd.h>
+
+// This a piece of lameness to convince ping to do a floodping.
+int main( int argc, char **argv )
+{
+    setuid( 0 );
+    execvp( "ping", argv );
+    perror( "What, no ping?" );
+    exit( 1 );
+}
+
+// EOF