From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 16 Apr 1996 12:33:33 -0400 From: Min Huang mhuang@CS.Cornell.EDU Subject: Unix and Plan9 Topicbox-Message-UUID: 43d6cc8e-eac8-11e9-9e20-41e7f4b1d025 Message-ID: <19960416163333.ubjKjLnpSH7CH3n8kZ4vkwlRPlILtHK8nS3usC-n7SU@z> The system in Unix that I am porting to Plan9 has the following codes in udp.c which implements the BSD internet interface and can handle IP, UDP, UDP broadcast, and the Deering variations of IP and UDP. ***************************************************************************** udp.c:#include udp.c: ioctl(udp_socket, SIOCGIFCONF, &ifc) - get network configuration udp.c: (void) ioctl(udp_socket, SIOCGIFFLAGS, ifr) - get flags udp.c: (void) ioctl(udp_socket, SIOCGIFADDR, ifr) - get network address udp.c: ioctl(udp_socket, SIOCGIFNETMASK, ifr) - get network mask udp.c: (void) ioctl(udp_socket, SIOCGIFBRDADDR, ifr) - get broadcast address Also, read the gateway map table. ****************************************************************************** Could you please tell me how to get all information in Plan9? So far, I know I can use ipinfo() to get some info. but not all of them. Thank you very much