[Swan-dev] get rid of getnetbyname() /etc/networks?

D. Hugh Redelmeier hugh at mimosa.com
Sun May 2 18:17:48 UTC 2021


Comments I added recently:

+	/*
+	 * try a name from /etc/networks
+	 *
+	 * Seems pretty obsolete:
+	 * - latest RFC, 1101, dated April 1989
+	 * - IPv4 only
+	 * - doesn't support classless networks
+	 * - Window has it
+	 */

We are using this as a fallback when DNS doesn't resolve a name.
We are not even using it to find a network, only an IP address.

Does anyone use this?
Should anyone use this?
Can we just delete this stuff from our code?


More information about the Swan-dev mailing list