9fans archive / 1996 / 04 / 67 / prev next From: Min Huang mhuang@CS.... Subject: Unix and Plan9 Date: Tue, 16 Apr 1996 12:33:33 -0400 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 <sys/ioctl.h> 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