On Monday 07 April 2003 18:36, Ken Schneider wrote:
Maybe some simple networking lessons are in order.
A "dotted quad address" is always treated as an "IP address" NOT some random text string URL.
argv is a pointer to an array of zero terminated character strings. How they are treated is not written in stone.
When you type the "IP address" as the destination, (whether telnet, ftp, http) it eliminates having to go through DNS to resolve a "name" to an "IP address".
only if you use getaddrinfo and pass it the flag AI_NUMERICHOST read "man 3 getaddrinfo" for more info.
Once the "IP address" has been determined another query is sent on its way to the routers looking for the "MAC address" that belongs to the "IP address".
arp queries are broadcast, not routed. They may be handled by a switch, rarely by a router.
EVERY request will resolve to a "MAC address" or fail.
Are you suggesting that every machine queries every other machine on the entire internet for its hardware address?