Code

`oping' now compiles and I'll go to bed. G'night.
authorocto <octo>
Fri, 28 Apr 2006 21:35:32 +0000 (21:35 +0000)
committerocto <octo>
Fri, 28 Apr 2006 21:35:32 +0000 (21:35 +0000)
src/Makefile.am
src/oping.c

index 1d5379193cad24cd9663bc6c7d7cd8d32458185a..d1283ecc6f29b04e015458165252f48cb9160cae 100644 (file)
@@ -12,3 +12,8 @@ if BUILD_WITH_LIBSOCKET
 liboping_la_LDFLAGS += -lsocket
 endif
 liboping_la_SOURCES = liboping.h liboping.c
+
+bin_PROGRAMS = oping
+
+oping_SOURCES = oping.c
+oping_LDADD = liboping.la
index cd7a781e9cb3e651cee4393e59625d5e073abd46..65d74c7c4a47ed74264df6877ab9bbed3d28301f 100644 (file)
@@ -1,7 +1,37 @@
-#include <stdlib.h>
-#include <stdio.h>
+/**
+ * Object oriented C module to send ICMP and ICMPv6 `echo's.
+ * Copyright (C) 2006  Florian octo Forster <octo at verplant.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+ */
 
-#include "liboping.h"
+#if HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#if STDC_HEADERS
+# include <stdlib.h>
+# include <stdio.h>
+# include <string.h>
+# include <errno.h>
+# include <assert.h>
+#else
+# error "You don't have the standard C99 header files installed"
+#endif /* STDC_HEADERS */
+
+#include <liboping.h>
 
 int main (int argc, char **argv)
 {