summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.pp.se>2004-05-23 15:08:42 +0000
committerThomas Habets <thomas@habets.pp.se>2004-05-23 15:08:42 +0000
commit6460b5b6297f9df8520b7824d181bc1c6d280b25 (patch)
tree63b0d47efac3c35478d18c7b5b2246b16dc6e25f
parent9c727cfb33f242b802ea17d160baa6a0fba9d9c9 (diff)
downloadarping-6460b5b6297f9df8520b7824d181bc1c6d280b25.tar.gz
comments
-rw-r--r--arping-2/arping.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/arping-2/arping.c b/arping-2/arping.c
index c242240..29ff08e 100644
--- a/arping-2/arping.c
+++ b/arping-2/arping.c
@@ -12,7 +12,7 @@
*
* Also finds out IP of specified MAC
*
- * $Id: arping.c 1063 2004-02-02 00:37:34Z marvin $
+ * $Id: arping.c 1100 2004-05-23 15:08:42Z marvin $
*/
/*
* Copyright (C) 2000-2002 Thomas Habets <thomas@habets.pp.se>
@@ -131,6 +131,9 @@ static void do_libnet_init(const char *ifname)
}
}
+/*
+ *
+ */
const char *arping_lookupdev_default(u_int32_t srcip, u_int32_t dstip,
char *ebuf)
{
@@ -138,6 +141,9 @@ const char *arping_lookupdev_default(u_int32_t srcip, u_int32_t dstip,
}
#if defined(FINDIF) && defined(linux)
+/*
+ *
+ */
const char *arping_lookupdev(u_int32_t srcip, u_int32_t dstip, char *ebuf)
{
FILE *f;
@@ -188,6 +194,9 @@ const char *arping_lookupdev(u_int32_t srcip, u_int32_t dstip, char *ebuf)
return arping_lookupdev_default(srcip,dstip,ebuf);
}
#else
+/*
+ *
+ */
const char *arping_lookupdev(u_int32_t srcip, u_int32_t dstip, char *ebuf)
{
return arping_lookupdev_default(srcip,dstip,ebuf);
@@ -908,8 +917,7 @@ int main(int argc, char **argv)
*/
/*
- * Get some good iface. FIXME: traverse routing or something to find
- * right one.
+ * Get some good iface.
*/
if (!ifname) {
if (dont_use_arping_lookupdev) {
@@ -1036,6 +1044,5 @@ int main(int argc, char **argv)
}
exit(!numrecvd);
-
return 0;
}