diff options
| author | Garrett Wollman <wollman@FreeBSD.org> | 1995-08-14 16:08:39 +0000 |
|---|---|---|
| committer | Garrett Wollman <wollman@FreeBSD.org> | 1995-08-14 16:08:39 +0000 |
| commit | 0699090b6a4116e3cc55b20d33548f9866c5ff1d (patch) | |
| tree | f9aaa1eb51761bbaf8850502427630d91bc0ede5 /share/examples/find_interface/README | |
| parent | 252ba7f75ccdf1f6412585a59978cfa513653abc (diff) | |
Notes
Diffstat (limited to 'share/examples/find_interface/README')
| -rw-r--r-- | share/examples/find_interface/README | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/share/examples/find_interface/README b/share/examples/find_interface/README new file mode 100644 index 000000000000..4df4399cdbc7 --- /dev/null +++ b/share/examples/find_interface/README @@ -0,0 +1,9 @@ +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. |
