aboutsummaryrefslogtreecommitdiff
path: root/share/examples/find_interface
diff options
context:
space:
mode:
Diffstat (limited to 'share/examples/find_interface')
-rw-r--r--share/examples/find_interface/Makefile6
-rw-r--r--share/examples/find_interface/README9
2 files changed, 0 insertions, 15 deletions
diff --git a/share/examples/find_interface/Makefile b/share/examples/find_interface/Makefile
deleted file mode 100644
index fcc330cc1949..000000000000
--- a/share/examples/find_interface/Makefile
+++ /dev/null
@@ -1,6 +0,0 @@
-# $Id$
-
-PROG= find_interface
-NOMAN=
-
-.include <bsd.prog.mk>
diff --git a/share/examples/find_interface/README b/share/examples/find_interface/README
deleted file mode 100644
index 4df4399cdbc7..000000000000
--- a/share/examples/find_interface/README
+++ /dev/null
@@ -1,9 +0,0 @@
-This is a simple program which demonstrates how to query the kernel
-routing mechanism using only a UDP socket. Pass it a hostname on
-the command line (sorry, it doesn't parse dotted decimal) and it will
-print out an IP address which names the interface over which UDP
-packets intended for that destination would be sent.
-A more sophisticated program might use the list obtained from SIOCGIFCONF
-to match the address with an interface name, but applications programmers
-much more often need to know the address of the interface rather than
-the name.