From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 15 Apr 1996 13:41:46 -0400 From: Scott Schwartz schwartz@galapagos.cse.psu.edu Subject: ioctl Topicbox-Message-UUID: 43be8804-eac8-11e9-9e20-41e7f4b1d025 Message-ID: <19960415174146.I_sSomh-qAmEuU49CvEhxRRPqE6MpdGz4t5ACjvxJfM@z> Min Huang writes: | I am porting a system built on the top of Unix to Plan9. | Because the system use ioctle to get network address, network configuration, | I find that plan9 doesn't support SIOCGIFADDR and SIOCFIFCONF. | Could you please tell me how I can modify the plan9 to make it support them. % cat '#P/ipifc' The mechanism in libc, reading /net/tcp/0/local doesn't work very well for multihomed hosts, since it returns just one number. Moreover, all the */local files return the address of the first interface, rather than the one the connection is actually on. That makes e.g. icmpfs do the wrong thing if one of the interfaces doesn't have an advertised route.